sudo unable to resolve host
I installed Ubuntu today for the first time and I have tried to install a theme using this command:
sudo cp -r $HOME/Desktop/SlicknesS-black /usr/share/themes
whenever I enter it it says it is unable to resolve host.
How do I fix this problem? Thanks in advance!
Re: sudo unable to resolve host
Could you please copy/paste the output?
Re: sudo unable to resolve host
The most obvious possibility is that you don't actually have the file (SlicknesS-black) you're trying to copy in the directory you specified (your Desktop).
Are you sure it is there?
Re: sudo unable to resolve host
I have both the actual file and the archive it was extracted from on my desktop.
output is:
patrick@patrix computer:~$ sudo cp -r $HOME/Desktop/SlicknesS-black /usr/share/themes
sudo: unable to resolve host patrix computer
it then prompts me for a password BUT for some reason I am unable to type in the console after the initial command was entered.
Re: sudo unable to resolve host
Quote:
Originally Posted by
Inetrix
I have both the actual file and the archive it was extracted from on my desktop.
output is:
patrick@patrix computer:~$ sudo cp -r $HOME/Desktop/SlicknesS-black /usr/share/themes
sudo: unable to resolve host patrix computer
it then prompts me for a password BUT for some reason I am unable to type in the console after the initial command was entered.
I'm not sure about the "unable to resolve host" bit but it is normal for you to be asked for a password you're using sudo. Don't worry if it doesn't show as you type, this is a security precaution.
Re: sudo unable to resolve host
Ok now the password prompt is gone; unfortunately I am still having the same problem with the 'unable to resolve host' error.
Re: sudo unable to resolve host
Could you please post the contents of your /etc/hosts file?
And your /etc/hostname if you would.
Re: sudo unable to resolve host
127.0.0.1 localhost
127.0.1.1 patrix computer
::1 localhostip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::1 ip6-allrouters
ff02::3 ip6-allhosts
when I tried to type the file directory in my console it said: bash: /etc/hosts: Permission denied
hostname: 'patrix computer'
Re: sudo unable to resolve host
Reading around this seems to be a quite common problem. I attempted to fix it by using a common method I've seen it brings me a new error:
patrick@patrix-computer:~$ gksu gedit /etc/hosts
Quote:
(gksu:9847): Gtk-WARNING **: Unable to locate theme engine in module_path: "ubuntulooks",
No protocol specified
(gedit:9848): Gtk-WARNING **: cannot open display: :0.0
patrick@patrix-computer:~$ gksu gedit /etc/hosts
Re: sudo unable to resolve host
Are you trying to run this command (the one you mentioned in your post):
Code:
sudo cp -r $HOME/Desktop/SlicknesS-black /usr/share/themes
..or this one:
Code:
sudo cp -R $HOME/Desktop/SlicknesS-black /usr/share/themes
If the first one, there's your problem. The option for recursive copy is "-R", not "-r".
What comes to the last error related to Gedit, did you try running that in a terminal emulator (such as Gnome-terminal), or in a TTY?