Tente:
sudo DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY update-manager -d
Estou tentando atualizar minha máquina de trabalho de 12.04 para 14.04, mas com problemas.
sudo update-manager -d
:
** (update-manager:20416): WARNING **: Command line 'dbus-launch --autolaunch=f01c8e2b23ace751460ef7f800000009 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n
Traceback (most recent call last):
File "/usr/bin/update-manager", line 26, in <module>
from gi.repository import Gtk
File "/usr/lib/python2.7/dist-packages/gi/importer.py", line 76, in load_module
dynamic_module._load()
File "/usr/lib/python2.7/dist-packages/gi/module.py", line 224, in _load
overrides_modules = __import__('gi.overrides', fromlist=[self._namespace])
File "/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py", line 1533, in <module>
raise RuntimeError("Gtk couldn't be initialized")
RuntimeError: Gtk couldn't be initialized
Eu tentei coisas como remover .Xauthority
Iniciar sem o sudo funciona, mas falha quando clico em atualizar:
authenticate 'trusty.tar.gz' against 'trusty.tar.gz.gpg'
extracting 'trusty.tar.gz'
can't load DistUpgradeViewGtk3 (Gtk couldn't be initialized)
Alguma idéia de como eu posso lançar sudo update-manager -d
?
Tente:
sudo DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY update-manager -d