LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-22-2006, 09:46 AM   #1
Mesix
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
Dead end? can't su to fix problem


Whenever I attempt a breezy install on my computer, everything goes smoothly until it's ready to start x

Some things to consider:
My graphics card is a pci-e X800XL

I also performed a networkless installation because wifi is my only connection to the internet, a cat5e connection is no go.

So, here is the issue. I know I can go in to xorg.conf and change the driver from 'ati' to 'radeon' or even 'vesa', but I can't login to root. Whenever I 'sudo su' it says

james@avalon:~$ sudo su
sudo: unable to lookup avalon via gethostbyname()

And I'm then still logged in as james. I need ideas! It seems like there is nothing I can do.

Also, any thoughts on getting my wireless card to work during installation? It's something like a D-Link DWL-620 (Not exactly, but it's close) and uses the madwifi module from what I've read.
 
Old 01-22-2006, 10:02 AM   #2
wrj
Member
 
Registered: Aug 2003
Location: Canada/US
Distribution: Ubuntu, Arch
Posts: 84

Rep: Reputation: 15
You're getting that message because avalon is not in /etc/hosts.
You need to have root level access to edit and add it to /etc/hosts. When I removed my hostname out of /etc/hosts just to see what happened, I got the same message when I tried sudo but it still asked me for a passord the first time. Either way I had root level access. At this point are you able to run any root level comands? After "sudo su" try editing /etc/hosts anyways.

Hope that helps
 
Old 01-22-2006, 10:05 AM   #3
Mesix
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
No luck. It says permission denied. I had this same issue when I left the hostname as the default "ubuntu" as well


Reinstalling IS an option if there is a way to make it work, so let me know whatever ideas you have.
 
Old 01-22-2006, 10:10 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Ubuntu does not use 'su' or the root account. If you need to do something which needs root access, do this:
Code:
sudo <whatever the command is>
<enter your password at the password prompt>
<do the stuff you need to do>
 
Old 01-22-2006, 10:12 AM   #5
Mesix
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
sudo nano /etc/hosts

gives me the same "sudo: unable to lookup avalon via gethostbyname()" and nothing else happens.

Doing the same with vi yeilds the same results.
 
Old 01-22-2006, 10:51 AM   #6
wrj
Member
 
Registered: Aug 2003
Location: Canada/US
Distribution: Ubuntu, Arch
Posts: 84

Rep: Reputation: 15
Just to follow up on XavierP's point. Ubuntu doesn't use root account by default, but to set it up just run "sudo passwd root". Then you can use root the classic way
 
Old 01-22-2006, 10:15 PM   #7
desertViking
Member
 
Registered: Aug 2005
Location: Arizona
Distribution: Slackware 13, Arch Linux
Posts: 85

Rep: Reputation: 15
Quote:
Just to follow up on XavierP's point. Ubuntu doesn't use root account by default, but to set it up just run "sudo passwd root". Then you can use root the classic way
WRJ, I agree, but I also have the same problem as Mesix. "sudo passwd root" nets sudo: unable to look up yada yada.

It does not prompt for password,or have any effect

I'm borked that the moment, and cannot sudo!
 
Old 01-22-2006, 10:34 PM   #8
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Try booting into recovery mode.
 
Old 01-22-2006, 10:37 PM   #9
morphodone
Member
 
Registered: Nov 2003
Location: Texas, USA
Distribution: Ubuntu 7.04
Posts: 44

Rep: Reputation: 15
edit: aysiu beat me to it

you might try booting into the recovery mode kernel...

then fix your /etc/hosts and /etc/X11/xorg.conf from there
 
Old 01-22-2006, 11:02 PM   #10
desertViking
Member
 
Registered: Aug 2005
Location: Arizona
Distribution: Slackware 13, Arch Linux
Posts: 85

Rep: Reputation: 15
Cool. Booted to safe mode, then set root password. I can at least "su" now.

I've never had to repare /etc/hosts before. Never worried about it. Seems like I should now. I assume that since my /etc/hostname is yadayada, the I have to add yadayada to the hosts file. This is a DHCP network.

Can you recommend the right syntax in /etc/hosts?

Thx for the advice.

Regards,

desertViking
 
Old 01-22-2006, 11:06 PM   #11
desertViking
Member
 
Registered: Aug 2005
Location: Arizona
Distribution: Slackware 13, Arch Linux
Posts: 85

Rep: Reputation: 15
Got it. Changed localhost to yadayada, and its good. Thx.
 
Old 01-23-2006, 12:06 AM   #12
morphodone
Member
 
Registered: Nov 2003
Location: Texas, USA
Distribution: Ubuntu 7.04
Posts: 44

Rep: Reputation: 15
i've never worried about /etc/hosts either...

and i hope i don't have to
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Wily Technology Extends End-to-End Application Visibility to oracle(R) Databases LXer Syndicated Linux News 0 12-14-2005 07:46 AM
Dead end with Linksys WPC54G AdamBoyle Linux - Wireless Networking 5 10-28-2005 07:08 AM
WPC11 V4 with Fedora Core4. Dead End wallhost Linux - Wireless Networking 2 07-22-2005 07:15 PM
all attempts to fix the problem failed... can someone help me fix partition space? foreverdita Linux - Enterprise 2 05-11-2005 09:02 AM
News: LG Issues Fix to Revive Dead LG Drives kilgoretrout Mandriva 0 11-13-2003 09:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration