需要安装 python 2.7.15~rc1-1

需要安装 python 2.7.15~rc1-1

我正在尝试在我的 ubuntu 22.04 终端中运行此行来设置 CUDA:

sudo apt-get install python3-dev python3-tk python-imaging-tk

但出现此错误:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'python-pil.imagetk' instead of 'python-imaging-tk'
python3-dev is already the newest version (3.10.6-1~22.04).
python3-dev set to manually installed.
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:
 libpython2-stdlib : Breaks: libpython-stdlib (< 2.7.15-2) but 2.7.15~rc1-1 is to be installed
 python2 : Breaks: python (< 2.7.15-2) but 2.7.15~rc1-1 is to be installed
 python2-minimal : Breaks: python-minimal (< 2.7.15-2) but 2.7.15~rc1-1 is to be installed
 python3-six : Breaks: libpython-stdlib (< 2.7.18) but 2.7.15~rc1-1 is to be installed
               Breaks: python-minimal (< 2.7.18) but 2.7.15~rc1-1 is to be installed
 python3-yaml : Breaks: libpython-stdlib (< 2.7.18) but 2.7.15~rc1-1 is to be installed
                Breaks: python-minimal (< 2.7.18) but 2.7.15~rc1-1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

我搜索并尝试了很多方法,但都无济于事。每次我检查:

apt-cache policy python libpython2.7-minimal

输出仍为:

python:
  Installed: (none)
  Candidate: 2.7.15~rc1-1
  Version table:
     2.7.15~rc1-1 500
        500 http://dk.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
libpython2.7-minimal:
  Installed: 2.7.18-13ubuntu1.1
  Candidate: 2.7.18-13ubuntu1.1
  Version table:
 *** 2.7.18-13ubuntu1.1 500
        500 http://tw.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages
        100 /var/lib/dpkg/status
     2.7.18-13ubuntu1 500
        500 http://tw.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
     2.7.15~rc1-1 500
        500 http://dk.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

有人知道吗?

相关内容