The first command also uninstalled python-matplotlib.
The second command re-installed python-backports.functools-lru-cache and _created_ the file /usr/lib/python2.7/dist-packages/backports/__init__.py
The two systems were installed at different times and are updated at different times as well; maybe this problem only appeared for a short time, and was later solved. (I am trying to make sense of @stefanor 's comment)
I have two Bionic x86_64 systems. One was showing the problem, the other was not.
The problem disappeared after issuing:
# apt purge python- backports. functools- lru-cache
# apt install python-matplotlib
The first command also uninstalled python-matplotlib. backports. functools- lru-cache and _created_ the file /usr/lib/ python2. 7/dist- packages/ backports/ __init_ _.py
The second command re-installed python-
The two systems were installed at different times and are updated at different times as well; maybe this problem only appeared for a short time, and was later solved. (I am trying to make sense of @stefanor 's comment)