LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 03-23-2011, 07:03 AM   #1
lamis0
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Rep: Reputation: 0
E: Unable to locate package


Hi everyone

i'm trying to install apache on Ubuntu 10.10
and getting this:

root@lamis-D2151-A1:~# sudo apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package apache2

root@lamis-D2151-A1:~# apt-cache search apache
libssl0.9.8 - SSL shared libraries
librpc-xml-perl - Perl module implementation of XML-RPC
couchdb-bin - RESTful document oriented database, programs
libdotconf1.0 - Configuration file parser library - runtime files
python-couchdb - library for working with Apache CouchDB
nano - small, friendly text editor inspired by Pico
evolution-couchdb - Evolution support for CouchDB databases
libcouchdb-glib-1.0-2 - GLib-based API for CouchDB

root@lamis-D2151-A1:~# sudo apt-get install ethtool
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ethtool is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ethtool' has no installation candidate


anyone have an idea?

Thanks
 
Old 03-23-2011, 07:13 AM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

Rep: Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001Reputation: 1001
Try using apt-get to search for ethtool and see if it is part of another package. Or, grab the source:
http://sourceforge.net/projects/gker...ar.gz/download
 
Old 03-23-2011, 07:24 AM   #3
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hello and Welcome to LinuxQuestions,

Did you run
Code:
sudo apt-get update
before trying to install? The apache2 metapackage is available normally from repositories as is ethtool so there's no need to compile from source. The preferred way to install any software is by using the package manager(s) available to you. Compiling from source should only be last resort or whenever you have special needs from a particular package.

Kind regards,

Eric

Last edited by EricTRA; 03-23-2011 at 07:25 AM. Reason: Forgot the welcome word, sorry.
 
1 members found this post helpful.
Old 03-23-2011, 01:55 PM   #4
xptional
LQ Newbie
 
Registered: Mar 2011
Location: France
Distribution: Ubuntu 14.04 LTS, Dell Latitude E5400
Posts: 26

Rep: Reputation: 11
Quote:
E: Unable to locate package apache2
some times it happen when you have internet connection with proxy. I have encountered the same case with me. Please also check that you are proxy free and configured it so that proxy server allows you.
Code:
sudo apt-get update
if it run, then everything could be installed.
Thanks
 
1 members found this post helpful.
Old 03-27-2011, 07:33 AM   #5
lamis0
LQ Newbie
 
Registered: Mar 2011
Posts: 2

Original Poster
Rep: Reputation: 0
thanks for u all, thank you Eric very much,"sorry for delay i had an accident"
it worked
 
  


Reply


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
"Unable to locate package root-system-bin" JoeSmythe Linux - Newbie 11 10-20-2010 10:42 PM
need help to locate proxy package taiwf Linux - General 3 11-20-2006 12:00 PM
Unable to locate in bash anjanesh Linux - General 4 01-30-2006 11:46 PM
What is the best way to locate a broken package on your system? bipins1979 Linux - Software 3 03-23-2005 04:30 AM
unable to locate modules. cambie Red Hat 2 11-25-2004 12:08 PM


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

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