我按照这个教程升级了python:
https://tech.serhatteker.com/post/2019-12/upgrade-python38-on-ubuntu/
然后我就跑了
sudo apt 更新 && sudo apt 升级
但系统拒绝并出现错误:
Setting up python3-apt (1.6.6) ...
E: py3compile:243: Requested versions are not installed
dpkg: error processing package python3-apt (--configure):
installed python3-apt package post-installation script subprocess returned error exit status 3
dpkg: dependency problems prevent configuration of python3-update-manager:
python3-update-manager depends on python3-apt (>= 0.8.5~); however:
Package python3-apt is not configured yet.
dpkg: error processing package python3-update-manager (--configure):
dependency problems - leaving unconfigured
Setting up python3-minimal (3.6.7-1~18.04) ...
E: py3compile:243: Requested versions are not installed
dpkg: error processing package python3-minimal (--configure):
installed python3-minimal package post-installation script subprocess returned error exit status 3
dpkg: dependency problems prevent configuration of python3-distupgrade:
python3-distupgrade depends on python3-update-manager (>= 1:18.04.11.9~); however:
Package python3-update-manager is not configured yet.
python3-distupgrade depends on python3-apt (>= 0.8.5~); however:
Package python3-apt is not configured yet.
dpkg: error processing package python3-distupgrade (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-advantage-tools:
ubuntu-advantage-tools depends on python3-apt; however:
Package python3-apt is not configured yet.
dpkg: error processing package ubuntu-advantage-tools (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-release-upgrader-core:
ubuntu-release-upgrader-core depends on python3-distupgrade (= 1:18.04.45); however:
Package python3-distupgrade is not configured yet.
dpkg: error processing package ubuntu-release-upgrader-core (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3-apt
python3-update-manager
python3-minimal
python3-distupgrade
ubuntu-advantage-tools
ubuntu-release-upgrader-core
E: Sub-process /usr/bin/dpkg returned an error code (1)
怎么了”?