Thanks for taking the time to report this issue and make Ubuntu better.
To confirm, did you restart your machine after changing /etc/hostname
and /etc/hosts? Generally speaking changing the hostname without a
restart can cause the issues you're describing, because the previous
hostname is cached in the running applications (such as the graphical
display system).

** Package changed: ubuntu => xorg (Ubuntu)

** Changed in: xorg (Ubuntu)
       Status: New => Invalid

** Converted to question:
   https://answers.launchpad.net/ubuntu/+source/xorg/+question/236080

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xorg in Ubuntu.
https://bugs.launchpad.net/bugs/1168139

Title:
  hostname: No protocol specified and Can't open display errors.

Status in “xorg” package in Ubuntu:
  Invalid

Bug description:
  Hi. During trying to change hostname with 'sudo hostname example_name'
  command and after re-enabled console (hostname is changed in a bash
  prompt), I can not open any application or edit any files, because of
  this error;

  ,-----[ hostname error ]
  | No protocol specified
  | Can't open display: %s
  `-----

  But if I return to a previous hostname, everything works. I've tried:
  'gksudo gedit /etc/hostname' command, edit '/etc/hosts' file etc.
  Nothing works. Generally, I've tried everything, what I found on the
  web and what concerns to the hostname changes.

  ,----- [lsb_release -a ]
  | No LSB modules are available.
  | Distributor ID:     Ubuntu
  | Description:        Ubuntu 12.04.2 LTS
  | Release:    12.04
  | Codename:   precise
  | -----
  | Xubuntu 12.04.2
  | hostname 3.06ubuntu1
  `-----

  Log files such as '/var/log/syslog', or '/var/log/kern.log' and
  '.xsession.errors' does not contains any valuable informations.

  Best regards.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1168139/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to