Failure on installing htop on the server [duplicate]

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?

0

1 Answer

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
10

You Might Also Like