do-release-upgrade crashed with ImportError in /usr/lib/ubuntu-release-upgrader/check-new-release: No module named DistUpgrade.DistUpgradeVersion

Bug #1023055 reported by AlexHarrowell
546
This bug affects 95 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
High
Brian Murray
Quantal
Fix Released
High
Brian Murray

Bug Description

Did release upgrade trying to fix https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1020075

Got this error and no fix.

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: ubuntu-release-upgrader-core 1:0.170
ProcVersionSignature: Ubuntu 3.5.0-3.3-generic 3.5.0-rc5
Uname: Linux 3.5.0-3-generic x86_64
ApportVersion: 2.3-0ubuntu2
Architecture: amd64
Date: Tue Jul 10 17:36:23 2012
ExecutablePath: /usr/bin/do-release-upgrade
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120530)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/lib/ubuntu-release-upgrader/check-new-release -q
ProcEnviron: PATH=(custom, no user)
PythonArgs: ['/usr/lib/ubuntu-release-upgrader/check-new-release', '-q']
SourcePackage: ubuntu-release-upgrader
Title: do-release-upgrade crashed with ImportError in /usr/lib/ubuntu-release-upgrader/check-new-release: No module named DistUpgrade.DistUpgradeVersion
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/ubuntu-release-upgrader/check-new-release", line 8, in <module>
     from DistUpgrade.DistUpgradeVersion import VERSION
 ImportError: No module named DistUpgrade.DistUpgradeVersion
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
AlexHarrowell (a-harrowell) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
tags: added: bugpattern-needed
C de-Avillez (hggdh2)
tags: added: qa-manual-testing
visibility: private → public
Changed in ubuntu-release-upgrader (Ubuntu):
importance: Undecided → High
status: Confirmed → Triaged
Revision history for this message
jerrylamos (jerrylamos) wrote :

Just booted and got this error. I had updated the day before:

sudo aptitude update && sudo aptitude -y full-upgrade

Sometimes I use aptitude, sometimes apt-get. Apt-get has destroyed a lot of installs over the last 5 years in Alpha & Beta, less trouble with aptitude. The standard "Update" is slaughter with "partials".

Jerry

Revision history for this message
Andrea Caratti (andrea-caratti-phys) wrote :

https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1013276

Here there's a similar bug with the software updater

"No module named UpdateManager.UpdateManager"

Which seems to be related to python2 invoking the program instead of python3. May it be the same issue here?

Revision history for this message
Spinaker (mergzz) wrote : Re: [Bug 1023055] Re: do-release-upgrade crashed with ImportError in /usr/lib/ubuntu-release-upgrader/check-new-release: No module named DistUpgrade.DistUpgradeVersion

since the last update the bug is not reappeared

Revision history for this message
Hendrik Schrieber (hennekn) wrote :

Just happend to me again. Doing a partial system upgrade now.

tags: removed: bugpattern-needed
tags: added: bugpattern-written
Changed in ubuntu-release-upgrader (Ubuntu Quantal):
assignee: nobody → Canonical Foundations Team (canonical-foundations)
Revision history for this message
Rainer Rohde (rainer-rohde) wrote :
Download full text (3.6 KiB)

Happened just now using apt-get install -f:

The following packages will be upgraded:
  python3
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
Need to get 0 B/33.0 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue [Y/n]?
dpkg: dependency problems prevent configuration of python3:
 python3 depends on python3-minimal (= 3.2.3-2ubuntu1); however:
  Version of python3-minimal on system is 3.2.3-3ubuntu1.

dpkg: error processing python3 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-drivers-common:
 ubuntu-drivers-common depends on python3 (>= 3.2.3-3~); however:
  Version of python3 on system is 3.2.3-2ubuntu1.

dpkg: error processing ubuntu-drivers-common (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              No apport report written because MaxReports is reached already
                                                                                                                            dpkg: dependency problems prevent configuration of nvidia-common:
 nvidia-common depends on ubuntu-drivers-common; however:
  Package ubuntu-drivers-common is not configured yet.

dpkg: error processing nvidia-common (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-software-properties:
 python3-software-properties depends on python3 (>= 3.2.3-3~); however:
  Version of python3 on system is 3.2.3-2ubuntu1.

dpkg: error processing python3-software-properties (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of software-properties-common:
 software-properties-common depends on python3 (>= 3.2.3-3~); however:
  Version of python3 on system is 3.2.3-2ubuntu1.
 software-properties-common depends on python3-software-properties; however:
  Package python3-software-properties is not configured yet.

dpkg: error processing software-properties-common (--configure):
 dependency No apport report written because MaxReports is reached already
                                                                          No apport report written because MaxReports is reached already
                                                                                                                                        No apport report written because MaxReports is reached already
                                                                                                                                                                                                      No apport report written because MaxReports is reached already
                     problems - leaving unconfigured
dpkg: dependency problems prevent configuration of software-properties-gtk:
 software-properties-gtk depends on python3 (>= 3.2.3-3~); however:
  Version of python3 on system is 3.2.3-2ubuntu1.
 software-properties-gtk depends on python3-software-properties; however:
 ...

Read more...

Revision history for this message
Guy Stone (stoneguy3) wrote :

Not an update. Is a fresh install overwriting previous (failed) attempt using Vbox VDI

Revision history for this message
Mark Kelley (mcellius) wrote :

Okay, so it's not an update but a fresh install. Whatever it's called, it won't work: can't update, upgrade, install, or anything else. Is there anything I'm missing?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-release-upgrader - 1:0.170ubuntu1

---------------
ubuntu-release-upgrader (1:0.170ubuntu1) quantal; urgency=low

  * Rebuild with fixed dh_python3 (LP: #1023055).
 -- Brian Murray <email address hidden> Fri, 13 Jul 2012 09:30:49 -0700

Changed in ubuntu-release-upgrader (Ubuntu Quantal):
status: Triaged → Fix Released
Changed in ubuntu-release-upgrader (Ubuntu Quantal):
assignee: Canonical Foundations Team (canonical-foundations) → Brian Murray (brian-murray)
Revision history for this message
Logan Rosen (logan) wrote :

Brian, it looks like there is a bzr conflict in 1:0.170ubuntu1, which you just uploaded. There are .BASE, .OTHER, and .THIS files. Shouldn't that be fixed?

Revision history for this message
Michael Moroni (airon90) wrote :

I continuously get this Apport report. Isn't this bug yet to be fixed?

Revision history for this message
Spinaker (mergzz) wrote :

No I still can not update a python3: Depends: python3-minimal (=
3.2.3-2ubuntu1) but 3.2.3-4 is the version installed
python3-distupgrade: python3-software-properties: Depends: python3 (> =
3.2.3-3 ~) but version 3.2.3-2ubuntu1 is installed
software-properties-common: Depends: python3 (> = 3.2.3-3 ~) but version
3.2.3-2ubuntu1 is installed
software-properties-gtk: Depends: python3 (> = 3.2.3-3 ~) but version
3.2.3-2ubuntu1 is installed

Revision history for this message
Mark Kelley (mcellius) wrote :

I tried this fix, posted by someone called mc4man on ubuntuforums.org, and it worked on my system:

But what you could try -
get these 3 packages, place in a folder, cd to the folder * run
Code:

sudo dpkg -i *.deb

As long as they install then it won't matter if there are any other broken, synaptic or apt-get should handle

python3_3.2.3-3ubuntu1_all.deb
python3-all_3.2.3-3ubuntu1_all.deb
python3-minimal_3.2.3-3ubuntu1_all.deb

Can be downloaded from here if not already in /var/cache/apt/archives, just use those 3 to start
https://launchpad.net/ubuntu/+source...+build/3652904

Revision history for this message
Nathan Williams (nathwill-deactivatedaccount-deactivatedaccount) wrote :

ditto here, but i was able to get away with apt-get download'ing python3 and installing python3 with dpkg. everything else was able to upgrade normally thereafter

Revision history for this message
Tony Mugan (tmugan) wrote :

Got this today on the reboot just after updating all packages.

Revision history for this message
Scott (scott-haldane) wrote :

Got the same today 12.10 running partial upgrade, failed when "reading cache"
Worked when running:
  sudo apt-get -f dist-upgrade

Revision history for this message
Ben McCann (benjamin-j-mccann) wrote :
To post a comment you must log in.