I just upgraded from Ubuntu GNOME 16.04 to 16.10, then I cannot run software-properties-gtk
.
Output of that command is:
Traceback (most recent call last):
File "/usr/bin/software-properties-gtk", line 37, in <module>
from softwareproperties.gtk.SoftwarePropertiesGtk import SoftwarePropertiesGtk
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 34, in <module>
from aptdaemon import client
File "/usr/lib/python3/dist-packages/aptdaemon/client.py", line 43, in <module>
import defer
ImportError: No module named 'defer'
This means that all other programs relying on aptd
are throwing errors.
I have tried reinstalling the package python-defer
which proceeded without any errors but that did not correct this problem.
Any suggestions what went wrong? Thanks!
defer
for different python versions. If i remember correctly, you can either usepip2 install
orpip3 install
.sudo pip install defer
. You may wish to post this as an answer. I have one question though. Why wouldn't the installedpython-defer
package work, while pip install works?software-properties-gtk
is looking insidedist-packages
for Python 3, so you probably need to dosudo apt install python3-defer
.python-defer
it actually installs into python2 site-packages. But usuallypip
is mapped to the highest python version. Sopip install defer
installed it for python3. And apparently that/usr/bin/software-properties-gtk
uses python3.