python-pip-whl 在 kali linux 中安装失败

python-pip-whl 在 kali linux 中安装失败

我是 Linux 管理活动的新手,对术语不太熟悉。我需要安装 python-pip。但是,它依赖于已安装但无法识别的 python-pip-whl (20.1.1-2 )。

root@kali:/home/kali# apt-get install python-pip  
Reading package lists... Done  
Building dependency tree       
Reading state information... Done
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-pip : Depends: python-pip-whl (= 9.0.1-2.3~ubuntu1.18.04.4) but 20.1.1-2 is to be installed  
              Recommends: python-setuptools but it is not going to be installed  
              Recommends: python-wheel but it is not going to be installed  
E: Unable to correct problems, you have held broken packages.  

所以,我安装了 python-pip-whl (20.1.1-2 )。但是,我认为旧版本 python-pip-whl 的存在导致了这个问题。这种情况该如何处理。

root@kali:/home/kali# apt-get install python-pip-whl  
Reading package lists... Done  
Building dependency tree         
Reading state information... Done  
python-pip-whl is already the newest version (20.1.1-2).  
The following packages were automatically installed and are no longer required:  
  dcraw flac libaudio2 libopenal-data libopenal1 libout123-0 libportaudio2 libsndio7.0 mpg123 openjdk-8-jre python-backports.functools-lru-cache  
  python-bs4 python-dnspython python-html5lib python-lxml python-netaddr python-soupsieve python-webencodings sqlite3  
Use 'sudo apt autoremove' to remove them.  
0 upgraded, 0 newly installed, 0 to remove and 463 not upgraded.


root@kali:/home/kali# apt list -a python-pip-whl  
Listing... Done
python-pip-whl/kali-rolling,now 20.1.1-2 all [installed]  
python-pip-whl/bionic-security,bionic-updates 9.0.1-2.3~ubuntu1.18.04.4 all  
python-pip-whl/bionic 9.0.1-2 all  

相关内容