I am facing this problem:
sudo apt-get install python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3-pip is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python3-pip' has no installation candidate
This is error I am facing
And I have try these commands apt-get update
&& apt-get upgrade
But problem isn't solved.
Try these commands
sudo apt-get update
sudo apt-get upgrade
sudo apt install python3-pip
Now, I had faced that problem , and i know the exact cause . So, After i've installed Kali 2020.2, i was not able to download any package including the python3-pip . After digging some research i found that the problem in my case was with the source repositories list. That are located in /etc/apt/sources.list
.
To fix this go to the sources.list file:
sudo nano /etc/apt/sources.list
And add these lines in the above sources.list file.
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
After that update your package list with.
sudo apt update
Then You'll be able to download any package including python3-pip .
sudo apt install python3-pip
Open the file /etc/apt/sources.list
and uncomment following line
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.