Throughout all this process connection to the Internet was working properly.
Every time I turned on my computer an error message popped saying "System program problem detected". I'm certain it is about this issue. Also noted: the OS is Ubuntu 18.04.
First, it did not update anything while using the clicking method (through GUI). Software Updater appeared, showed the updates and then I clicked "Install Now" but began the process and when arriving some of the first steps, it disappears.
For this problem I tried updating and upgrading manually using the terminal (sudo apt-get update && sudo apt-get upgrade). This solved part of the problem as most of the packages got to be updated.
Nonetheless, the problem persists as Ubuntu base (security updates) and Unused kernel updates to be removed keep appearing with the same problem happening after hitting the "Install Now" button. I tried again with the terminal and the problem prevails along with the "System program problem detected" message.
Failed solutions:
a) I thought that Internet connection was the origin of the problem but I uninstalled Wicd and reinstalled it.
b) I tried: sudo rm -rvf /var/lib/apt/lists/* and then sudo apt-get update, as this answer to another post says.
What can I do? Thanks.
Output for sudo apt-get update:
Hit:1 bionic InRelease
Hit:2 bionic InRelease
Get:3 bionic-updates InRelease [88,7 kB]
Get:4 bionic-security InRelease [83,2 kB]
Get:5 bionic-backports InRelease [74,6 kB]
Fetched 247 kB in 1s (337 kB/s)
Reading package lists... DoneOutput for sudo apt-get upgrade:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back: gir1.2-javascriptcoregtk-4.0 gir1.2-webkit2-4.0 libjavascriptcoregtk-4.0-18 libwebkit2gtk-4.0-37 linux-generic linux-headers-generic linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. 1 3 Answers
Firstly, update the following:
sudo apt autoremove && sudo apt autoclean -ythen open nano by sudo nano /etc/apt/sources.list and check for any mismatches of default ubuntu update repo's:
Note -
16.04 - Xenial
18.04 - Bionic
deb bionic main restricted universe multiverse
deb bionic-updates main restricted universe multiverse
deb bionic-backports main restricted universe multiverse
deb bionic-security main restricted universe multiverse
deb-src bionic main restricted universe multiverse
deb-src bionic-security main restricted universe multiverse
deb-src bionic-backports main restricted universe multiverse
deb-src bionic-updates main restricted universe multiverseIf its easier then, delete the lines by pressing 'CTRL + K' in nano. and copy-paste them with the ones provided above to you.
Press 'CTRL + X', to exit. Prompts to save - Press 'Y' to save.
Type cat /etc/apt/sources.list to double-check if they are correct.
Then do a sudo apt update && sudo apt upgrade -yHopefully should have fixed your issues after this.
I am a light user of Ubuntu 20.04 and I recently installed Python 3.9.5 and afterwards executed:
$ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
$ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.9 2Python 3.9.5 ran just fine. But the Software Updater hung and it didn't start at all after several reboots. So I looked at the suggested solution above. Everything in sources.list correctly refers to Focal Fossa. Next I got this on my terminal:
$ sudo apt update && sudo apt upgrade -y
Hit:1 focal InRelease
Hit:2 focal InRelease
Hit:3 focal InRelease
Hit:4 focal-updates InRelease
Hit:5 focal-backports InRelease
Hit:6 focal-security InRelease
Traceback (most recent call last): File "/usr/lib/cnf-update-db", line 8, in <module> from CommandNotFound.db.creator import DbCreator File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 11, in <module> import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error codeI have no idea what happened or why my OS is now somehow broken. Any help appreciated.
UPDATE (minutes later):
Searching for the "No module named 'apt_pkg'" error I came across the following link:
And since I had only installed Python 3.9.5, I thought the following "answer" (posted in the link above) might help:
sudo apt remove python3-apt
sudo apt autoremove
sudo apt autoclean
sudo apt install python3-aptNow ... on booting Ubuntu 20.04 LTS, I get the logon screen but no further: neither of my mice (that always worked) functions. It mentioned that it has installed my printer (yet again?). I am unable to log in. I am totally locked out of Ubuntu (on a dual boot PC with GRUB2).
How can installing another Python version be so disasterous? I did not execute any hazardous commands like editing a system file or play with symlinks I'll have to reinstall Ubuntu from scratch again. And I am no wiser.
Side Note: I have worked with operating systems since PS/8, DOS and RSX-11D. But this sucks! (pardon me please)
Had the same problem. The following command solved it.
sudo apt purge update-manager && sudo apt install update-manager
2