Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: sudo unable to resolve host

  1. #1
    Join Date
    Aug 2008
    Beans
    22

    Exclamation 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!

  2. #2
    Join Date
    Feb 2008
    Location
    Memphis, TN
    Beans
    613
    Distro
    Ubuntu

    Re: sudo unable to resolve host

    Could you please copy/paste the output?
    Myth: Linux is only usable with a persistent Internet connection. WRONG!
    You can use Keryx to download your .debs with dependencies from any OS!

  3. #3
    Join Date
    Jan 2008
    Location
    Spain
    Beans
    1,180
    Distro
    Ubuntu

    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?
    What's even more important than free software? - OPEN FORMATS.

  4. #4
    Join Date
    Aug 2008
    Beans
    22

    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.

  5. #5
    Join Date
    Jun 2007
    Location
    Paraparaumu, New Zealand
    Beans
    Hidden!

    Re: sudo unable to resolve host

    Quote Originally Posted by Inetrix View Post
    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.
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  6. #6
    Join Date
    Aug 2008
    Beans
    22

    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.

  7. #7
    Join Date
    Feb 2008
    Location
    Memphis, TN
    Beans
    613
    Distro
    Ubuntu

    Re: sudo unable to resolve host

    Could you please post the contents of your /etc/hosts file?
    And your /etc/hostname if you would.
    Last edited by mac9416; September 22nd, 2009 at 03:04 AM.
    Myth: Linux is only usable with a persistent Internet connection. WRONG!
    You can use Keryx to download your .debs with dependencies from any OS!

  8. #8
    Join Date
    Aug 2008
    Beans
    22

    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'
    Last edited by Inetrix; September 22nd, 2009 at 03:20 AM. Reason: FOUND HOSTNAME!

  9. #9
    Join Date
    Aug 2008
    Beans
    22

    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

    (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

  10. #10
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    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?

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •