I got this error pop up around 4 times every login on Kubuntu 13.10
amd64 (upgraded), and then at random intervals after that.

Oddly on my other Kubuntu 13.10 amd64 box (again upgraded) this module is 
available for python 2.7:
>>> import packagekit.backend
>>> packagekit.backend
<module 'packagekit.backend' from 
'/usr/lib/python2.7/dist-packages/packagekit/backend.pyc'>

The py files on my working box were in /usr/share/pyshared/packagekit and 
symlinked to /usr/lib/python2.7/dist-packages/packagekit.
They must have come from some old package that was removed during the upgrade 
but preserved the files I guess?

I tested out two possible workarounds and they both seemed to work:

1. Modify /usr/share/PackageKit/helpers/aptcc/get-distro-upgrade.py and change 
the first line to:
#!/usr/bin/env python3

2. Copy over /usr/share/pyshared/packagekit/ from my working box and
symlink the py files to /usr/lib/python2.7/dist-packages/packagekit/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1246539

Title:
  get-distro-upgrade.py needs to be converted to python3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/1246539/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to