LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-25-2008, 11:58 AM   #1
Patrick-Warwick
LQ Newbie
 
Registered: Mar 2008
Location: Milos Island, Greece
Distribution: Kubuntu
Posts: 23
Blog Entries: 1

Rep: Reputation: 15
Angry permission denied in terminal window


I am having problems with sudo. I want to get updates and all I get in the terminal window is 'unable to resolve host' followed by 'permission denied' I have tried to figure ways out of this but am stuck. all this came about by upgrading to Hardy. everything worked fine in Gutsy so I feel sure that if I could get the upgrades this may solve the many problems I am now having with Kubuntu. I really would appreciate some help on this.
 
Old 05-25-2008, 12:17 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Hmm...

Please paste your terminal session here; it would help a lot to see which commands you're running, and where the error happens.

Can you connect to the internet without problems? Look in your /etc/apt/sources.list; there should be one or more hostnames (http://ftp.this-is-what-I-am-talking....com/not-this/ or-this). Try running the command "host ftp.this-is-what-I-am-talking-about.com" (replace the name with your actual name). What is the result? What is the name?

If the hostname is ftp.ubuntu.com, then host should spit out three lines, containing "ftp.ubuntu.com A ip-address", where ip-address is one of 91.189.88.31, 91.189.88.45, 91.189.88.46. Is this what you see?

How are you trying to get updates? "sudo apt-get update" or "sudo aptitude update" or something else?

Welcome to LQ
 
Old 05-26-2008, 03:55 AM   #3
Patrick-Warwick
LQ Newbie
 
Registered: Mar 2008
Location: Milos Island, Greece
Distribution: Kubuntu
Posts: 23

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Permission denied

> Thanks for your reply.I have pasted below the outcome of the terminal window. I should point out that I can get the internet through my ethernet connection to another computer running windows xp. So I am getting firefox and emails (like this). The problem is also I cannot get 'administrator mode' to stay on when I click the button. I thought I might be able to change my netwok settings which are greyed out but say: 127.0.0.1 localhost and 127.0.1.1 ubuntu. Apart from sudo, su, kdesu doesn't help either on the command line. This is a new computer with kubuntu and mythbuntu installed and as yet I have not spoken to the vendor who are very reputable but in England (I am in Greece) as I want to try and work things out for myself. I have tried downloading hardy but it goes so far and then stops with a message 'not able to read scource code.' I see also in the terminal window that there is nothing after user@: a few days ago it had user@(none):
> >
Terminal window on various things I tried
user@:~$ sudo apt-get update
sudo: unable to resolve host
user@:~$ /etc/apt/scources
bash: /etc/apt/scources: No such file or directory
user@:~$ /etc/apt/scources.
bash: /etc/apt/scources.: No such file or directory
user@:~$ /etc/bin
bash: /etc/bin: No such file or directory
user@:~$ usr/bin
bash: usr/bin: No such file or directory
user@:~$ ksystraycmd adept_manager
kapture::PkgSystem::PkgSystem()
adduser
debconf
sysklogd
snort-mysql
oinkmaster
adduser
debconf
sysklogd
snort-mysql
oinkmaster
kdecore (KProcess): WARNING: _atta

This in the shell konsole:
user@:~$ kdesu apt-get update
xauth: (argv):1: bad display name ":0.0" in "list" command
kdesu (kdelibs): WARNING: No X authentication info set for display :0.0
/usr/bin/xauth: (argv):1: bad display name ":0.0" in "add" command
sudo: unable to resolve host

user@:~$
 
Old 05-26-2008, 04:11 AM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Have you checked your /etc/resolv.conf? It is supposed to contain the addresses of your nameserver(s). Have you checked your router or whatever it is you are using to connect to your local network?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How do I resize the terminal window from the command line in the gnome terminal QuIcKSpArK Linux - Newbie 5 04-21-2012 02:04 PM
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
Permission Denied on 0.0.0.0:80 Alvin Harrison *BSD 13 08-25-2007 06:58 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 05:57 AM
Difference between a Shell terminal window and the KDE Linux Console terminal window? bostonantifan Fedora 2 03-25-2007 07:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:49 AM.

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