Failure on installing htop on the server
10,342
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
Related videos on Youtube
Author by
stack
Updated on September 18, 2022Comments
-
stack over 1 year
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 (likephpmyadmin
). What's the problem and how can I fix it? -
stack over 6 yearsThe result of your first command:
'universe' distribution component enabled for all sources.
-
sudodus over 6 yearsI use
htop
and I install it as described here. What is the output of your update and install commands? -
stack over 6 yearsupdate happens successfully, but
E: Unable to locate package htop
is still there when I try to install htop. Can you please take a look at my server if I give you user and password? -
sudodus over 6 yearsHow would you send me user and password in a secure way? Maybe you can use gpg encryption and my public key, that you find at help.ubuntu.com/community/mkusb/gui/tarball
-
stack over 6 yearsMy server is empty (almost), so I don't care about security, if you give me your email, I will send it to you. Just do you have Putty installed on your computer ?
-
sudodus over 6 yearsLet us continue this discussion in chat.
-
stack over 6 yearsEmaul has been sent
-
stack over 6 yearsdid you get my email?
-
sudodus over 6 years@stack, Yes. Please see my messages in the chat room (and let me know if things are working now).
-
aderchox almost 4 yearsIn case anyone gets the error
add-apt-repository command not found
, first install the software properties common:apt-get install software-properties-common
.