What does this error mean: "E: Unable to locate package"

Linode Staff

I'm trying to install a few packages on my Linode, but I keep getting the above error. What does it mean, and what can I do to fix it?

Thanks!

2 Replies

The error you are receiving could be because the package you are trying to install isn't located in the repositories currently on your Linode. These are typically located in /etc/apt/sources.list.

First, try a general update with the below command. Then, attempt to try another package install.

sudo apt update

If you still get the same error, I recommend running the below commands to get your repositories up to date.

  1. sudo add-apt-repository main
  2. sudo add-apt-repository universe
  3. sudo add-apt-repository restricted
  4. sudo add-apt-repository multiverse

You should be able to move forward with the install after this. If not, I would recommend checking to make sure the package exists.

This is where you would go for an Ubuntu Package Search. Each distribution may have a similar site to check.

I hope this information has been helpful, and have fun learning!

Thanks @rdaniels!! Running the sudo update first did the trick

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct