I seem to forget to remember this almost monthly, every time I spin up a new Ubuntu VM
This time around, it's Ubuntu 22.04 and I'm trying to install python3-pip ( aka pip3 or just pip )
apt-get install -y python3-pip
Reading package lists... Done
Building dependency tree... Done
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
Ah, of course, it's sources.list as ever ...
cat <<EOF >> /etc/apt/sources.list
deb http://us.archive.ubuntu.com/ubuntu jammy universe
deb http://us.archive.ubuntu.com/ubuntu jammy-updates universe
EOF
and now apt-get install -y python3-pip is happy
ls -al $(which pip)
-rwxr-xr-x 1 root root 221 Nov 10 2023 /usr/bin/pip
ls -al $(which pip3)
-rwxr-xr-x 1 root root 221 Nov 10 2023 /usr/bin/pip3
No comments:
Post a Comment