Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 09/12/2017, à 10:59

leptitfrancais

[Resolu] Impossible de lancer gufw

Bonjour,

Lorsque j'essaye de lalancer GUFW, apres avoir entre mon mot de passe rien ne se passe en mode graphique.

En mode console j'ai le message d'erreur suivant :

~$ gufw
No protocol specified
Unable to init server: Could not connect: Connection refused
No protocol specified
Unable to init server: Could not connect: Connection refused

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gtk-CRITICAL **: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gtk-CRITICAL **: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gtk-CRITICAL **: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gtk-CRITICAL **: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gtk-CRITICAL **: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gtk-CRITICAL **: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gtk-CRITICAL **: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gtk-CRITICAL **: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gtk-CRITICAL **: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:3727): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:3727): Gtk-CRITICAL **: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
/usr/bin/gufw-pkexec: line 13:  3727 Segmentation fault      (core dumped) python3 ${LOCATIONS[${i}]} $1

J'ai essaye en installant un autre lanceur gksu mais ce n'est pas plus concluant.

Merci pour votre aide

Dernière modification par leptitfrancais (Le 09/12/2017, à 11:18)

Hors ligne

#2 Le 09/12/2017, à 11:03

malbo

Re : [Resolu] Impossible de lancer gufw

Si tu es avec la dernière version (17.10), c'est certainement dû à Wayland. Si tu utilises la 17.10, il est possible de contourner ça en utilisant Xorg au lieu de Wayland : je détaille la procédure dans ce post : https://forum.ubuntu-fr.org/viewtopic.php?id=2015137

Dernière modification par malbo (Le 09/12/2017, à 11:09)

Hors ligne

#3 Le 09/12/2017, à 11:07

leptitfrancais

Re : [Resolu] Impossible de lancer gufw

malbo a écrit :

Si tu es avec la dernière version (17.10), c'est certainement dû à Wayland.

Bonjour, effectivement je suis en version 17.10
Une idee pour contourner le probleme ?

Merci

Hors ligne

#4 Le 09/12/2017, à 11:10

malbo

Re : [Resolu] Impossible de lancer gufw

J'ai donné la solution dans le post #2 que j'ai complété entre temps. Une belle saloperie ce Wayland, hein ?

Dernière modification par malbo (Le 09/12/2017, à 11:10)

Hors ligne

#5 Le 09/12/2017, à 11:14

leptitfrancais

Re : [Resolu] Impossible de lancer gufw

malbo a écrit :

J'ai donné la solution dans le post #2 que j'ai complété entre temps. Une belle saloperie ce Wayland, hein ?



J'avais trouve ca sur le forum de gufw en attendant :


Better check whether wayland is really running before granting apps to run as root

Edit :!!!!! Ne pas utiliser cette methode !!!!!!!

if [ $XDG_SESSION_TYPE = "wayland" ]; then
 xhost +si:localuser:root
fi

Meme si je doute que ce soit la bonne solution

Effectivement Wayland....


Merci beaucoup pour votre reponse

Dernière modification par leptitfrancais (Le 09/12/2017, à 11:28)

Hors ligne

#6 Le 09/12/2017, à 11:19

malbo

Re : [Resolu] Impossible de lancer gufw

leptitfrancais a écrit :
if [ $XDG_SESSION_TYPE = "wayland" ]; then
 xhost +si:localuser:root
fi

Sauf erreur, cette solution que tu as collée est la pire. Je t'encourage à mettre en œuvre la solution que j'ai indiquée dans le post #2 (ouvrir une session Xorg au lieu de Wayland) à chaque fois que tu auras à utiliser une bonne vieille application graphique avec pouvoir administrateur.

Dernière modification par malbo (Le 09/12/2017, à 11:21)

Hors ligne

#7 Le 09/12/2017, à 11:27

leptitfrancais

Re : [Resolu] Impossible de lancer gufw

malbo a écrit :
leptitfrancais a écrit :
if [ $XDG_SESSION_TYPE = "wayland" ]; then
 xhost +si:localuser:root
fi

Sauf erreur, cette solution que tu as collée est la pire. Je t'encourage à mettre en œuvre la solution que j'ai indiquée dans le post #2 (ouvrir une session Xorg au lieu de Wayland) à chaque fois que tu auras à utiliser une bonne vieille application graphique avec pouvoir administrateur.


Oui je pensais bien que c'etait une mauvaise solution d'ou mon commentaire.

Merci beaucoup

Hors ligne

#8 Le 09/12/2017, à 11:30

??

Re : [Resolu] Impossible de lancer gufw

Bonjour.
Cette application tourne depuis plus de 7 ans sous wayland.
C'est un bug répertorié de la version 17.10
https://bugs.launchpad.net/ubuntu/+sour … ug/1713238
j'ai cru comprendre qu'en faisant cette commande

pkexec ufw enable

https://ubuntuforums.org/showthread.php?t=2369751
la suite devenait possible.
une liste est disponible.
https://bugs.launchpad.net/ubuntu/+sour … ug/1713311

Dernière modification par ?? (Le 09/12/2017, à 11:37)


Utiliser REFIND au lieu du GRUB https://doc.ubuntu-fr.org/refind . Aidez à vous faire dépanner en suivant le guide et en utilisant les outils de diagnostic J'ai perdu ma gomme. Désolé pour les fautes d'orthographes non corrigées.

Hors ligne