[Bug 2130385] Re: amd64v3: No Contents in the cache with the given restrictions
Heinrich Schuchardt
2130385 at bugs.launchpad.net
Sun Dec 7 16:11:47 UTC 2025
With the latest change I get an error
Use of uninitialized value in string at /usr/bin/apt-file line 712.
We need to check if the value is defined:
710 @arch_res = grep { $_ ne '' } split(m/\s*,\s*/,
711 $Conf->{arch} ||
712 ("$_config->{'APT::Architecture'}," .
713 (defined $_config->{'APT::Architecture-Variants'} ?
714 $_config->{'APT::Architecture-Variants'} : '')));
--
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2130385
Title:
amd64v3: No Contents in the cache with the given restrictions
Status in Apt File:
New
Status in apt-file package in Ubuntu:
Fix Released
Status in apt-file source package in Questing:
Confirmed
Status in apt-file source package in Resolute:
Fix Released
Bug description:
[ Impact ]
apt-file does not support the amd64v3 architecture variant:
With arch variant disabled in /etc/apt/apt.conf.d/99enable-amd64v3
$ apt-file update
$ apt-file search riscv64-linux-gnu-gcc-15
gcc-15-riscv64-linux-gnu: /usr/bin/riscv64-linux-gnu-gcc-15
gcc-15-riscv64-linux-gnu: /usr/share/man/man1/riscv64-linux-gnu-gcc-15.1.gz
With arch variant enabled in /etc/apt/apt.conf.d/99enable-amd64v3
$ apt-file update
$ apt-file search riscv64-linux-gnu-gcc-15
Finding relevant cache files to search ...E: No Contents in the cache with the given restrictions
[ Test Plan ]
On x86_64 systems the amd64v3 variant can be enabled with
echo 'APT::Architecture-Variants "amd64v3";' | sudo tee
/etc/apt/apt.conf.d/99enable-amd64v3
and disabled with
sudo rm /etc/apt/apt.conf.d/99enable-amd64v3
On an amd64 system with amd64v3 disabled and enabled install apt-file:
sudo apt-get install apt-file
sudo apt-file update
and search for riscv64-linux-gnu-gcc-14
sudo apt-file update
apt-file search riscv64-linux-gnu-gcc-14
Both with and without amd64v3 support the file should be found. The
output will look like:
gcc-14-riscv64-linux-gnu: /usr/bin/riscv64-linux-gnu-gcc-14
gcc-14-riscv64-linux-gnu: /usr/share/man/man1/riscv64-linux-gnu-gcc-14.1.gz
[ Where problems could occur ]
Apt-file is used for supporting users to find packages that they might
want to install. If it does not work correctly, users might not be
able to identify the package they are looking for.
[ Other Info ]
n/a
To manage notifications about this bug go to:
https://bugs.launchpad.net/apt-file/+bug/2130385/+subscriptions
More information about the Ubuntu-sponsors
mailing list