Bug#670954: [apt] MultiArch: apt-get -f install doesn't see correct dependency of package
Package: apt
Version: 0.9.2
Severity: normal
--- Please enter the report below this line. ---
'apt-get -f install' won't install libgcc1-dbg 4.7.0-6, although its available.
For some reason it thinks that it depends on gcc-4.7-base=4.7.0-5, which results in a conflict (gcc-4.7-base is 4.7.0-6 already).
I checked the control file in the .deb, it says gcc-4.7-base=4.7.0-6, so I don't know why its looking for -5.
Maybe it wants to run the postrm from 4.7.0-5 (but then shouldn't it ignore dependencies for that?).
Anyway all gcc-related packages seem to have a 4.7.0-6 version now, so 'apt-get -f install' should
be able to fix whatever the problem is, but it can't (see below).
Version 4.7.0-6 is available for libgcc1-dbg:
$ apt-cache policy libgcc1-dbg:amd64
libgcc1-dbg:
Installed: 1:4.7.0-5
Candidate: 1:4.7.0-6
Version table:
1:4.7.0-6 0
500 http://iota.nren.ro/debian/ unstable/main amd64 Packages
*** 1:4.7.0-5 0
500 http://ftp.lug.ro/debian/ unstable/main amd64 Packages
100 /var/lib/dpkg/status
1:4.7.0-3 0
500 http://iota.nren.ro/debian/ testing/main amd64 Packages
The :i386 is not installed:
$ apt-cache policy libgcc1-dbg:i386
libgcc1-dbg:i386:
Installed: (none)
Candidate: 1:4.7.0-5
Version table:
1:4.7.0-5 0
500 http://iota.nren.ro/debian/ unstable/main i386 Packages
500 http://ftp.lug.ro/debian/ unstable/main i386 Packages
1:4.7.0-3 0
500 http://iota.nren.ro/debian/ testing/main i386 Packages
# apt-get install libgcc1-dbg:amd64=1:4.7.0-6
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
anjuta-common gtkpod-data id3v2 libanjuta-3-0 libgdl-3-2 libgdl-3-common
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
libgcc1-dbg
1 upgraded, 0 newly installed, 0 to remove and 62 not upgraded.
2 not fully installed or removed.
Need to get 0 B/101 kB of archives.
After this operation, 0 B of additional disk space will be used.
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 237, in <module>
main()
File "/usr/bin/apt-listchanges", line 48, in main
debs = apt_listchanges.read_apt_pipeline(config)
File "/usr/share/apt-listchanges/apt_listchanges.py", line 83, in read_apt_pipeline
return map(lambda pkg: filenames[pkg], order)
File "/usr/share/apt-listchanges/apt_listchanges.py", line 83, in <lambda>
return map(lambda pkg: filenames[pkg], order)
KeyError: 'libgcc1-dbg'
dpkg: dependency problems prevent configuration of libgcc1-dbg:amd64:
libgcc1-dbg:amd64 depends on gcc-4.7-base (= 4.7.0-5); however:
Version of gcc-4.7-base:amd64 on system is 4.7.0-6.
libgcc1-dbg:amd64 depends on libgcc1 (= 1:4.7.0-5); however:
Version of libgcc1:amd64 on system is 1:4.7.0-6.
dpkg: error processing libgcc1-dbg:amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libstdc++6-4.7-dbg:amd64:
libstdc++6-4.7-dbg:amd64 depends on libgcc1-dbg; however:
Package libgcc1-dbg:amd64 is not configured yet.
dpkg: error processing libstdc++6-4.7-dbg:amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libgcc1-dbg:amd64
libstdc++6-4.7-dbg:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
Background: gcc-4.7-base:amd64 and :i386 had a problem with a .gz mismatch in 4.7.0-5,
thats why I'm trying to use 'apt-get -f install' to fix that.
So first I did an 'apt-get -f install', which removed all the :i386 packages (will try to install them back later).
However it still didn't fix the problem completely:
# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
anjuta-common gtkpod-data id3v2 libanjuta-3-0 libgdl-3-2 libgdl-3-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
cpp-4.7 g++-4.7 g++-4.7-multilib gcc-4.7 gcc-4.7-base gcc-4.7-multilib gccgo-4.7 lib32gcc1 lib32gomp1 lib32itm1 lib32mudflap0 lib32quadmath0 lib32stdc++6
libgcc1 libgcc1-dbg libgfortran3 libgo0 libgo0-dbg libgomp1 libitm1 libmudflap0 libquadmath0 libstdc++6 libstdc++6-4.7-dbg libstdc++6-4.7-dev
Suggested packages:
gcc-4.7-locales gcc-4.7-doc lib32stdc++6-4.7-dbg libmudflap0-4.7-dev libgomp1-dbg libitm1-dbg libquadmath0-dbg libmudflap0-dbg binutils-gold
gccgo-4.7-doc
The following packages will be REMOVED:
gcc-4.7-base:i386 libapt-pkg4.12:i386 libbz2-1.0:i386 libc6:i386 libc6-i686:i386 libgcc1:i386 libstdc++6:i386 zlib1g:i386
The following packages will be upgraded:
cpp-4.7 g++-4.7 g++-4.7-multilib gcc-4.7 gcc-4.7-base gcc-4.7-multilib gccgo-4.7 lib32gcc1 lib32gomp1 lib32itm1 lib32mudflap0 lib32quadmath0 lib32stdc++6
libgcc1 libgcc1-dbg libgfortran3 libgo0 libgo0-dbg libgomp1 libitm1 libmudflap0 libquadmath0 libstdc++6 libstdc++6-4.7-dbg libstdc++6-4.7-dev
25 upgraded, 0 newly installed, 8 to remove and 62 not upgraded.
[...]
dpkg: dependency problems prevent configuration of libstdc++6-4.7-dbg:amd64:
libstdc++6-4.7-dbg:amd64 depends on libgcc1-dbg; however:
Package libgcc1-dbg:amd64 is not configured yet.
dpkg: error processing libstdc++6-4.7-dbg:amd64 (--configure):
dependency problems - leaving unconfigured
[...]
dpkg: dependency problems prevent configuration of libstdc++6-4.7-dbg:amd64:
libstdc++6-4.7-dbg:amd64 depends on libgcc1-dbg; however:
Package libgcc1-dbg:amd64 is not configured yet.
dpkg: error processing libstdc++6-4.7-dbg:amd64 (--configure):
dependency problems - leaving unconfigured
I tried again:
# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
anjuta-common gtkpod-data id3v2 libanjuta-3-0 libgdl-3-2 libgdl-3-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libgcc1-dbg
The following packages will be upgraded:
libgcc1-dbg
1 upgraded, 0 newly installed, 0 to remove and 62 not upgraded.
2 not fully installed or removed.
Need to get 0 B/101 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 237, in <module>
main()
File "/usr/bin/apt-listchanges", line 48, in main
debs = apt_listchanges.read_apt_pipeline(config)
File "/usr/share/apt-listchanges/apt_listchanges.py", line 83, in read_apt_pipeline
return map(lambda pkg: filenames[pkg], order)
File "/usr/share/apt-listchanges/apt_listchanges.py", line 83, in <lambda>
return map(lambda pkg: filenames[pkg], order)
KeyError: 'libgcc1-dbg'
dpkg: dependency problems prevent configuration of libgcc1-dbg:amd64:
libgcc1-dbg:amd64 depends on gcc-4.7-base (= 4.7.0-5); however:
Version of gcc-4.7-base:amd64 on system is 4.7.0-6.
libgcc1-dbg:amd64 depends on libgcc1 (= 1:4.7.0-5); however:
Version of libgcc1:amd64 on system is 1:4.7.0-6.
dpkg: error processing libgcc1-dbg:amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libstdc++6-4.7-dbg:amd64:
libstdc++6-4.7-dbg:amd64 depends on libgcc1-dbg; however:
Package libgcc1-dbg:amd64 is not configured yet.
dpkg: error processing libstdc++6-4.7-dbg:amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libgcc1-dbg:amd64
libstdc++6-4.7-dbg:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
--- System information. ---
Architecture: amd64
Kernel: Linux 3.4.0-rc4
Debian Release: wheezy/sid
500 unstable iota.nren.ro
500 unstable ftp.lug.ro
500 testing iota.nren.ro
--- Package information. ---
Depends (Version) | Installed
===========================================-+-=================
libapt-pkg4.12 (>= 0.8.16~exp9) |
libc6 (>= 2.4) |
libgcc1 (>= 1:4.1.1) |
libstdc++6 (>= 4.6) |
debian-archive-keyring |
gnupg |
Package's Recommends field is empty.
Suggests (Version) | Installed
=========================-+-===========
aptitude | 0.6.6-1+b1
OR synaptic | 0.75.10
OR wajig |
dpkg-dev | 1.16.3
apt-doc |
xz-utils | 5.1.1alpha+20110809-3
python-apt | 0.8.4
--- Output from package bug script ---
Reply to: