update-manager and update-notifier packages won't upgrade in Xubuntu 16.04 because of missing six module. [SOLVED]


I was performing a routine update and upgrade of my system packages when I encountered this error.

update-manager, update-notifier, and update-notifier-common failed to upgrade because apparently the python module six was not found in my system.

ImportError: No module named 'six'

I was pretty sure I had python-six and python3-six in my system so I checked. Everything was fine when I exported six in python and python2 but I encountered a problem when I tried to import six using the system’s default python3 interpreter.

Python 3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import six
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'six'

It seems like the module six wasn’t being read by my system’s python3.

I looked around for a solution. Some involved reinstalling python3 or running sudo apt install –fix-missing. Others included repairing /var/lib/dpkg/status or clearing /var/lib/apt/lists* but the easiest method that worked for me was simply reinstalling python3-six.

sudo apt install --reinstall python3-six

After this, update-manager and update-notifier were both automatically upgraded/installed in my machine.

To check, I tried to run another update and upgrade.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

comments powered by Disqus

You may also like:

ImportError - No module named resources_rc (QGIS Plugin Development) [SOLVED]

Adding images to the GUI of your custom QGIS 2.X plugin with Qt Designer

Make a Python 3.6 virtual environment in Xubuntu 16.04 using venv

Make Virtual Environments with different Python versions in Xubuntu 14.04

Create a Bootable Windows 10 USB in Xubuntu 16.04 using mkusb