E: Unable to locate package ethtool after typing "sudo /etc/apt/sources.list

Asked by melvin

First i have installed a Ubuntu 11.0.4 and i have the text mode. I want to use webmin to setup few features and disable again.

Second, i want to know how to install packages without getting this error: " E: Unable to locate package ethtool and command not found "

After typing command to get or install to view directory i keep getting these errors.

eg

   ~$ sudo apt-get install ethtool
   E: Unable to locate package ethtool

or
   ~$ sudo /etc/apt/sources.list"
   sudo: /etc/apt/sources.list : command not found

I want to setup a media web program for my community on environment santitation and the web application i am using needs a linux server to host it well.

I decided to leave the window environment for and a feel of a new environment.

So please i need a guide on how to setup and active directory with linux UBUNTU 11 or if not possible i will stick to my ADAMS on win server.

But will need to set up a LAMP server which i have no idea on how to do. Please help anyone!

I am a very fast learner and i believe in basic guides that takes me to bigger tasks.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

/etc/apt/sources.list isn't a command, it is a text file. so trying to execute it won't do anything or change anything.

andy@fileserver:~$ apt-cache policy ethtool
ethtool:
  Installed: (none)
  Candidate: 1:2.6.37-1
  Version table:
     1:2.6.37-1 0
        500 http://gb.archive.ubuntu.com/ubuntu/ natty/main amd64 Packages

It comes from the main repo, so I suggest you run:

sudo apt-get update; sudo apt-get install ethtool

Should do it

Revision history for this message
melvin (melvin-lawrence77) said :
#2

Thanks i have come to realize a lot myself before i checked my mail now. Thanks for your reply and your time.

I only have a problem with CHMOD or CHROOT some /usr/ folder and sub folders. I have been able to gain permission to the /var/www/ folder and sub folder.

Please do know a web application will not see a enable_dl extension that has been ON in the php.ini folder.

I dont know if it is permission or something. The early vmware installation i did got messed up when i installed Xfce4 to get a X system as i changed the root ownership to the name i created during installation. I gain ownership of some many files and suddenly i had error like this: " Sudo Sudoer: No valid sudoers for this option. The ID is 1000 bla bla".

Now i have reinstalled and i want to be careful with my changes this time around. so please tell me the best way to host a phpmotion application on LAMP without get this error:"enable_dl that set to ON in php.ini will stop saying enable_dl=Off during installation. Here is the link to application "http://phpmotion.com/content/view/13/47/"

Thanks for your time once again.
Peace.

Can you help with this problem?

Provide an answer of your own, or ask melvin for more information if necessary.

To post a message you must log in.