我在 Kubuntu 19.10 上,我从源代码构建了 python 3.8 并使用 checkinstall 安装了它。然后我删除了它,它以某种方式破坏了 python 2.7。如果我尝试安装任何python-*
软件包,它会产生如下错误:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python-dev : Depends: python (= 2.7.17-1) but 3.8.1-1 is to be installed
E: Unable to correct problems, you have held broken packages.
我已经尝试过sudo dpkg --configure -a
,但这无济于事。
我该如何解决?
编辑:apt-cache policy python
输出:
python:
Installed: 3.8.1-1
Candidate: 3.8.1-1
Version table:
*** 3.8.1-1 100
100 /var/lib/dpkg/status
2.7.17-1 500
500 http://si.archive.ubuntu.com/ubuntu eoan/universe amd64 Packages