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

06 Apr 2017 ᛫ 2 min read

SHARE:

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.

python3
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.
SHARE:
comments powered by Disqus

You may also like:

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

10 Apr 2017 ᛫ 1 min read

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

10 Apr 2017 ᛫ 2 min read

Make a Python 3.6 virtual environment in Xubuntu 16.04 using venv

04 Apr 2017 ᛫ 2 min read

Make virtual environments with different Python versions in Xubuntu 14.04

27 Mar 2017 ᛫ 3 min read

Create a bootable Windows 10 USB in Xubuntu 16.04 using mkusb

03 Apr 2017 ᛫ 1 min read

Support BNHR

If you find my website or any of the materials I share useful, you can consider donating to the cause below.

Donate and support BNHR

BNHR

[email protected]

Creative Commons License
Except when explicitly stated otherwise, this work and its contents by Ben Hur S. Pintor is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Other works (software, source code, etc.) referenced in this website are under their own respective licenses.
This site is powered by Jekyll and hosted on Github (view source)