apt authentication failing when using config in chroot path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: apt
This procedure (actually generated by multistrap when doing multistrap --configfile=
Now it fails. Something has changed about how authentication works.
after sudo apt-get -y -o Apt::Architectu
this fails:
sudo apt-get -y -o Apt::Architectu
this is the subseqent output
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
apt coreutils debconf debconf-i18n dpkg findutils gcc-4.5-base libacl1 libattr1 libboost-
libgcc1 liblocale-
libtext-
Suggested packages:
dpkg-dev apt-doc bzip2 lzma python-apt aptitude-doc-en aptitude-doc tasksel debtags debconf-doc debconf-utils whiptail dialog gnome-utils
libterm-
Recommended packages:
ubuntu-keyring gpg sensible-utils apt-xapian-index libparse-
The following NEW packages will be installed:
apt aptitude coreutils debconf debconf-i18n dpkg findutils gcc-4.5-base libacl1 libattr1 libboost-
libept1 libgcc1 liblocale-
libtext-
0 upgraded, 32 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.9MB/19.9MB of archives.
After this operation, 68.8MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
libc-bin gcc-4.5-base libbz2-1.0 libselinux1 zlib1g libattr1 libacl1 coreutils liblzma2 xz-utils dpkg perl-base liblocale-
libtext-
libboost-
E: There are problems and -y was used without --force-yes
So for some reason apt is not able to authenticate packages
If we add the 'alloowunauthen
sudo apt-get -y -o Apt::Get:
<proceeds and installs packages>
the referred-to config directories contains this:
$ ls -lR /var/lib/
/var/lib/
total 8
drwxr-xr-x 2 root root 4096 Sep 23 23:28 preferences.d
drwxr-xr-x 2 root root 4096 Sep 23 23:28 sources.list.d
/var/lib/
total 0
/var/lib/
total 8
-rw-r--r-- 1 root root 160 Sep 23 23:28 multistrap-
-rw-r--r-- 1 root root 124 Sep 23 23:28 multistrap-
$ ls -lR /var/lib/
/var/lib/
total 8
drwxr-xr-x 3 root root 4096 Sep 23 23:28 cache
drwxr-xr-x 4 root root 4096 Sep 23 23:28 lib
/var/lib/
total 4
drwxr-xr-x 3 root root 4096 Sep 24 00:31 apt
/var/lib/
total 32464
drwxr-xr-x 3 root root 4096 Sep 24 00:24 archives
-rw-r--r-- 1 root root 16626303 Sep 24 00:31 pkgcache.bin
-rw-r--r-- 1 root root 16626224 Sep 24 00:31 srcpkgcache.bin
/var/lib/
total 4
drwxr-xr-x 2 root root 4096 Sep 24 00:23 partial
/var/lib/
total 0
/var/lib/
total 8
drwxr-xr-x 3 root root 4096 Sep 23 23:28 apt
drwxr-xr-x 6 root root 4096 Sep 23 23:28 dpkg
/var/lib/
total 4
drwxr-xr-x 3 root root 4096 Sep 24 00:31 lists
/var/lib/
total 94652
-rw-r--r-- 1 root root 9358039 Sep 23 23:11 archive.
-rw-r--r-- 1 root root 9356729 Sep 23 23:14 archive.
-rw-r--r-- 1 root root 3788437 Sep 23 23:17 archive.
-rw-r--r-- 1 root root 28653989 Sep 23 23:12 archive.
-rw-r--r-- 1 root root 28717920 Sep 23 23:15 archive.
-rw-r--r-- 1 root root 17034589 Sep 23 23:19 archive.
-rw-r----- 1 root root 0 Sep 24 00:31 lock
drwxr-xr-x 2 root root 4096 Sep 24 00:31 partial
/var/lib/
total 60
-rw-r--r-- 1 root root 57251 Sep 23 23:19 archive.
-rw-r--r-- 1 root root 198 Sep 23 23:19 archive.
/var/lib/
total 16
drwxr-xr-x 2 root root 4096 Sep 23 23:28 alternatives
-rw-r--r-- 1 root root 0 Sep 23 23:28 diversions
drwxr-xr-x 2 root root 4096 Sep 23 23:28 info
-rw-r--r-- 1 root root 0 Sep 23 23:28 lock
drwxr-xr-x 2 root root 4096 Sep 23 23:28 parts
-rw-r--r-- 1 root root 0 Sep 23 23:28 statoverride
-rw-r--r-- 1 root root 0 Sep 23 23:28 status
drwxr-xr-x 2 root root 4096 Sep 23 23:28 updates
/var/lib/
total 0
/var/lib/
total 0
/var/lib/
total 0
/var/lib/
total 0
Adding a /var/lib/
and copying /etc/apt/
doesn't fix the problem.
So I'm not sure what's changed over the old apt version which means the command no longer works. Something about authentication, clearly. I guess some extra setting is needed or some copying/configuring of keys/keyrings into the target apt config?
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: apt 0.8.3ubuntu4
Uname: Linux 2.6.32-5-amd64 x86_64
NonfreeKernelMo
Architecture: amd64
Date: Fri Sep 24 00:15:14 2010
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, no user)
SourcePackage: apt
A possibly related problem is that if one uses the package/suite syntax that gives an error saying that the suite cannot be found:
sudo apt-get -y -o Apt::Get: :AllowUnauthent icated= true -o Apt::Architectu re=amd64 -o Apt::Get: :Download- Only=true -o Apt::Install- Recommends= false -o Dir=/var/ lib/pdebuild- cross/build/ -o Dir::Etc= /var/lib/ pdebuild- cross/build/ etc/apt/ -o Dir::State= /var/lib/ pdebuild- cross/build/ var/lib/ apt/ -o Dir::State: :Status= /var/lib/ pdebuild- cross/build/ var/lib/ dpkg/status -o Dir::Cache= /var/lib/ pdebuild- cross/build/ var/cache/ apt/ install aptitude/maverick
Reading package lists... Done
Building dependency tree... Done
E: Release 'maverick' for 'aptitude' was not found
the package/suite systax works fine outside the 'pointing apt at a chroot' context.