pycentral crashed with AttributeError in prepare()

Bug #196829 reported by corey
16
Affects Status Importance Assigned to Milestone
python-central (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: python-central

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"

Found in onboard_0.91_all.deb

apt-cache policy onboard
onboard:
  Installed: 0.87
  Candidate: 0.91
  Version table:
     0.91 0
        500 http://ca.archive.ubuntu.com hardy/main Packages
 *** 0.87 0
        100 /var/lib/dpkg/status

Normal update with Update Manager. The update of this last package failed.

ProblemType: Crash
Architecture: i386
Date: Thu Feb 28 20:51:17 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/pycentral
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: python-central 0.5.60ubuntu4
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/pycentral pkgprepare onboard
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/pycentral', 'pkgprepare', 'onboard']
SourcePackage: python-central
Title: pycentral crashed with AttributeError in prepare()
Uname: Linux 2.6.24-10-generic i686
UserGroups:

Tags: apport-crash
Revision history for this message
corey (mrcorey) wrote :
Revision history for this message
Jonathan Plona (jonathan-plona) wrote :

Me too

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 1685, in <module>
    main()
  File "/usr/bin/pycentral", line 1679, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 1180, 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
Errors were encountered while processing:
 /var/cache/apt/archives/update-manager_1%3a0.87.9_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Pahcixam (pahcixam) wrote :

I found a solution in order to use the system anyway. Go on synaptic, completely remove update-manager. Answer yes for the question about dependencies and restart computer. Then reinstall update-manger. It work for me.

Good luck everyone.

Revision history for this message
Arthur Archnix (arthur-archnix) wrote :

I have the same error after upgrading from gutsy. I will add the following two methods do not fix the issue:
sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade

&

sudo apt-get clean && sudo apt-get update && sudo apt-get --reinstall install update-manager --purge

Revision history for this message
Kjell Braden (afflux) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 197160, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

Revision history for this message
Arthur Archnix (arthur-archnix) wrote :

You're link is bad Kjell.

Revision history for this message
Arthur Archnix (arthur-archnix) wrote :

Nevermind. For some reason I am not permitted to see the bug report page of #197160

Maybe it has something to do with me. :P

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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