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

Forgot Password?
 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
RSS Feeds


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: 6,038
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
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 06:05 AM.






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

Content Relevant URLs by vBSEO 3.3.0 RC2