6

I'm trying to install htop on my server (ubuntu 14.04). Here is the command:

sudo apt-get install htop

But it throws:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package htop

Noted that it throws E: Unable to locate package .... for everything I would like to install (like phpmyadmin). What's the problem and how can I fix it?

stack
  • 601

1 Answers1

9

The htop package is in the repository 'universe'. The following commands should work to install it.

sudo add-apt-repository universe

sudo apt-get update
sudo apt-get install htop

or as root

add-apt-repository universe

apt-get update
apt-get install htop
sudodus
  • 47,684