в большинстве статей пишет
sudo update-alternatives —config python3
это команда, которой нужно обновить версию питона за умолчанием до новой
у меня, когда я это делал, она не сработала
sudo rm /usr/bin/python3
sudo ln -s /usr/bin/python3.8 /usr/bin/python3
после этого, наверное, ипоявилось это сообщение (точно не знаю, сразу не заметил)
потом я пробовал
sudo apt-get clean
sudo apt-get autoremove
не помогло (ошибок никаких нет)
после этих команд прописал
sudo apt-get update
выдача
Hit:1
http://ua.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2
http://ua.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3
http://ua.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4
https://repo.steampowered.com/steam stable InRelease
Hit:5
http://ppa.launchpad.net/deadsnakes/ppa/ubuntu bionic InRelease
Hit:6
http://packages.microsoft.com/repos/code stable InRelease
Hit:7
http://dl.google.com/linux/chrome/deb stable InRelease
Hit:8
http://ppa.launchpad.net/gezakovacs/ppa/ubuntu bionic InRelease
Hit:9
https://repo.skype.com/deb stable InRelease
Hit:10
https://packages.microsoft.com/ubuntu/19.10/prod eoan InRelease
Get:11
http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Hit:12
https://artifacts.elastic.co/packages/7.x/apt stable InRelease
Hit:13
http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu bionic InRelease
Hit:14
https://download.sublimetext.com apt/stable/ InRelease
Ign:15
http://ppa.launchpad.net/upubuntu-com/gtk3themes/ubuntu bionic InRelease
Err:16
http://ppa.launchpad.net/upubuntu-com/gtk3themes/ubuntu bionic Release
404 Not Found [IP:
91.189.95.85 80]
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: The repository '
http://ppa.launchpad.net/upubuntu-com/gtk3themes/ubuntu bionic Release' does not have a Release file.
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.
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 code
попробовал
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
ничего, никакого вывода
sudo apt upgrade работает без каких либо ошибок
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded