Find the answer to your Linux question:
Results 1 to 4 of 4
Hi everybody, I've just installed Ubuntu 8 on my PC, and whenever I am trying to install something, it gives an error: sudo apt-get install samba sudo: unable to resolve ...
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    37

    Unhappy [SOLVED] Apt-get error

    Hi everybody, I've just installed Ubuntu 8 on my PC, and whenever I am trying to install something, it gives an error:
    sudo apt-get install samba
    sudo: unable to resolve host ravish
    , so I am unable to install anything, even through graphical package manager, I can connect to internet, I've also modified my Environment variable for proxy it isn't working.

    plz tell me what to do

  2. #2
    Linux Newbie
    Join Date
    Jun 2006
    Location
    Greece, Athens
    Posts
    214
    type su . Give your password then and you will become root. Apt-get should work this way. To solve the problem, become root using su and then type nano /etc/hosts. Add this line:
    127.0.0.1 ravish
    Save the file with Ctrl + O and exit with Ctrl + X

  3. #3
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    You will need to use sudo su or sudo bash rather than su as the password for root is encrypted in Ubuntu.

  4. #4
    Just Joined!
    Join Date
    Sep 2007
    Posts
    37

    Smile

    Quote Originally Posted by bigtomrodney View Post
    You will need to use sudo su or sudo bash rather than su as the password for root is encrypted in Ubuntu.
    Quote Originally Posted by kostasan View Post
    type su . Give your password then and you will become root. Apt-get should work this way. To solve the problem, become root using su and then type nano /etc/hosts. Add this line:
    127.0.0.1 ravish
    Save the file with Ctrl + O and exit with Ctrl + X
    thank to all you folks, I've solved the problem.
    there was some problem in my /etc/hosts file.
    every thing is working now.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...