I upgraded Ubuntu 18.04 to 20.04 and now everything is broken. apt doesn't work.keep getting dpkg errors when trying to use it. cant install anything. nautilus and terminal doesn't work. lots of icons are not appearing.broken icons broken icons2 broken icons3
some python errors occurring and so on. what to do now? even backup program doesn't work. How to make it work again? I couldn't understand how canonical cant send a proper upgrade
EDIT1: are there any way to remove and reinstall all needed packages? apt actually works but giving different errors.
EDIT2:for making an example, after running sudo apt install terminator
Quarter of output is:
.
.
.
dpkg: dependency problems prevent configuration of terminator:
terminator depends on python3-configobj; however:
Package python3-configobj is not configured yet.
terminator depends on python3-gi; however:
Package python3-gi is not configured yet.
terminator depends on python3-gi-cairo; however:
Package python3-gi-cairo is not configured yet.
terminator depends on python3-psutil; however:
Package python3-psutil is not configured yet.
terminator depends on python3:any; however:
Package python3 is not configured yet.
dpkg: error processing package terminator (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-nacl:
python3-nacl depends on python3 (>= 3~); however:
Package python3 is not configured yet.
python3-nacl depends on python3-six; however:
Package python3-six is not configured yet.
python3-nacl depends on python3:any; however:
Package python3 is not configured yet.
dpkg: error processing package python3-nacl (--configure):
dependency problems - leaving unconfigured
Setting up libgtk-3-common (3.24.20-0ubuntu1) ...
dpkg: dependency problems prevent configuration of python3-systemd:
python3-systemd depends on python3 (<< 3.9); however:
Package python3 is not configured yet.
python3-systemd depends on python3 (>= 3.8~); however:
Package python3 is not configured yet.
python3-systemd depends on python3:any; however:
Package python3 is not configured yet.
dpkg: error processing package python3-systemd (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-cffi-backend:
python3-cffi-backend depends on python3 (<< 3.9); however:
Package python3 is not configured yet.
python3-cffi-backend depends on python3 (>= 3.8~); however:
Package python3 is not configured yet.
dpkg: error processing package python3-cffi-backend (--configure):
dependency problems - leaving unconfigured
dpkg: too many errors, stopping
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for dictionaries-common (1.28.1) ...
Errors were encountered while processing:
python3
python3-psutil
apport
python3-tz
python3-apport
python3-cupshelpers
python3-monotonic
python3-requests-unixsocket
python3-six
python3-simplejson
python3-cups
python3-oauthlib
python3-chardet
python3-configobj
python3-secretstorage
system-config-printer
python3-certifi
python3-pexpect
python3-cryptography
python3-wadllib
python3-gi
python3-requests
python3-ldb
python3-idna
python3-fasteners
python3-urllib3
gnome-shell
ubuntu-session
ibus
gdm3
python3-defer
duplicity
python3-keyring
python3-httplib2
language-selector-common
python3-paramiko
lsb-release
python3-protobuf
python3-future
python3-rfc3339
python3-macaroonbakery
python3-aptdaemon.gtk3widgets
python3-ibus-1.0
python3-lazr.restfulclient
python3-gi-cairo
python3-lib2to3
terminator
python3-nacl
python3-systemd
python3-cffi-backend
Processing was halted because there were too many errors.
EDIT3:
output of sudo apt-get install aptitude
: https://pastecode.io/s/9eo7pji8
output of sudo aptitude dist-upgrade
: https://pastecode.io/s/dgnjw0z9
output of apt-cache policy
: https://pastecode.io/s/w5rso9um
EDIT4:
i tried
sudo dpkg --configure -a
sudo apt-get install -f
and got same errors as apt-get install terminator
gives. Just last two rows are:
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
EDIT5:Suddenly my gnome-terminal started to work. But nautilis still doesnt work. And after running recommended commands:
export PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
cd ~/Downloads
apt-get download python3-minimal
dpkg -l | grep ^ii | grep python
sudo -E dpkg -i --force-all ./python3-minimal*.deb
sudo -E dpkg --configure -a
sudo -E apt-get install -f
sudo -E apt-get install --reinstall python3-minimal
sudo -E apt-get install --reinstall $(dpkg -l | grep ^ii | grep python | awk '{print $2}')
sudo -E dpkg --configure -a
sudo -E apt-get install -f
sudo -E apt-get install aptitude
sudo -E aptitude safe-upgrade
sudo -E aptitude dist-upgrade
the output is: https://pastecode.io/s/ytobvrny still getting same errors as above.
EDIT6: I just tried something before your posts and removed nvidia driver. After that my gui gone. Then i removed windows(it was dual boot system) and my ttys gone too. I didnt remember my password so couldnt log in for a couple days. Now i cant enter grub for maybe trying recovery mode.
I just use live usb and restored chrome on live usb. Now what can i do? Is it possible to do something from live usb to restore my installed os again? i tried @N0rbert's answer partially before my gui gone but i got similar errors again. But didnt complete to install all downloaded debs.
sudo apt-get install aptitude
;sudo aptitude dist-upgrade
;apt-cache policy
and add all these outputs to question (if long - use pastebin). Probably you have some third-party repository or PPA which causes all these issues. – N0rbert Nov 25 '21 at 06:16sudo dpkg --configure -a
withsudo apt-get install -f
. – N0rbert Nov 25 '21 at 14:45