[Bug 879324] Re: apt-get dselect-upgrade prefers multiarch over native
Tuomas Heino
iheino+ub at cc.hut.fi
Sun Apr 15 11:57:47 UTC 2012
Attempted a reinstallation/cloning of precise as follows:
$ dpkg --get-selections | fgrep -c :i386
237
$ dpkg --get-selections > selections.txt
$ sftp clonehost # ...
$ sudo dpkg --set-selections < selections.txt
$ sudo apt-get -y update
$ sudo apt-get dselect-upgrade
Ended up with bunch of errors and:
$ dpkg -l | fgrep -c :i386
507
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/879324
Title:
apt-get dselect-upgrade prefers multiarch over native
Status in “apt” package in Ubuntu:
Triaged
Bug description:
'apt-get dselect-upgrade' prefers multiarch over native (i386 over
amd64 in my case) for *some* packages for "precise".
How to reproduce:
I've set up an amd64 precise chroot on an amd64 host from a mirror
lagging behind with it's sync some time, then added some repos to the
sources.list, updated, set some package to be installed via 'dpkg
--set-selections' and start an installation process via 'apt-get
dselect-upgrade'. Note that this behaviour does not show when using
'apt-get install' straight.
Details for reproducing:
-------------------------------------------
me at host:~$ sudo /usr/sbin/debootstrap --arch=amd64 --variant=buildd
precise precise_amd64_chroot
http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/
me at host:~$ dpkg -l '*:i386'
No packages found matching *:i386.
me at host:~$ sudo chroot precise_amd64_chroot
# cat /etc/apt/sources.list
deb http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ precise main
[now editing the sources.list]
# cat /etc/apt/sources.list
deb http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ precise main restricted universe multiverse
# apt-get update
[...]
# echo "joe install" | dpkg --set-selections
# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# apt-get dselect-upgrade
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
gcc-4.6-base:i386 joe:i386 libc6:i386 libgcc1:i386 libtinfo5:i386
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 4402 kB of archives.
After this operation, 12.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
# apt-cache policy joe
joe:
Installed: (none)
Candidate: 3.7-2.3
Version table:
3.7-2.3 0
500 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ precise/universe amd64 Packages
[now changing 'foreign-architecture i386' to '#foreign-architecture
i386' in /etc/dpkg/dpkg.cfg.d/multiarch]
# apt-get dselect-upgrade
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
joe
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 481 kB of archives.
After this operation, 1340 kB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
# apt-cache policy joe
joe:
Installed: (none)
Candidate: 3.7-2.3
Version table:
3.7-2.3 0
500 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ precise/universe amd64 Packages
-------------------------------------------
Note how 'apt-cache policy' does show 'amd64' as installation
candidate in both cases. When actually confirming the installation via
'apt-get dselect-upgrade', it *does* install the i386 packages, as it
threatened it would. Removing i386 from the multiarch entries solves
the issue for me, in that case only the amd64 package is installed.
Kind regards,
Christian
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/879324/+subscriptions
More information about the foundations-bugs
mailing list