Kolbu

Computers, Gadgets and Beyond!
Subscribe


Ubuntu Hardy upgrade woes

February 20, 2008 By: webmaster Category: Tech Problems, Technology

This week, two showstoppers appeared in the Ubuntu Hardy upgrade system. First one was a botched upgrade of a language package under OpenOffice and the other was a problem related to Python/APT/dpkg.
First one looked like this:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  language-support-writing-en: Depends: openoffice.org-hyphenation-en-us but it is not installed
E: Unmet dependencies. Try using -f.
The easy fix out of this one is to start up System->Administration->Synaptics Package Manager and uninstall "openoffice.org-hyphenation". This will trigger a removal of about 85 packages including OpenOffice itself. When that is done, use the same Package Manager to install OpenOffice again and in goes the 85 packages again.
The second one looked like this:
Setting up python-apt (0.7.4ubuntu5) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1593, in 
    main()
  File "/usr/bin/pycentral", line 1587, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 982, in run
    self.pkg.byte_compile(bc_option, self.options.exclude)
  File "/usr/bin/pycentral", line 624, in byte_compile
    rt.byte_compile(files, bc_option, exclude_regex)
AttributeError: 'NoneType' object has no attribute 'byte_compile'
dpkg: error processing python-apt (--configure):
 subprocess post-installation script returned error exit status 1
This has now been fixed, and a new python-central should be available at the repositories. I hacked my python-apt to bypass this before the official fix was out, but all you should have to do is update/upgrade as normal and everything will be fine.

Leave a Reply