Synaptic problem

Hi,

synaptic not launching anymore. I got the following error :
error: XDG_RUNTIME_DIR not set in the environment.
(synaptic:2231): Gtk-WARNING **: cannot open display:

I muste use the following command to get synaptic launch :
pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY

I don’t know what had changed between when it was working and not. I’ve done classic installation :

  • removed openjdk
  • adding webupd8 ppa for java (oracle)
  • installing oracle java
  • installing subversion (1.7 by using saucy repository trick)
  • installing rabbitvcs

Hope nothing hard to correct.

See you.

You can always create a (permanent) alias like this and see if that helps:

alias pkexec=‘pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY’

I’m not sure if all of these are needed or required (please check) but, one or more of them maybe the cause of your problem:
gksu
libpam-xdg-support
libxdg-basedir1
libghc-xdg-basedir-prof
libqtxdg0
python-xdg
python-xdgapp
python3-xdg
xdg-user-dirs
xdg-utils

AJ

I found exaclty what the problem is : I wanted to do the add-apt-repository work behind a proxy. to do so I needed to modify the sudoers file to add the following entry :

Defaults env_keep="http_proxy https_proxy ftp_proxy"

This is this modification so sudo keep proxy that are put in /etc/:environment that broke up synaptic command.

So I remove the modification in sudoers but now I can’t use the add-apt-repository command I have the following error :

Cannot add PPA: ''Error reading https://launchpad.net/api/1.0/~webupd8team/+archive/java: (7, "Failed to connect to launchpad.net port 443: Connexion termin\\xc3\\xa9e par expiration du d\\xc3\\xa9lai d\'attente")''.

The only way is to use synaptic to add a ppa but we should use the url and not the short syntax.

Hope something can be done.

See you.

Found a way so the command line add-apt-repository work :

sudo[b] -E[/b] add-apt-repository ppa:xxxxx/xxx

So for me no problem anymore just need to know for -E with sudo.

See you