Unable to locate package htop

New to Debian (Or Linux in general)? Ask your questions here!

Unable to locate package htop

Postby aliweb » 2017-08-04 06:05

Hi,

I am trying to install htop on Debian 7 but getting error "Unable to locate package htop"

Code: Select all
root@ShamelessYummy-VM:~# apt-get install htop
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package htop
root@ShamelessYummy-VM:~# htop
-bash: htop: command not found


What is the solution?

Thanks
aliweb
 
Posts: 23
Joined: 2017-08-04 05:54

Re: Unable to locate package htop

Postby kedaha » 2017-08-04 06:27

That's odd:
Code: Select all
# apt-cache policy htop
htop:
  Installed: (none)
  Candidate: 1.0.1-1
  Version table:
     1.0.1-1 0
        500 http://ftp.es.debian.org/debian/ wheezy/main amd64 Packages

And simulating its installation returns:
Code: Select all
# apt-get install -s htop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  strace ltrace
The following NEW packages will be installed:
  htop
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Inst htop (1.0.1-1 Debian:7.11/oldoldstable [amd64])
Conf htop (1.0.1-1 Debian:7.11/oldoldstable [amd64])

Have you run apt-get update? Maybe you need to look at your /etc/apt/sources.list
Mate DE & OSSv4.
LaMp, WordPress; ispmail
Debian Stable & Software

Words, as is well known, are the great foes of reality. Joseph Conrad.
User avatar
kedaha
 
Posts: 2795
Joined: 2008-05-24 12:26

Re: Unable to locate package htop

Postby stevepusser » 2017-08-04 07:01

No doubt that the sources URLs have not been changed as is now required for wheezy...
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.1.0, Pale Moon 27.5.0, Liquorix kernel 4.12-10, mpv 0.27.0, Kodi 17.3, 0ad 0.0.22, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8822
Joined: 2009-10-06 05:53

Re: Unable to locate package htop

Postby aliweb » 2017-08-04 08:31

I am using Linux for the first time. This is actually a VPS based on OpenVZ if that helps.
aliweb
 
Posts: 23
Joined: 2017-08-04 05:54

Re: Unable to locate package htop

Postby aliweb » 2017-08-04 10:13

Ok running
Code: Select all
apt-get update
fixed the problem.
aliweb
 
Posts: 23
Joined: 2017-08-04 05:54


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable