upgrade failed: mixed non-coinstallable and coinstallable package instances present
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Fix Released
|
Critical
|
Dimitri John Ledkov | ||
Quantal |
Fix Released
|
Critical
|
Dimitri John Ledkov |
Bug Description
If you are affected by this bug, please do not email me personally for support.
As suggested below, you can use the perl script from:
https:/
In general, simply purge the packages that are have mixed non-coinstallable and coinstallable package instances present.
Regards,
Dmitrijs.
====
This is the bug which was warned about in [0]
The easy analysis that you can run, with solutions proposed to recover is in [1]
The minimal test case goes like this:
1) install non-multiarch package for native architecture with some config files
2) remove non-multiarch package (not purge)
3) rm /var/lib/
4) install multiarch package for foreign architecture, optionally with the same config file
5) upgrading dpkg will result in:
mixed non-coinstallable and coinstallable package instances present
To easily reproduce the problem, I created a test case packages, see lp:~dmitrij.ledkov/+junk/lp1015567-test
bzr branch lp:~dmitrij.ledkov/+junk/lp1015567-test
cd lp1015567-test
debuild
pbuilder-dist precise create
echo "HOOKDIR=
cp ../lp1015567-
pbuilder-dist precise execute F10lp1015567
[0] http://<email address hidden>
[1] http://<email address hidden>/firsthit
--
TODO
natty, oneiric, precise are suspected they may corrupt dpkg database as stated in [0]
it is possible to use script from [1] to fix up the dpkg database
Should this be done in dpkg or in update-manager?
One solution is to mark the: rc non-ma package as ma:same
Should this be backported to natty, oneiric, precise?
--
ORIGINAL DESCRIPTION
This morning I decided to upgrade precise -> quantal.
I replaced 'precise' -> 'quantal' in /etc/apt/
the upgrade failed. Attempts to 'apt-get -f install' look like:
$ sudo apt-get -f install --assume-yes
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
erlang-crypto python-avahi erlang-xmerl erlang-syntax-tools libsctp1
lksctp-tools libmozjs185-1.0 libopenal-data erlang-
erlang-mnesia erlang-public-key python-
erlang-ssl python-
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
empathy empathy-common eog evolution-
gir1.
gnome-
libecal-1.2-11 libedataserver-
libgnome-
libmusicbrainz5-0 librhythmbox-core6 libsane-common libunity-core-5.0-5
nautilus-data unity unity-common unity-services
Suggested packages:
empathy-call
The following packages will be REMOVED:
libgnome-
The following NEW packages will be installed:
libcamel-1.2-33 libebook-1.2-13 libecal-1.2-11 libedataserver-
libgnome-
librhythmbox-
The following packages will be upgraded:
empathy empathy-common eog evolution-
gir1.
gnome-
libgnomekbd-
unity-services
16 upgraded, 10 newly installed, 1 to remove and 1058 not upgraded.
81 not fully installed or removed.
Need to get 0 B/7,509 kB of archives.
After this operation, 12.2 MB of additional disk space will be used.
dpkg: error: parsing file '/var/lib/
mixed non-coinstallable and coinstallable package instances present
E: Sub-process /usr/bin/dpkg returned an error code (2)
Potentially useful information, I do have /etc/apt/
deb http://
and
deb http://
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: dpkg 1.16.3ubuntu2
ProcVersionSign
Uname: Linux 3.2.0-25-generic x86_64
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
Date: Wed Jun 20 09:30:38 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
TERM=screen-bce
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: dpkg
UpgradeStatus: Upgraded to precise on 2011-11-07 (226 days ago)
Changed in dpkg (Ubuntu): | |
importance: | Undecided → High |
status: | New → Triaged |
milestone: | none → quantal-alpha-2 |
Changed in dpkg (Ubuntu Quantal): | |
assignee: | nobody → Dmitrijs Ledkovs (dmitrij.ledkov) |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
tags: | added: rls-p-incomming rls-q-incomming |
tags: |
added: rls-p-incoming rls-q-incoming removed: rls-p-incomming rls-q-incomming |
tags: | removed: rls-q-incoming |
Changed in dpkg (Ubuntu Quantal): | |
milestone: | quantal-alpha-2 → quantal-alpha-3 |
Changed in dpkg (Ubuntu Quantal): | |
milestone: | quantal-alpha-3 → ubuntu-12.10-beta-2 |
Changed in dpkg (Ubuntu Quantal): | |
status: | Triaged → Fix Committed |
Colin asked that I include contents of /var/lib/dpkg. They're attached here.