Score:0

Unable to locate package apache2-bin

tr flag

I tried to run

apache2

And it said

Command 'apache2' not found, but can be installed with:
apt install apache2-bin

So I ran

apt install apache2-bin

And it said

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package apache2-bin

I tried sudo apt update and sudo apt full-upgrade and it still didn't work.

I'm running Canonical-Ubuntu-22.04-aarch64-2022.11.06-0

Content of /etc/apt/sources.list :

deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse

deb http://archive.canonical.com/ubuntu/ jammy partner
deb-src http://archive.canonical.com/ubuntu/ jammy partner
Organic Marble avatar
us flag
Please edit your question to include the contents of `/etc/apt/sources.list`.
Rishon JR avatar
pl flag
try `sudo apt add-apt-repository universe`
ms darck avatar
tr flag
@OrganicMarble Done
Organic Marble avatar
us flag
Thanks! What exactly does this mean "Canonical-Ubuntu-22.04-aarch64-2022.11.06-0" Are you running on a Pi or something like that, not an Intel or AMD architecture?
ms darck avatar
tr flag
I'm running an oracle cloud virtual machine with the image set to Canonical Ubuntu 22.04. The CPU is an arm-based processor
pl flag
Did you do the `apt install apache2-bin` *after* the `apt update`? This is important.
ms darck avatar
tr flag
@popey Yes I did, and I still get the "Unable to locate package apache2-bin" error
hr flag
Shouldn't they be using `ports.ubuntu.com` rather than `archive.ubuntu.com` for ARM? Does it find *any* packages for your architecture?
pl flag
Well spotted @steeldriver - the sources.list file is wrong.
ms darck avatar
tr flag
@steeldriver Thanks, that was the solution :D
I sit in a Tesla and translated this thread with Ai:

mangohost

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.