
Peter Ross wrote:
Hi Bob,
Quoting Bob <enquiries@lorneholidays.com.au>:
Hello all, I have a laptop running Kubuntu 11.04. In attempting to upgrade to 11.10 via the internet the upgrade fails citing unable to get Kubuntu -wallpaper, so I downloaded the alternate cd, disconnected from the internet and attempted to upgrade from the cd using 'sh cdromupgrade'. Normally I would use my own logon but in a last desperate attempt I changed to root. Results are shown below:
root@Toshiba:/media/cdrom0# sh cdromupgrade No protocol specified /usr/lib/pymodules/python2.7/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display warnings.warn(str(e), _gtk.Warning) can't load DistUpgradeViewGtk (No module named vte) can't load DistUpgradeViewGtk3 (Namespace Gtk not available for version 3.0) No protocol specified update-manager: cannot connect to X server :0
Is there something wrong with the command I have used?
Not the command itself - you just have an access problem running it as root.
His other problem is that it can't find the vte (GTK terminal emulator) library, which probably means he needs a package like python-vte installed.
The Xserver providing your desktop is owned by you, and nobody else can draw windows on it (not even root)
Use "sudo sh cdromupgrade" instead, that should work.
I am not familiar with cdromupgrade; if it is some third-party "i found it on a blog somewhere", then don't use it; stick to d-r-u. https://help.ubuntu.com/community/UpgradeNotes
Alternatively you can allow access via "xhost +".
Urk. At least limit that to "xhost + localhost" or so, lest he be open to keyboard sniffing attacks from the network. In any case he probably has -nolisten tcp in his equivalent of /etc/X11/xinit/xserverrc.
I am running KDE since Monday, I just had my disk filled with a 240GB .xsession-errors. Great!
$ cat ~/.xsession-errors Debian's /etc/X11/Xsession script will use /tmp/.xsession-$USER if this file exists and is not writable. We arrange for this to be the case so that /tmp, not /home, will fill up if an X client spews shit to stderr. $ ls -l ~/.xsession-errors lrwxrwxrwx 1 twb twb 28 Jun 26 2010 /home/twb/.xsession-errors -> Preferences/.xsession-errors $ ls -l ~/Preferences/.xsession-errors -r--r----- 1 twb twb 216 Mar 12 2010 /home/twb/Preferences/.xsession-errors