LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   E: Unable to locate package (https://www.linuxquestions.org/questions/ubuntu-63/e-unable-to-locate-package-870440/)

lamis0 03-23-2011 06:03 AM

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

corp769 03-23-2011 06:13 AM

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

EricTRA 03-23-2011 06:24 AM

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

xptional 03-23-2011 12:55 PM

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

lamis0 03-27-2011 06:33 AM

thanks for u all, thank you Eric very much,"sorry for delay i had an accident"
it worked


All times are GMT -5. The time now is 09:20 PM.