package update-manager 1:0.81 failed to install/upgrade: subprocess pre-installation script returned error exit status 1

Bug #196356 reported by Jesse Bye
12
Affects Status Importance Assigned to Milestone
python-central (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: update-manager

Upgrading from 7.10 Gutsy to 8.04 Hardy using update-manager -d. About midway through the installation stage, update-manager reported an error (similar to this one). After the upgrade process (which failed right before the clean-up stage), I rebooted and after logging in to GNOME received this error. Also, Package Manager is now reporting an error: "Error: BrokenCount > 0". My guess is that its related to the update-manager bug.

ProblemType: Package
Architecture: i386
Date: Wed Feb 27 19:23:28 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: subprocess pre-installation script returned error exit status 1
Package: update-manager 1:0.81
PackageArchitecture: all
SourcePackage: update-manager
Title: package update-manager 1:0.81 failed to install/upgrade: subprocess pre-installation script returned error exit status 1
Uname: Linux 2.6.24-10-generic i686

Revision history for this message
Jesse Bye (jesse-bye) wrote :
Revision history for this message
Marco Peter (flying-toaster) wrote :

The error report midway the installation stage said it could not install the update-manager, because it is already installed.
Attached you find the output of the command window at the end of the installation stage.

--------------------------------------------------------
Fehler traten auf beim Bearbeiten von:
 update-manager
Traceback (most recent call last):
  File "logging/__init__.py", line 753, in emit
    self.flush()
  File "logging/__init__.py", line 731, in flush
    self.stream.flush()
IOError: [Errno 9] Bad file descriptor
Traceback (most recent call last):
  File "logging/__init__.py", line 753, in emit
    self.flush()
  File "logging/__init__.py", line 731, in flush
    self.stream.flush()
IOError: [Errno 9] Bad file descriptor
Traceback (most recent call last):
  File "logging/__init__.py", line 753, in emit
    self.flush()
  File "logging/__init__.py", line 731, in flush
    self.stream.flush()
IOError: [Errno 9] Bad file descriptor

Revision history for this message
Jesse Bye (jesse-bye) wrote :

The way I understand what is happening (maybe I'm wrong), dpkg fails to replace update-manager. The relevant terminal output:

Preparing to replace update-manager 1:0.81 (using .../update-manager_1%3a0.87.9_all.deb) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1674, in <module>
    main()
  File "/usr/bin/pycentral", line 1668, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1169, in run
    pkg.prepare(used_runtimes, old_used_runtimes, old_pkg)
  File "/usr/bin/pycentral", line 803, in prepare
    rt.remove_byte_code(removed_fs)
AttributeError: 'NoneType' object has no attribute 'remove_byte_code'
dpkg: error processing /var/cache/apt/archives/update-manager_1%3a0.87.9_all.deb (--unpack):
 subprocess pre-installation script returned error exit status 1

I don't see any errors stating that it can't install because update-manager is already installed. It is attempting to "replace" update-manager when it fails.

Revision history for this message
Richard Birnie (rbirnie-deactivatedaccount) wrote :

thanks for reporting this bug. If anyone still has them could you please attach the log files from /var/log/dist-upgrade to help us figure out what caused the problem

Changed in update-manager:
status: New → Incomplete
Revision history for this message
Nick B. (futurepilot) wrote :

Same problem here. Just attempted to upgrade an Xubuntu system, and when it started to upgrade the packages it immediately gave this error.

Revision history for this message
Nick B. (futurepilot) wrote :
Revision history for this message
Nick B. (futurepilot) wrote :
Revision history for this message
Richard Birnie (rbirnie-deactivatedaccount) wrote :

Thanks for providing the logs. Changed status to triaged

Changed in update-manager:
status: Incomplete → Triaged
Revision history for this message
Michael Vogt (mvo) wrote :

This is a oldish bug in python-central (the original one reported by Jesse Bye) that is fixed already.

Changed in update-manager:
status: Triaged → Fix Released
Revision history for this message
Michael Vogt (mvo) wrote :

@Nick B: your bug seems to be a different one, could you please check for a file called "apt-term.log" and attach that please?

Revision history for this message
Nick B. (futurepilot) wrote :

Unfortunately, it appears that log was not created. Most likely because it never actually upgraded any packages. It failed immediately. The term.log I attached before was the only output in the terminal. Perhaps I should open a new bug for this?

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.