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
Share:
10,342

Related videos on Youtube

stack
Author by

stack

Updated on September 18, 2022

Comments

  • stack
    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 (like phpmyadmin). What's the problem and how can I fix it?

  • stack
    stack over 6 years
    The result of your first command: 'universe' distribution component enabled for all sources.
  • sudodus
    sudodus over 6 years
    I use htop and I install it as described here. What is the output of your update and install commands?
  • stack
    stack over 6 years
    update 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
    sudodus over 6 years
    How 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
    stack over 6 years
    My 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
    sudodus over 6 years
  • stack
    stack over 6 years
    Emaul has been sent
  • stack
    stack over 6 years
    did you get my email?
  • sudodus
    sudodus over 6 years
    @stack, Yes. Please see my messages in the chat room (and let me know if things are working now).
  • aderchox
    aderchox almost 4 years
    In case anyone gets the error add-apt-repository command not found, first install the software properties common: apt-get install software-properties-common.