我刚刚将我的 Ubuntu 从 focal(20.04) 升级到 jammy(22.04),现在我的 python 坏了。这导致了很多麻烦,例如 Apt 无法更新并且某些应用程序无法启动。
libpython3.10 : Depends: libpython3.10-stdlib (= 3.10.6-1~22.04.2) but 3.10.9-1+focal2 is to be installed
由于 ubuntu 软件包文档 3.10.6.1 是当前(jammy)版本。但为什么它会尝试安装焦点软件包(3.10.9.1 = lunar(23.04))。
我曾尝试安装 python 3.11(我曾经运行过 3.10)。但 Apt 仍然抛出此错误。
来源列表:
deb https://ftp.snt.utwente.nl/pub/os/linux/ubuntu/ jammy main restricted
deb-src https://ftp.snt.utwente.nl/pub/os/linux/ubuntu/ jammy universe main multiverse restricted
deb https://ftp.snt.utwente.nl/pub/os/linux/ubuntu/ jammy-updates main restricted
deb-src https://ftp.snt.utwente.nl/pub/os/linux/ubuntu/ jammy-updates universe main multiverse restricted
deb https://ftp.snt.utwente.nl/pub/os/linux/ubuntu/ jammy universe
deb https://ftp.snt.utwente.nl/pub/os/linux/ubuntu/ jammy-updates universe
deb https://ftp.snt.utwente.nl/pub/os/linux/ubuntu/ jammy multiverse
deb https://ftp.snt.utwente.nl/pub/os/linux/ubuntu/ jammy-updates multiverse
deb-src https://nl.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
deb https://ftp.snt.utwente.nl/pub/os/linux/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://ftp.snt.utwente.nl/pub/os/linux/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://nl.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb https://ftp.snt.utwente.nl/pub/os/linux/ubuntu/ jammy-security main restricted
deb-src https://ftp.snt.utwente.nl/pub/os/linux/ubuntu/ jammy-security universe main multiverse restricted
deb https://ftp.snt.utwente.nl/pub/os/linux/ubuntu/ jammy-security universe
deb https://ftp.snt.utwente.nl/pub/os/linux/ubuntu/ jammy-security multiverse
答案1
经过一些尝试和搜索...没有运气,只能删除 python3 和 158 个包。然后重新开始...