"Unable to locate package python-pip" When trying to install from fresh 18.04 install [duplicate]
You have to enable universe
category which contains python-pip
package.
As David suggested, if you have software-properties-common
installed, You can use this command to add universe
category to your sources file:
sudo add-apt-repository universe
Then:
sudo apt update
sudo apt install python-pip
However if you rather to add it manually or you don't have add-apt-repository
command available to run then follow these instructions:
Open /etc/apt/sources.list
using an editor, for example nano
:
sudo nano /etc/apt/sources.list
then add universe
at the end of each line, like this:
deb http://archive.ubuntu.com/ubuntu bionic main universe
deb http://archive.ubuntu.com/ubuntu bionic-security main universe
deb http://archive.ubuntu.com/ubuntu bionic-updates main universe
Press Ctrl+o to save the file. Press Ctrl+x to quit nano.
then run:
sudo apt update
and finally:
sudo apt install python-pip