Когда я пытаюсь sudo do-release-upgrade
я получаю:
Traceback (most recent call last):
File "/usr/bin/do-release-upgrade", line 11, in <module>
from UpdateManager.Core.MetaRelease import MetaReleaseCore
File "/usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py", line 25, in <module>
import apt
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in <module>
import apt
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Original exception was:
Traceback (most recent call last):
File "/usr/bin/do-release-upgrade", line 11, in <module>
from UpdateManager.Core.MetaRelease import MetaReleaseCore
File "/usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py", line 25, in <module>
import apt
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Что я пробовал до сих пор:
sudo apt update
sudo apt upgrade
sudo dist-upgrade
sudo apt autoremove
sudo do-release-upgrade
sudo update-manager
apt-get install -f
sudo apt install update-manager
sudo apt install ubuntu-release-upgrader-core
apt-get install python-apt
sudo apt remove python3-apt
sudo apt install python3-apt
sudo apt-get install python3-apt --reinstall
sudo rm -rf /var/lib/apt/lists/*
cd /usr/lib/python3/dist-packages
sudo cp apt_pkg.cpython-34m-i386-linux-gnu.so apt_pkg.so
sudo ln -s apt_pkg.cpython-{35m,34m}-x86_64-linux-gnu.so
sudo ln -s apt_pkg.cpython-{35m,34m}-x86_64-linux-gnu.so apt_pkg.so
/usr/bin/update-manager
sudo apt clean
Когда я попробовал:
sudo mv /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service /usr/share/dbus-1/system-services/org.freedesktop.systemd1.service.bak
Я получил:
mv: cannot stat '/usr/share/dbus-1/system-services/org.freedesktop.systemd1.service': No such file or director
Конечно после всего этого я снова попробовал:
sudo apt update
sudo apt upgrade
sudo dist-upgrade
sudo apt autoremove
sudo do-release-upgrade
Все еще не работает.