Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Ubuntu Help > [SOLVED] Apt-get error
 Ubuntu Help   Discussion and help about Ubuntu, Kubuntu, Xubuntu, and all the Ubuntu family

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Closed Thread
 
Thread Tools Display Modes
Old 06-20-2008   #1 (permalink)
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:
Quote:
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
novish143 is offline  

Old 06-20-2008   #2 (permalink)
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
kostasan is offline  
Old 06-20-2008   #3 (permalink)
/etc/init.d/moderator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 5,825
You will need to use sudo su or sudo bash rather than su as the password for root is encrypted in Ubuntu.
__________________
Registered Linux user #378740
New members read here / Forum Rules
#linuxforums on irc.freenode.net
bigtomrodney is offline  
Old 06-20-2008   #4 (permalink)
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.
novish143 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Free Network Mapping Tool for Microsoft® Office Visio® Professional 2007 Users
Don't map your network by hand – let LANsurveyor Express for Microsoft Visio Professional 2007 automatically create network diagrams for you.
subscribe
Free eBook:"Vulnerability Management for Dummies"
Get all the Facts and See How to Implement a Successful Vulnerability Management Program.
subscribe
Google vs The World: The Battle of the Message Security Vendors
With such a powerful name behind it, Google Message Security stands out in a sea of products that do exactly the same thing - or so they say.
subscribe

Safe, Secure Backup


All times are GMT. The time now is 10:41 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2