Python update in Bionic Beaver
I'm getting a lengthy return to the command python3 -v that I think indicates a major problem in my system, but I don't understand any of this. Obviously need help to interpret and repair if possible.
ron@ron-
import _frozen_importlib # frozen
import _imp # builtin
import sys # builtin
import '_warnings' # <class '_frozen_
import '_thread' # <class '_frozen_
import '_weakref' # <class '_frozen_
import '_frozen_
import '_io' # <class '_frozen_
import 'marshal' # <class '_frozen_
import 'posix' # <class '_frozen_
import _thread # previously loaded ('_thread')
import '_thread' # <class '_frozen_
import _weakref # previously loaded ('_weakref')
import '_weakref' # <class '_frozen_
# installing zipimport hook
import 'zipimport' # <class '_frozen_
# installed zipimport hook
# /usr/lib/
# code object from '/usr/lib/
# /usr/lib/
# code object from '/usr/lib/
import '_codecs' # <class '_frozen_
import 'codecs' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
import 'encodings.aliases' # <_frozen_
import 'encodings' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
import 'encodings.utf_8' # <_frozen_
import '_signal' # <class '_frozen_
# /usr/lib/
# code object from '/usr/lib/
import 'encodings.latin_1' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
# /usr/lib/
# code object from '/usr/lib/
# /usr/lib/
# code object from '/usr/lib/
import '_weakrefset' # <_frozen_
import 'abc' # <_frozen_
import 'io' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
# /usr/lib/
# code object from '/usr/lib/
import 'errno' # <class '_frozen_
# /usr/lib/
# code object from '/usr/lib/
import '_stat' # <class '_frozen_
import 'stat' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
# /usr/lib/
# code object from '/usr/lib/
import 'genericpath' # <_frozen_
import 'posixpath' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
import '_collections_abc' # <_frozen_
import 'os' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
import '_sitebuiltins' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
import 'sysconfig' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
import '_sysconfigdata
# /usr/lib/
# code object from '/usr/lib/
import '_locale' # <class '_frozen_
import '_bootlocale' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
# /usr/lib/
# code object from '/usr/lib/
import '_functools' # <class '_frozen_
# /usr/lib/
# code object from '/usr/lib/
# /usr/lib/
# code object from '/usr/lib/
import '_operator' # <class '_frozen_
import 'operator' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
import 'keyword' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
import '_heapq' # <class '_frozen_
import 'heapq' # <_frozen_
import 'itertools' # <class '_frozen_
# /usr/lib/
# code object from '/usr/lib/
import 'reprlib' # <_frozen_
import '_collections' # <class '_frozen_
import 'collections' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
import 'weakref' # <_frozen_
import 'functools' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
import 'collections.abc' # <_frozen_
import 'types' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
# /usr/lib/
# code object from '/usr/lib/
import 'warnings' # <_frozen_
import 'importlib' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
# /usr/lib/
# code object from '/usr/lib/
# /usr/lib/
# code object from '/usr/lib/
import 'importlib.
import 'importlib.abc' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
import 'contextlib' # <_frozen_
import 'importlib.util' # <_frozen_
# /usr/lib/
# code object from '/usr/lib/
# /usr/lib/
# code object from '/usr/lib/
import 'apport_
import 'sitecustomize' # <_frozen_
import 'site' # <_frozen_
Python 3.6.6 (default, Sep 12 2018, 18:26:19)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
# extension module 'readline' loaded from '/usr/lib/
# extension module 'readline' executed from '/usr/lib/
import 'readline' # <_frozen_
import 'atexit' # <class '_frozen_
# /usr/lib/
# code object from '/usr/lib/
import 'rlcompleter' # <_frozen_
Also get a long list of issues for sudo apt update
Hit:1 http://
Get:2 http://
Hit:3 http://
Ign:4 http://
Err:5 http://
404 Not Found [IP: 91.189.95.83 80]
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Reading package lists... Done
E: The repository 'http://
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
and this for sudo apt -y upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
luckybackup-data
Use 'sudo apt autoremove' to remove it.
The following packages will be upgraded:
apport apport-gtk bind9-host dnsutils fonts-liberation fonts-liberation2
libbind9-160 libdns1100 libegl1 libgl1 libgles2 libglvnd0 libglx0 libirs160
libisc169 libisccc160 libisccfg160 liblcms2-2 liblcms2-utils liblwres160
libpython3.6 libpython3.
python3-
27 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
23 not fully installed or removed.
Need to get 8,181 kB/9,911 kB of archives.
After this operation, 15.4 kB disk space will be freed.
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Fetched 8,181 kB in 9s (891 kB/s)
(Reading database ... 202661 files and directories currently installed.)
Preparing to unpack .../00-
Unpacking libpython3.6:amd64 (3.6.6-1~18.04) over (3.6.5-3) ...
Preparing to unpack .../01-
Unpacking python3.6 (3.6.6-1~18.04) over (3.6.5-3) ...
Preparing to unpack .../02-
Unpacking libpython3.
Preparing to unpack .../03-
Unpacking python3.6-minimal (3.6.6-1~18.04) over (3.6.5-3) ...
Preparing to unpack .../04-
Unpacking libpython3.
Preparing to unpack .../05-
Unpacking libirs160:amd64 (1:9.11.
Preparing to unpack .../06-
Unpacking bind9-host (1:9.11.
Preparing to unpack .../07-
Unpacking dnsutils (1:9.11.
Preparing to unpack .../08-
Unpacking libbind9-160:amd64 (1:9.11.
Preparing to unpack .../09-
Unpacking libisccfg160:amd64 (1:9.11.
Preparing to unpack .../10-
Unpacking libisccc160:amd64 (1:9.11.
Preparing to unpack .../11-
Unpacking libdns1100:amd64 (1:9.11.
Preparing to unpack .../12-
Unpacking libisc169:amd64 (1:9.11.
Preparing to unpack .../13-
Unpacking liblwres160:amd64 (1:9.11.
Preparing to unpack .../14-
Unpacking python3-
Preparing to unpack .../15-
Unpacking python3-apport (2.20.9-0ubuntu7.3) over (2.20.9-0ubuntu7.2) ...
Preparing to unpack .../16-
Unpacking apport (2.20.9-0ubuntu7.3) over (2.20.9-0ubuntu7.2) ...
Preparing to unpack .../17-
Unpacking apport-gtk (2.20.9-0ubuntu7.3) over (2.20.9-0ubuntu7.2) ...
Preparing to unpack .../18-
Unpacking fonts-liberation (1:1.07.
Preparing to unpack .../19-
Unpacking fonts-liberation2 (2.00.1-7~18.04.1) over (2.00.1-5) ...
Preparing to unpack .../20-
Unpacking liblcms2-2:amd64 (2.9-1ubuntu0.1) over (2.9-1) ...
Preparing to unpack .../21-
Unpacking liblcms2-utils (2.9-1ubuntu0.1) over (2.9-1) ...
Preparing to unpack .../22-
Unpacking libgl1:amd64 (1.0.0-2ubuntu2.2) over (1.0.0-2ubuntu2.1) ...
Preparing to unpack .../23-
Unpacking libglx0:amd64 (1.0.0-2ubuntu2.2) over (1.0.0-2ubuntu2.1) ...
Preparing to unpack .../24-
Unpacking libgles2:amd64 (1.0.0-2ubuntu2.2) over (1.0.0-2ubuntu2.1) ...
Preparing to unpack .../25-
Unpacking libegl1:amd64 (1.0.0-2ubuntu2.2) over (1.0.0-2ubuntu2.1) ...
Preparing to unpack .../26-
Unpacking libglvnd0:amd64 (1.0.0-2ubuntu2.2) over (1.0.0-2ubuntu2.1) ...
Setting up libglvnd0:amd64 (1.0.0-2ubuntu2.2) ...
Setting up libisc169:amd64 (1:9.11.
Setting up libisccc160:amd64 (1:9.11.
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for ureadahead (0.100.0-20) ...
ureadahead will be reprofiled on next reboot
Processing triggers for desktop-file-utils (0.23-1ubuntu3.
Setting up liblcms2-2:amd64 (2.9-1ubuntu0.1) ...
Setting up fonts-liberation2 (2.00.1-7~18.04.1) ...
Setting up fonts-liberation (1:1.07.
Setting up libpython3.
Setting up libegl1:amd64 (1.0.0-2ubuntu2.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for systemd (237-3ubuntu10.3) ...
Setting up libgles2:amd64 (1.0.0-2ubuntu2.2) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up libdns1100:amd64 (1:9.11.
Setting up libglx0:amd64 (1.0.0-2ubuntu2.2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Setting up liblwres160:amd64 (1:9.11.
Processing triggers for fontconfig (2.12.6-0ubuntu2) ...
Setting up liblcms2-utils (2.9-1ubuntu0.1) ...
Setting up libpython3.
Setting up python3.6-minimal (3.6.6-1~18.04) ...
Setting up libisccfg160:amd64 (1:9.11.
Setting up libgl1:amd64 (1.0.0-2ubuntu2.2) ...
Setting up libpython3.6:amd64 (3.6.6-1~18.04) ...
Setting up python3.6 (3.6.6-1~18.04) ...
Setting up python3 (3.6.5-3ubuntu1) ...
running python rtupdate hooks for python3.6...
E: py3compile:183: cannot create directory /usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
[Errno 2] No such file or directory: '/usr/share/
error running python rtupdate hook hplip-data
dpkg: error processing package python3 (--configure):
installed python3 package post-installation script subprocess returned error exit status 4
dpkg: dependency problems prevent configuration of ubuntu-
ubuntu-
Package python3 is not configured yet.
dpkg: error processing package ubuntu-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-brlapi:
python3-brlapi depends on python3 (<< 3.7); however:
Package python3 is not configured yet.
python3-brlapi depends on python3 (>= 3.6~); however:
Package python3 is not configured yet.
python3-brlapi depends on python3:any (>= 3.2~); however:
Package python3 is not configured yet.
dpkg: error processing package python3-brlapi (--configure):
dependency problems - leaving unconfigured
Setting up libirs160:amd64 (1:9.11.
No apport report written because the error message indicates its a followup error from a previous failure.
python3-
Package python3 is not configured yet.
dpkg: error processing package python3-
dependency problems - leaving unconfigured
Setting up libbind9-160:amd64 (1:9.11.
No apport report written because MaxReports is reached already
python3-wadllib depends on python3:any (>= 3.4~); however:
Package python3 is not configured yet.
dpkg: error processing package python3-wadllib (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-shell:
gnome-shell depends on python3; however:
Package python3 is not configured yet.
dpkg: error processing package gnome-shell (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apport-gtk:
apport-gtk depends on python3; however:
Package python3 is not configured yet.
dpkg: error processing package apport-gtk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of netplan.io:
netplan.io depends on python3; however:
Package python3 is not configured yet.
dpkg: error processNo apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-
ubuntu-
Package python3 is not configured yet.
dpkg: error processing package ubuntu-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-apport:
python3-apport depends on python3:any (>= 3.3.2-2~); however:
Package python3 is not configured yet.
dpkg: error processing package python3-apport (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-
python3-
Package python3 is not configured yet.
dpkg: error processing package python3-
dependency problems - leaNo apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of software-
software-
Package python3 is not configured yet.
software-
Package python3 is not configured yet.
dpkg: error processing package software-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nplan:
nplan depends on netplan.io; however:
Package netplan.io is not configured yet.
dpkg: error processing package nplan (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-software:
gnome-software depends on software-
Package software-
dpkg: error processing package gnome-software (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of unattended-
unattended-
Package python3 is not configured yet.
dpkg: error processing package unattended-upgrades (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apport:
apport depends on python3; however:
Package python3 is not configured yet.
apport depends on python3-apport (>= 2.20.9-0ubuntu7.3); however:
Package python3-apport is not configured yet.
dpkg: error processing package apport (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of update-manager:
update-manager depends on python3:any (>= 3.3.2-2~); however:
Package python3 is not configured yet.
update-manager depends on policykit-1-gnome | polkit-kde-agent-1 | lxpolkit | lxqt-policykit | mate-polkit | polkit-
Package policykit-1-gnome is not installed.
Package polkit-kde-agent-1 is not installed.
Package lxpolkit is not installed.
Package lxqt-policykit is not installed.
Package mate-polkit is not installed.
Package polkit-1-auth-agent is not installed.
Package gnome-shell which provides polkit-1-auth-agent is not configured yet.
dpkg: error processing package update-manager (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-
python3-
Package python3 is not configured yet.
python3-
Package python3 is not configured yet.
dpkg: error processing package python3-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-menus:
gnome-menus depends on python3:any (>= 3.1~); however:
Package python3 is not configured yet.
dpkg: error processing package gnome-menus (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-
python3-
Package python3 is not configured yet.
python3-
Package python3-
dpkg: error processing package python3-distupgrade (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of software-
software-
Package python3 is not configured yet.
software-
Package python3 is not configured yet.
software-
Package python3-
dpkg: error processing package software-
dependency problems - leaving unconfigured
Setting up bind9-host (1:9.11.
dpkg: dependency problems prevent configuration of python3-
python3-
Package python3 is not configured yet.
python3-
Package python3 is not configured yet.
dpkg: error processing package python3-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-
ubuntu-
Package ubuntu-
ubuntu-
Package update-manager is not configured yet.
ubuntu-
Package python3-distupgrade is not configured yet.
dpkg: error processing package ubuntu-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of update-
update-
Package python3 is not configured yet.
update-
No apport report written because MaxReports is reached already
update-
Package ubuntu-
No apport report written because MaxReports is reached already
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-software:
ubuntu-software depends on gnome-software (>= 3.28.1-
Package gnome-software is not configured yet.
dpkg: error processing package ubuntu-software (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-apt:
python3-apt depends on python3 (<< 3.7); however:
Package python3 is not configured yet.
python3-apt depends on python3 (>= 3.6~); however:
Package python3 is not configured yet.
python3-apt depends on python3:any (>= 3.3.2-2~); however:
Package python3 is not configured yet.
dpkg: error processing package python3-apt (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-software-
gnome-sofNo apport report written because MaxReports is reached already
Package gnome-software is not configured yet.
dpkg: error processing package gnome-software-
dependency problems - leaving unconfigured
Setting up dnsutils (1:9.11.
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
python3
ubuntu-
python3-brlapi
python3-
python3-wadllib
gnome-shell
apport-gtk
netplan.io
ubuntu-
python3-apport
python3-
software-
nplan
gnome-software
unattended-
apport
update-manager
python3-
gnome-menus
python3-
software-
python3-
ubuntu-
update-
ubuntu-software
python3-apt
gnome-
E: Sub-process /usr/bin/dpkg returned an error code (1)
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Ron Thibault for more information if necessary.