When applying upgrade from 12.04 to 12.10 I got a ERROR and update-manager crashed

Bug #1055386 reported by Horacio
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

I was doing a partial upgrade from 12.04 to 12.10
during the application of new packages the update-manager crashed.
Last lines in terminal were:

AssertionError
Original exception was:
Traceback (most recent call last):
  File "/usr/bin/update-manager", line 113, in <module>
    controller.doPartialUpgrade()
  File "/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeController.py", line 1748, in doPartialUpgrade
    if not self.doPostUpgrade():
  File "/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeController.py", line 1152, in doPostUpgrade
    now_obsolete = self.cache._getObsoletesPkgs()
  File "/usr/lib/python2.7/dist-packages/DistUpgrade/DistUpgradeCache.py", line 985, in _getObsoletesPkgs
    for pkg in self:
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 197, in __iter__
    yield self[pkgname]
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 182, in __getitem__
    pkg = self._weakref[key] = Package(self, self._cache[key])
KeyError: '0ad-dbg:i386'

My OS was Ubuntu 12.04 and my kernel was 3.2.0-31-generic
Now my kernel is 3.0.0-17-generic (at least is what I got when I do uname -r).

because my previous upgrade didn't complete update-manager doesn't work
it is telling me "index software is broken" please use Synaptic or sudo apt-get install -f to fix this issue
but I don't know how.
I didn't reboot my new system, please give me a hint what to do.

Thanks
Horacio

Revision history for this message
Horacio (galanh) wrote :
affects: launchpad → ubuntu
description: updated
Revision history for this message
Horacio (galanh) wrote :

I reported the error above

Synaptic is running so I am trying to fix the broken packages with Synaptic.

When I applied the following changes with Synaptic I got the following error:

Preconfiguring packages ...
dpkg: error: parsing file '/var/lib/dpkg/status' near line 21986 package 'libsdl-image1.2:i386':
 mixed non-coinstallable and coinstallable package instances present
W: Waited for dpkg --assert-multi-arch but it wasn't there - dpkgGo (10: No child processes)
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:
dpkg: error: parsing file '/var/lib/dpkg/status' near line 21986 package 'libsdl-image1.2:i386':
 mixed non-coinstallable and coinstallable package instances present

Synaptic said "not all the changes and updates succeeded"

I cannot upgrade!
What you recommend ?
Thanks
Horacio

Revision history for this message
Horacio (galanh) wrote :

Now I tried : sudo apt-get install -f

The only error is always:

Preconfiguring packages ...
dpkg: error: parsing file '/var/lib/dpkg/status' near line 21986 package 'libsdl-image1.2:i386':
 mixed non-coinstallable and coinstallable package instances present
E: Sub-process /usr/bin/dpkg returned an error code (2)

Thanks
Horacio

Revision history for this message
Book 'em Dano (heymrdjd) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. Could you please add the log files from '/var/log/dist-upgrade/' to this bug report as separate attachments? Thanks in advance.

affects: ubuntu → update-manager (Ubuntu)
Changed in update-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Horacio (galanh) wrote :

error it stil there:

gato@gato-laptop:~$ sudo dpkg -l libsld-image*
[sudo] password for gato:
dpkg-query: error: parsing file '/var/lib/dpkg/status' near line 21986 package 'libsdl-image1.2:i386':
 mixed non-coinstallable and coinstallable package instances present

Thanks

Revision history for this message
Horacio (galanh) wrote :

inside the file /var/lib/dpkg/status there are two libsdl-image* packages

gato@gato-laptop:~$ sed -n -e 21949,21986p /var/lib/dpkg/status
Package: libsdl-image1.2
Status: deinstall ok config-files
Priority: optional
Section: libs
Installed-Size: 112
Maintainer: Ubuntu Developers <email address hidden>
Architecture: amd64
Source: sdl-image1.2
Version: 1.2.7-1
Config-Version: 1.2.7-1
Depends: libc6 (>= 2.4), libjpeg62, libpng12-0 (>= 1.2.13-4), libsdl1.2debian (>> 1.2.4), libtiff4, zlib1g (>= 1:1.1.4)
Conflicts: armagetron (<< 0.1.4.9-5), burgerspace (<< 1.6.1-1), criticalmass (<< 0.97-2), libparagui1.0 (<= 0.1.0-1), libsdl-perl (<< 1.16-2)
Description: image loading library for Simple DirectMedia Layer 1.2
 This is a simple library to load images of various formats as SDL surfaces.
 This library currently supports BMP, PPM, PCX, GIF, JPEG, PNG, TIFF, and XPM
 formats.
Original-Maintainer: Michael Koch <email address hidden>
Homepage: http://www.libsdl.org/projects/SDL_image/

Package: libsdl-image1.2
Status: install ok installed
Multi-Arch: same
Priority: optional
Section: libs
Installed-Size: 96
Maintainer: Ubuntu Developers <email address hidden>
Architecture: i386
Source: sdl-image1.2
Version: 1.2.10-3
Depends: libc6 (>= 2.11), libjpeg8 (>= 8c), libpng12-0 (>= 1.2.13-4), libsdl1.2debian (>= 1.2.10-1), libtiff4
Pre-Depends: multiarch-support
Description: image loading library for Simple DirectMedia Layer 1.2
 This is a simple library to load images of various formats as SDL surfaces.
 This library currently supports BMP, PPM, PCX, GIF, JPEG, PNG, TIFF, and XPM
 formats.
Original-Maintainer: Debian SDL packages maintainers <email address hidden>
Homepage: http://www.libsdl.org/projects/SDL_image/

gato@gato-laptop:~$

Revision history for this message
Horacio (galanh) wrote :

Mr. Dano thanks for review my logs

Revision history for this message
Horacio (galanh) wrote :
Revision history for this message
Horacio (galanh) wrote :
Revision history for this message
Horacio (galanh) wrote :
Book 'em Dano (heymrdjd)
affects: update-manager (Ubuntu) → ubuntu-release-upgrader (Ubuntu)
tags: added: dist-upgrade precise2quantal
removed: upgrade
Revision history for this message
Horacio (galanh) wrote :

Still I cannot upgrade from 12.04 to 12.10
I did run Synaptic and then reload and there was 5 broken packages.
Attached is a image of 5 broken package....

During application of changes the error is always the same:

Fontconfig warning: "/etc/fonts/conf.d/90-fonts-nanum.conf", line 40: Having multiple values in <test> isn't supported and may not works as expected
Fontconfig warning: "/etc/fonts/conf.d/90-fonts-unfonts-core.conf", line 11: Having multiple values in <test> isn't supported and may not works as expected
dpkg: error: parsing file '/var/lib/dpkg/status' near line 21970 package 'libsdl-image1.2:i386':
 mixed non-coinstallable and coinstallable package instances present
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:
dpkg: error: parsing file '/var/lib/dpkg/status' near line 21970 package 'libsdl-image1.2:i386':
 mixed non-coinstallable and coinstallable package instances present

Thanks

Revision history for this message
Book 'em Dano (heymrdjd) wrote :

Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to let them handle it from here. Thanks for taking the time to make Ubuntu better!

Changed in ubuntu-release-upgrader (Ubuntu):
status: Incomplete → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.