PDA

View Full Version : [ubuntu] Unable to locate package



janko68
November 27th, 2010, 09:56 PM
I just installed Ubuntu 10.10 Server and started playing with it. I would like to install some additional packages using apt-get, but every time I am confronted with "E: Unable to locate package xyz". What's wrong?

efflandt
November 27th, 2010, 10:01 PM
Are you doing sudo apt-get install xyz? It may depend which repository those packages are in and whether those repositories are enabled. I am no expert on apt-get, but if you list which packages you are looking for, someone may be able to help.

janko68
November 27th, 2010, 10:11 PM
Are you doing sudo apt-get install xyz? It may depend which repository those packages are in and whether those repositories are enabled. I am no expert on apt-get, but if you list which packages you are looking for, someone may be able to help.
Yes, I am doing sudo apt-get install xyz. I am trying to get any package, tried to install ethtool, apache2 and some others. Always get the same error.

Frogs Hair
November 27th, 2010, 10:15 PM
Hi and Welcome

That will happen if the package name is typed incorrectly , you can double check package name in the software center or install from there. The terminal is case sensitive for some operations , use lower case for installing packages. sudo apt-get install name

janko68
November 27th, 2010, 10:42 PM
Hi and Welcome

That will happen if the package name is typed incorrectly , you can double check package name in the software center or install from there. The terminal is case sensitive for some operations , use lower case for installing packages. sudo apt-get install name
Thanks, but that is not the case. I am sure that I typed the package names correctly.

EMWolf
December 1st, 2010, 10:13 PM
I just installed Ubuntu Server 10.10 as well and I'm having the exact same problem.

Is there anyone who can help with this issue out there?

sikander3786
December 1st, 2010, 10:38 PM
I just installed Ubuntu Server 10.10 as well and I'm having the exact same problem.

Is there anyone who can help with this issue out there?
Please list the package that you are trying to install so we might locate the correct repository for that and guide you how to enable it.

Also, post the output of this one.


cat /etc/apt/sources.list

EMWolf
December 2nd, 2010, 09:06 PM
I was trying to install ETHTOOL manually so I could configure my NIC; I did not choose the option during installation of UBUNTU. I became impatient and decided just to re-install and allow the setup/installation process do it for me, since I couldn't find a quick answer on the internet.

Could not install ethtool; "Unable to locate package ..."
Could not install apt-get; "Unable to locate package ..."

These prompts were both after the prompts (respectively);
"Reading package lists...Done
"Building dependency tree"
"Reading state information...Done"

sikander3786
December 2nd, 2010, 09:16 PM
Try,


sudo apt-get update && sudo apt-get install ethtool

EMWolf
December 2nd, 2010, 09:45 PM
Ah, maybe I understand the problem now; it tries to download from a web server.

I did not configure my NIC (during installation) and I have it strictly 'stand-alone' and offline (no internet connectivity).

I was 'assuming' that a standard tool like 'apt-get' and 'ethtool' would be available from the default installation files. (from the return prompts, I would say the answer is 'No')

Are these tools available from the CD or in the default installation files?

Thanks for your help btw! :D

sikander3786
December 2nd, 2010, 09:51 PM
Not sure about their availability in the default installation media.

You can try this command to bring up your NIC for time being.


dhclient eth0

Where eth0 is your network interface.

sanco60
December 11th, 2010, 04:08 PM
"unable to locate package" i met the same problem.
and i tried the "apt-get update"
then "apt-get install xxx" worked.

it seems u should update the apt-get at first.

[RIT]IVIr_Evil
December 13th, 2010, 03:51 AM
Do you always need to run apt-get update prior to the install option moving forward or is it a one time thing?

Thanks,

-IVIr_Evil

xirochanh
December 30th, 2010, 01:18 AM
"unable to locate package" i met the same problem.
and i tried the "apt-get update"
then "apt-get install xxx" worked.

it seems u should update the apt-get at first.

I find the answer for my problem here, thanks, bro

hanishh
January 14th, 2011, 03:14 PM
Thanks, this solved my problem, can anyone tell me on which screen we can configure the ethernet during installation since i could not find it during installation

Knatchwa
January 18th, 2011, 06:09 AM
Great insight and reminded me of some of the command line options. Far as the Op mentioned, was seeing the same thing after a unetbootin install of ubuntu 10.10.

Using dhclIent had me reconnected and once that was complete, was able to get all I needed. Also it seems any of the alternate versions found via cdimages.ubuntu.com are able to install what is needed w/o having a valid internet cinnection.

cvv
March 2nd, 2011, 01:02 PM
hi

I have the same problem, but I updated the packege repo, using apt-get update or apt-get aptitude. After updating successfully then you can install the packages.

I hope this will help you.....
cheers...
cvv

roeseler
April 29th, 2011, 05:57 PM
Try,


sudo apt-get update && sudo apt-get install ethtool

THANKS!! This worked for me!

louvonnie
August 6th, 2011, 06:20 PM
I have been trying unsuccessfully for two days to install joomla 1.6. I download all the files to my desktop as instructed on another site, and I manually pulled each file on the desktop into its own folder entitled "joomla".

I went to the terminal and typed in : sudo apt-get install joomla ...and it tells me it can't find it! I then put in sudo apt-get install desktop joomla and it tells me it still can't find it!

Can anyone help me here? I did download the LAMP, in preparation for installing the joomla, and I think that is installed?? I did get apache to verify "IT WORKS" on the net, but I can't seem to do the same for phpMyAdmin.....thats another one I can't seem to load or get installed.

HELP PLEASE!! ... :)

Belinda

mikelrysk
December 23rd, 2011, 04:54 AM
Using a pendrive of Ubuntu 11.10 (if this matters, let me know)

I have tried to use the sudo apt-get update command and then the sudo apt-get install belier.
I then tried the sudo apt-get update && sudo apt-get install belier command.

Neither worked.

here is my output from cat /etc/apt/sources.list

# /etc/apt/sources.list

deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)]/ oneiric main restricted
deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted
deb http://security.ubuntu.com/ubuntu/ oneiric-security main restricted
deb http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted

I first typed bel at the CLI, then the following appeared underneath that line
The program 'bel' is currently not installed. You can install it by typing:
sudo apt-get install belier
You will have to enable the component called 'universe'

How do I enable 'universe'?

Does anyone have an answer to this?

guerau
October 26th, 2012, 05:40 PM
Using a pendrive of Ubuntu 11.10 (if this matters, let me know)

I have tried to use the sudo apt-get update command and then the sudo apt-get install belier.
I then tried the sudo apt-get update && sudo apt-get install belier command.

Neither worked.

here is my output from cat /etc/apt/sources.list

# /etc/apt/sources.list

deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)]/ oneiric main restricted
deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted
deb http://security.ubuntu.com/ubuntu/ oneiric-security main restricted
deb http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted

I first typed bel at the CLI, then the following appeared underneath that line
The program 'bel' is currently not installed. You can install it by typing:
sudo apt-get install belier
You will have to enable the component called 'universe'

How do I enable 'universe'?

Does anyone have an answer to this?


Remove the first line pointing to the CDROM.
Add the words "universe" and "multiverse" after each deb line.

So for example:

deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted universe multiverse