Install pip3 on new Ubuntu Server 22.04 install (Raspberry Pi)

in flag

I have just installed Ubuntu Server 22.04 LTS on my RPi, and I cannot for the life of me get pip3 to install. (It should already be there, no?)

Here's my /etc/os-releasse:

PRETTY_NAME="Ubuntu 22.04 LTS"
VERSION="22.04 (Jammy Jellyfish)"

Here's my /etc/apt/sources.list:

## ...
deb jammy main restricted
# ...
deb jammy-updates main restricted
# ...
deb jammy universe
# ...
deb jammy-updates universe
# ...
deb jammy multiverse
# ...
deb jammy-updates multiverse
# ...
deb jammy-backports main restricted universe multiverse
# ...
deb jammy-security main restricted
# ...
deb jammy-security universe
# ...
deb jammy-security multiverse
# ...

I ran # apt update after every change I tried.

I keep running # apt install python3-pip, but it fails with:

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

And even if I run # python3 -m pip install ansible it gives me:

/usr/bin/python3: No module named pip

I have been trying to manually add entries to the apt sources files (e.g. /etc/apt/sources.list.d/pip.list) but I cannot figure out what the correct entry would look like.
Bonus points for anyone who can tell me how to find the repo for a specific package, and how to format that sources line.

Da Man avatar
pt flag
did you solve your issue?
Jeff Hemmen avatar
in flag
(`/etc/apt/sources.list` shortened because question kept getting denied because "This looks like spam.".)
Jeff Hemmen avatar
in flag
Someone with enough Karma feel free to add the tag `ubuntu-22.04` please! :)

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.