Ubuntu

ubiquity crashes with File "/usr/lib/python2.7/dist-packages/apt_clone.py", line 406, in _restore_package_selection_in_cache when a package failed to upgrade

Reported by Melvin Garcia on 2011-09-12
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Medium
Unassigned

Bug Description

I was trying to upgrade Ubuntu 11.04 to 11.10 using the new 'upgrade' feature and theinstaller crashed.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: ubiquity 2.7.28
ProcVersionSignature: Ubuntu 3.0.0-9.15-generic 3.0.3
Uname: Linux 3.0.0-9-generic i686
ApportVersion: 1.22.1-0ubuntu2
Architecture: i386
CasperVersion: 1.283
Date: Sun Sep 11 20:12:28 2011
LiveMediaBuild: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110902)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)

Melvin Garcia (virtualspectre8) wrote :

Exception during installation:
Sep 11 20:12:09 ubuntu plugininstall.py: Traceback (most recent call last):
Sep 11 20:12:09 ubuntu plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 1667, in <module>
Sep 11 20:12:09 ubuntu plugininstall.py: install.run()
Sep 11 20:12:09 ubuntu plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 55, in wrapper
Sep 11 20:12:09 ubuntu plugininstall.py: func(self)
Sep 11 20:12:09 ubuntu plugininstall.py: File "/usr/share/ubiquity/plugininstall.py", line 251, in run
Sep 11 20:12:09 ubuntu plugininstall.py: self.db.progress('SET', self.count)
Sep 11 20:12:09 ubuntu plugininstall.py: File "/usr/lib/python2.7/dist-packages/debconf.py", line 60, in <lambda>
Sep 11 20:12:09 ubuntu plugininstall.py: lambda *args, **kw: self.command(command, *args, **kw))
Sep 11 20:12:09 ubuntu plugininstall.py: File "/usr/lib/python2.7/dist-packages/debconf.py", line 65, in command
Sep 11 20:12:09 ubuntu plugininstall.py: self.write.flush()
Sep 11 20:12:09 ubuntu plugininstall.py: IOError: [Errno 32] Broken pipe
Sep 11 20:12:09 ubuntu plugininstall.py:

tags: added: installer-crash
Changed in ubiquity (Ubuntu):
importance: Undecided → Medium
summary: - Installer Crashed
+ Installation's upgrade feature crashed

The root cause of the error is
Sep 11 20:11:55 ubuntu ubiquity: Traceback (most recent call last):
Sep 11 20:11:55 ubuntu ubiquity: File "/usr/bin/apt-clone", line 113, in <module>
Sep 11 20:11:55 ubuntu ubiquity: args.source, args.destination, args.new_distro_codename, protect_installed)
Sep 11 20:11:55 ubuntu ubiquity: File "/usr/lib/python2.7/dist-packages/apt_clone.py", line 305, in restore_state
Sep 11 20:11:55 ubuntu ubiquity: self._restore_package_selection(statefile, targetdir, protect_installed)
Sep 11 20:11:55 ubuntu ubiquity: File "/usr/lib/python2.7/dist-packages/apt_clone.py", line 426, in _restore_package_selection
Sep 11 20:11:55 ubuntu ubiquity: self._restore_package_selection_in_cache(statefile, cache, protect_installed)
Sep 11 20:11:55 ubuntu ubiquity: File "/usr/lib/python2.7/dist-packages/apt_clone.py", line 406, in _restore_package_selection_in_cache
Sep 11 20:11:55 ubuntu ubiquity: resolver.resolve()
Sep 11 20:11:55 ubuntu ubiquity: SystemError: E:Unable to correct problems, you have held broken packages.

Which is caused by
Sep 11 20:05:31 ubuntu ubiquity: WARNING:root:can't add at-spi (pkg at-spi not marked upgrade)
(bug 836798?)

This situation should handled more nicely than a python traceback

Changed in ubiquity (Ubuntu):
status: New → Triaged
summary: - Installation's upgrade feature crashed
+ ubiquity crashes with File "/usr/lib/python2.7/dist-
+ packages/apt_clone.py", line 406, in _restore_package_selection_in_cache
+ when a package failed to upgrade
tags: added: upgrade
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers