Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 05-07-2012, 04:04 PM   #1
LQ Newbie
Registered: Apr 2012
Posts: 6

Rep: Reputation: Disabled
Installing services using apt-get install *service name* Unable to locate package.

I have been unable to install certain services on my Debian virtual machine.

cpuspeed, crond, functions, ipmi, ip6tables, network, restorecond, smartd, and the list grows.

I am using the command:
apt-get install *package name*

Is this because these packages are not for Debian? If so what is the workflow to be able to tell the equivalent package for Debian? It seems so difficult to translate from say Redhat to Debian at times. Flood of info on the internet.
Old 05-07-2012, 04:15 PM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,269

Rep: Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568Reputation: 3568
# apt-file search <file>

Or use the online search for file names :
keywords=cpuspeed : The package name is 'munin-node'.
Old 05-07-2012, 04:22 PM   #3
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864Reputation: 4864
You can use apt-cache to search for package names. For example
apt-cache search smart
will deliver all packages that are related to smart. The output on my Debian machine is
smart-notifier - graphical hard disk health status notifier
smartmontools - control and monitor storage systems using S.M.A.R.T.
So you can see that the appropriate package-name is smartmontools.
Sometimes this doesn't help, in that case the apt-file tool may help. This tool is not installed by default, so you have to install and initialize it first:
apt-get install apt-file
apt-file update
If I now use the apt-file utility to search for restorecond I get this output:
tobi@server:~$ apt-file search restorecond
policycoreutils: /etc/selinux/restorecond.conf
policycoreutils: /usr/sbin/restorecond
policycoreutils: /usr/share/man/man8/restorecond.8.gz
So I can see that the package policycoreutils contains the file restorecond.

Last edited by TobiSGD; 05-07-2012 at 04:23 PM. Reason: fixed typos


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
E: Unable to locate package Apache while installing Apache. ft85 Linux - Newbie 9 04-03-2012 06:16 AM
[SOLVED] E: Unable to locate package nova-comm E: Unable to locate package python-psycopq2 mint12 Linux - Virtualization and Cloud 2 01-05-2012 12:07 PM
[SOLVED] Unable to locate Apt-Proxy Kenichi Kato Linux - Server 2 05-03-2011 03:06 AM
[SOLVED] E: Unable to locate package lamis0 Ubuntu 4 03-27-2011 06:33 AM
LXer: apt-file: Locate Missing Package Files LXer Syndicated Linux News 0 08-19-2010 05:30 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration