Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-25-2008, 12:58 PM   #1
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, 01:17 PM   #2
Senior Member
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47

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 ( or-this). Try running the command "host" (replace the name with your actual name). What is the result? What is the name?

If the hostname is, then host should spit out three lines, containing " A ip-address", where ip-address is one of,, 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, 04:55 AM   #3
LQ Newbie
Registered: Mar 2008
Location: Milos Island, Greece
Distribution: Kubuntu
Posts: 23
Blog Entries: 1

Original Poster
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: localhost and 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
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

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

Rep: Reputation: 130Reputation: 130
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?


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

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

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