This is a fresh linux machine, and I have set minimal setup configuration.. python environment for my use. Given the following error when I run
>>sudo apt-get update
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Fetched 14.3 MB in 22s (626 kB/s)
(appstreamcli:25806): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed
(appstreamcli:25806): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed
(appstreamcli:25806): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed
(appstreamcli:25806): GLib-CRITICAL **: g_strchomp: assertion 'string != NULL' failed
AppStream cache update completed, but some metadata was ignored due to errors.
(appstreamcli:25806): GLib-CRITICAL **: g_strchug: assertion 'string != NULL' failed
Reading package lists... Done
>>sudo apt-get install gdb
Get:1
http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6-minimal amd64 3.6.9-1~18.04 [533 kB]
Get:2
http://archive.ubuntu.com/ubuntu bionic/main amd64 libreadline7 amd64 7.0-3 [124 kB]
Get:3
http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6-stdlib amd64 3.6.9-1~18.04 [1,709 kB]
Get:4
http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libpython3.6 amd64 3.6.9-1~18.04 [1,414 kB]
Get:5
http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 gdb amd64 8.1-0ubuntu3.2 [2,938 kB]
Fetched 6,718 kB in 1s (5,683 kB/s)
Selecting previously unselected package libpython3.6-minimal:amd64.
(Reading database ... 230074 files and directories currently installed.)
Preparing to unpack .../libpython3.6-minimal_3.6.9-1~18.04_amd64.deb ...
Unpacking libpython3.6-minimal:amd64 (3.6.9-1~18.04) ...
Selecting previously unselected package libreadline7:amd64.
Preparing to unpack .../libreadline7_7.0-3_amd64.deb ...
Unpacking libreadline7:amd64 (7.0-3) ...
Selecting previously unselected package libpython3.6-stdlib:amd64.
Preparing to unpack .../libpython3.6-stdlib_3.6.9-1~18.04_amd64.deb ...
Unpacking libpython3.6-stdlib:amd64 (3.6.9-1~18.04) ...
Selecting previously unselected package libpython3.6:amd64.
Preparing to unpack .../libpython3.6_3.6.9-1~18.04_amd64.deb ...
Unpacking libpython3.6:amd64 (3.6.9-1~18.04) ...
Preparing to unpack .../gdb_8.1-0ubuntu3.2_amd64.deb ...
Unpacking gdb (8.1-0ubuntu3.2) over (7.11.1-0ubuntu1~16.5) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for menu (2.1.47ubuntu1.16.04.1) ...
Setting up libpython3.6-minimal:amd64 (3.6.9-1~18.04) ...
Setting up libreadline7:amd64 (7.0-3) ...
Setting up libpython3.6-stdlib:amd64 (3.6.9-1~18.04) ...
Setting up libpython3.6:amd64 (3.6.9-1~18.04) ...
Setting up gdb (8.1-0ubuntu3.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for menu (2.1.47ubuntu1.16.04.1) ...
But when I type
gbd -v
It goes to
Error processing line 1 of zzzz/.local/lib/python2.7/site-packages/google_auth-1.12.0-py3.8-nspkg.pth:
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.6/site.py", line 174, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "/usr/lib/python3.6/types.py", line 171, in <module>
import functools as _functools
File "/usr/lib/python3.6/functools.py", line 21, in <module>
from collections import namedtuple
File "/usr/lib/python3.6/collections/__init__.py", line 32, in <module>
from reprlib import recursive_repr as _recursive_repr
File "zzzz/.local/lib/python2.7/site-packages/reprlib/__init__.py", line 7, in <module>
raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "zzzz/.local/lib/python2.7/site-packages/site.py", line 73, in <module>
__boot()
File "zzzz/.local/lib/python2.7/site-packages/site.py", line 47, in __boot
addsitedir(item)
File "/usr/lib/python3.6/site.py", line 213, in addsitedir
addpackage(sitedir, name, known_paths)
File "/usr/lib/python3.6/site.py", line 184, in addpackage
import traceback
File "/usr/lib/python3.6/traceback.py", line 3, in <module>
import collections
File "/usr/lib/python3.6/collections/__init__.py", line 32, in <module>
from reprlib import recursive_repr as _recursive_repr
File "zzzz/.local/lib/python2.7/site-packages/reprlib/__init__.py", line 7, in <module>
raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 53, in apport_excepthook
if not enabled():
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled
import re
File "/usr/lib/python3.6/re.py", line 125, in <module>
import functools
File "/usr/lib/python3.6/functools.py", line 21, in <module>
from collections import namedtuple
File "/usr/lib/python3.6/collections/__init__.py", line 32, in <module>
from reprlib import recursive_repr as _recursive_repr
File "zzzz/.local/lib/python2.7/site-packages/reprlib/__init__.py", line 7, in <module>
raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
Original exception was:
Traceback (most recent call last):
File "/usr/lib/python3.6/site.py", line 174, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "/usr/lib/python3.6/types.py", line 171, in <module>
import functools as _functools
File "/usr/lib/python3.6/functools.py", line 21, in <module>
from collections import namedtuple
File "/usr/lib/python3.6/collections/__init__.py", line 32, in <module>
from reprlib import recursive_repr as _recursive_repr
File "zzzz/.local/lib/python2.7/site-packages/reprlib/__init__.py", line 7, in <module>
raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "zzzz/.local/lib/python2.7/site-packages/site.py", line 73, in <module>
__boot()
File "zzzz/.local/lib/python2.7/site-packages/site.py", line 47, in __boot
addsitedir(item)
File "/usr/lib/python3.6/site.py", line 213, in addsitedir
addpackage(sitedir, name, known_paths)
File "/usr/lib/python3.6/site.py", line 184, in addpackage
import traceback
File "/usr/lib/python3.6/traceback.py", line 3, in <module>
import collections
File "/usr/lib/python3.6/collections/__init__.py", line 32, in <module>
from reprlib import recursive_repr as _recursive_repr
File "zzzz/.local/lib/python2.7/site-packages/reprlib/__init__.py", line 7, in <module>
raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
Not exactly the same, but similar error with this command..
>>update-manager
Error processing line 1 of zzzz/.local/lib/python3.5/site-packages/google_auth-1.11.2-py3.8-nspkg.pth:
Failed to import the site module
Traceback (most recent call last):
File "/usr/lib/python3.5/site.py", line 173, in addpackage
exec(line)
File "<string>", line 1, in <module>
File "/usr/lib/python3.5/types.py", line 166, in <module>
import functools as _functools
File "/usr/lib/python3.5/functools.py", line 21, in <module>
from collections import namedtuple
File "/usr/lib/python3.5/collections/__init__.py", line 32, in <module>
from reprlib import recursive_repr as _recursive_repr
File "zzzz/.local/lib/python2.7/site-packages/reprlib/__init__.py", line 7, in <module>
raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "zzzz/.local/lib/python2.7/site-packages/site.py", line 73, in <module>
__boot()
File "zzzz/.local/lib/python2.7/site-packages/site.py", line 22, in __boot
loader.load_module('site')
File "/usr/lib/python3.5/site.py", line 580, in <module>
main()
File "/usr/lib/python3.5/site.py", line 566, in main
known_paths = addusersitepackages(known_paths)
File "/usr/lib/python3.5/site.py", line 290, in addusersitepackages
addsitedir(user_site, known_paths)
File "/usr/lib/python3.5/site.py", line 212, in addsitedir
addpackage(sitedir, name, known_paths)
File "/usr/lib/python3.5/site.py", line 183, in addpackage
import traceback
File "/usr/lib/python3.5/traceback.py", line 3, in <module>
import collections
File "/usr/lib/python3.5/collections/__init__.py", line 32, in <module>
from reprlib import recursive_repr as _recursive_repr
File "zzzz/.local/lib/python2.7/site-packages/reprlib/__init__.py", line 7, in <module>
raise ImportError('This package should not be accessible on Python 3. '
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
What's happening?? How do I fix this? Experts' help appreciated in advance