Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Unable to locate package htop

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
aliweb
Posts: 35
Joined: 2017-08-04 05:54
Has thanked: 1 time

Unable to locate package htop

#1 Post by aliweb »

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

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Unable to locate package htop

#2 Post by kedaha »

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
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Unable to locate package htop

#3 Post by stevepusser »

No doubt that the sources URLs have not been changed as is now required for wheezy...
MX Linux packager and developer

aliweb
Posts: 35
Joined: 2017-08-04 05:54
Has thanked: 1 time

Re: Unable to locate package htop

#4 Post by aliweb »

I am using Linux for the first time. This is actually a VPS based on OpenVZ if that helps.

aliweb
Posts: 35
Joined: 2017-08-04 05:54
Has thanked: 1 time

Re: Unable to locate package htop

#5 Post by aliweb »

Ok running

Code: Select all

apt-get update
fixed the problem.

Post Reply