按照教程将 Python 从 3.6 升级到 3.8 后,我的 ubuntu 服务器崩溃了

按照教程将 Python 从 3.6 升级到 3.8 后,我的 ubuntu 服务器崩溃了

我按照这个教程升级了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)

怎么了”?

相关内容