system upgrade freezes when package upgrade fails

Bug #1499847 reported by Christian Kirbach
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
New
Undecided
Unassigned

Bug Description

I tried to upgrade from 15.04 to 15.10beta2 using "update-manager -c -d"

package "modemmanager" fails to update, and that in turn makes update-manager get stuck in the "update" phase indicated in the GUI.

Console log:

# update-manager -c -d
Neue Veröffentlichungen von Ubuntu werden gesucht
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
»wily.tar.gz« wird gegenüber »wily.tar.gz.gpg« legitimiert
»wily.tar.gz« wird entpackt
No candidate ver: libharfbuzz0:i386
No candidate ver: librtmp0
No candidate ver: gwibber
No candidate ver: libharfbuzz0:i386
No candidate ver: libllvm3.5:i386
No candidate ver: librtmp0
No candidate ver: linux-image-extra-3.19.0-16-generic
No candidate ver: linux-image-extra-3.19.0-18-generic
Traceback (most recent call last):
  File "/usr/share/apport/package_hook", line 64, in <module>
    with apport.fileutils.make_report_file(pr) as f:
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 290, in make_report_file
    return open(path, 'xb')
FileExistsError: [Errno 17] File exists: '/var/crash/modemmanager.0.crash'
/usr/bin/diff: /etc/ati/amdpcsdb.default.dpkg-dist: Datei oder Verzeichnis nicht gefunden
/usr/bin/diff: /etc/ati/atiapfxx.blb.dpkg-dist: Datei oder Verzeichnis nicht gefunden
/usr/bin/diff: /etc/ati/atiapfxx.log.dpkg-dist: Datei oder Verzeichnis nicht gefunden
/usr/bin/diff: /etc/ati/control.dpkg-dist: Datei oder Verzeichnis nicht gefunden
Traceback (most recent call last):
  File "/usr/share/apport/package_hook", line 64, in <module>
    with apport.fileutils.make_report_file(pr) as f:
  File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 290, in make_report_file
    return open(path, 'xb')
FileExistsError: [Errno 17] File exists: '/var/crash/modemmanager.0.crash'
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-ri1q4m20/DistUpgrade/DistUpgradeController.py", line 1137, in doDistUpgrade
    res = self.cache.commit(fprogress,iprogress)
  File "/tmp/ubuntu-release-upgrader-ri1q4m20/DistUpgrade/DistUpgradeCache.py", line 267, in commit
    apt.Cache.commit(self, fprogress, iprogress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 505, in commit
    if fetch_progress is None:
SystemError: installArchives() failed

During handling of the above exception, another exception occurred:

TypeError: wait_for_child() takes 1 positional argument but 2 were given
Error in sys.excepthook:
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-ri1q4m20/DistUpgrade/DistUpgradeController.py", line 1137, in doDistUpgrade
    res = self.cache.commit(fprogress,iprogress)
  File "/tmp/ubuntu-release-upgrader-ri1q4m20/DistUpgrade/DistUpgradeCache.py", line 267, in commit
    apt.Cache.commit(self, fprogress, iprogress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 505, in commit
    if fetch_progress is None:
SystemError: installArchives() failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 102, in apport_excepthook
    pr.add_proc_info(extraenv=['PYTHONPATH', 'PYTHONHOME'])
  File "/usr/lib/python3/dist-packages/apport/report.py", line 535, in add_proc_info
    raise ValueError('%s does not exist' % self['ExecutablePath'])
ValueError: /usr/bin/python3.4 (deleted) does not exist

Original exception was:
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-ri1q4m20/DistUpgrade/DistUpgradeController.py", line 1137, in doDistUpgrade
    res = self.cache.commit(fprogress,iprogress)
  File "/tmp/ubuntu-release-upgrader-ri1q4m20/DistUpgrade/DistUpgradeCache.py", line 267, in commit
    apt.Cache.commit(self, fprogress, iprogress)
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 505, in commit
    if fetch_progress is None:
SystemError: installArchives() failed

During handling of the above exception, another exception occurred:

TypeError: wait_for_child() takes 1 positional argument but 2 were given

ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: ubuntu-release-upgrader-core 1:15.10.6
ProcVersionSignature: Ubuntu 3.19.0-28.30-generic 3.19.8-ckt5
Uname: Linux 3.19.0-28-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.19-0ubuntu1
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: GNOME
Date: Fri Sep 25 20:43:32 2015
InstallationDate: Installed on 2013-01-08 (990 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
JournalErrors:
 No journal files were found.
 -- No entries --
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: ubuntu-release-upgrader
UpgradeStatus: Upgraded to wily on 2015-09-25 (0 days ago)
VarLogDistupgradeAptclonesystemstate.tar.gz: Error: command ['pkexec', 'cat', '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'] failed with exit code 126: Error executing command as another user: Request dismissed
VarLogDistupgradeApttermlog: Error: [Errno 13] Keine Berechtigung: '/var/log/dist-upgrade/apt-term.log'
VarLogDistupgradeTermlog:

Revision history for this message
Christian Kirbach (christian-kirbach-e) wrote :
Revision history for this message
Christian Kirbach (christian-kirbach-e) wrote :

I know that a separate bug is open for the failing package.
This is about a different issue: upgrade-manager just froze with above python stack trace. The exception of a failing package upgrade should be handled. I admit that it should not happen.

Revision history for this message
Brian Murray (brian-murray) wrote :

It was failing when try to write the crash report regarding modemmanager and that was fixed in bug 1500450.

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.