Problem with apt-get before upgrading to Python 3.7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
This problem ocurrs before upgrating to Python 3.7 and setted by default python3 command and pc Restarted, don't work reinstall python3-apt to solve this.
Ubuntu version: Ubuntu 18.04.2 TLS
if you try to execute the terminal didn't work, but with XTerm can you try:
sudo apt-get update
The result:
Hit:1 https:/
Hit:2 http://
Ign:3 http://
Get:4 http://
Hit:5 https:/
Get:6 http://
Hit:7 https:/
Get:8 http://
Hit:9 http://
Fetched 252 kB in 1s (212 kB/s)
Traceback (most recent call last):
File "/usr/lib/
from CommandNotFound
File "/usr/lib/
import apt_pkg
ModuleNotFoundE
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/
from apport.report import Report
File "/usr/lib/
import apport.fileutils
File "/usr/lib/
from apport.
File "/usr/lib/
import apt
File "/usr/lib/
import apt_pkg
ModuleNotFoundE
Original exception was:
Traceback (most recent call last):
File "/usr/lib/
from CommandNotFound
File "/usr/lib/
import apt_pkg
ModuleNotFoundE
Reading package lists... Done
E: Problem executing scripts APT::Update:
E: Sub-process returned an error code
affects: | launchpad → command-not-found (Ubuntu) |
Status changed to 'Confirmed' because the bug affects multiple users.