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 ...
- 06-20-2008 #1Just Joined!
- Join Date
- Sep 2007
- Posts
- 37
[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:
, 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.sudo apt-get install samba
sudo: unable to resolve host ravish
plz tell me what to do
- 06-20-2008 #2Linux 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
- 06-20-2008 #3Linux 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.
- 06-20-2008 #4Just Joined!
- Join Date
- Sep 2007
- Posts
- 37




