求助:无法启动gufw图形界面?

为当前最终发行版之前的所有版本提供支持
回复
skswujian
帖子: 175
注册时间: 2006-09-07 15:31
送出感谢: 7 次
接收感谢: 1 次

求助:无法启动gufw图形界面?

#1

帖子 skswujian » 2019-02-19 20:58

$ sudo gufw
No protocol specified
Unable to init server: Could not connect: Connection refused
No protocol specified
Unable to init server: 无法连接:Connection refused

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.439: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.439: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.439: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gtk-CRITICAL **: 20:50:03.439: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.439: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.439: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.439: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gtk-CRITICAL **: 20:50:03.439: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.439: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.439: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.439: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gtk-CRITICAL **: 20:50:03.439: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gtk-CRITICAL **: 20:50:03.440: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gtk-CRITICAL **: 20:50:03.440: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gtk-CRITICAL **: 20:50:03.440: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gtk-CRITICAL **: 20:50:03.440: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gtk-CRITICAL **: 20:50:03.440: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gtk-CRITICAL **: 20:50:03.440: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gdk-CRITICAL **: 20:50:03.440: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(gufw.py:4700): Gtk-CRITICAL **: 20:50:03.440: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed

(gufw.py:4700): Gtk-CRITICAL **: 20:50:03.441: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(gufw.py:4700): Gtk-CRITICAL **: 20:50:03.441: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed

(gufw.py:4700): Gtk-CRITICAL **: 20:50:03.441: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
/usr/bin/gufw-pkexec:行 13: 4700 段错误 python3 ${LOCATIONS[${i}]} $1


无法启动gufw图形界面,怎么解决呀,看不懂这些代码提示。
linux新人,不停的尝鲜,请多多指教.
头像
mraandtux
论坛版主
帖子: 5161
注册时间: 2009-12-12 19:29
系统: Ubuntu + Windows 10
来自: 随便一个地方
送出感谢: 0
接收感谢: 168 次
联系:

Re: 求助:无法启动gufw图形界面?

#2

帖子 mraandtux » 2019-02-19 21:56

这些用户感谢了作者 mraandtux 于这个帖子:
skswujian (2019-02-19 22:36)
评价: 3.7%
skswujian
帖子: 175
注册时间: 2006-09-07 15:31
送出感谢: 7 次
接收感谢: 1 次

Re: 求助:无法启动gufw图形界面?

#3

帖子 skswujian » 2019-02-19 22:36

谢谢你的帮助,非常感谢,好人一生平安。

目前输入如下命令就能使用了。
$ echo $XDG_SESSION_TYPE
wayland

$ xhost si:localuser:root
localuser:root being added to access control list
linux新人,不停的尝鲜,请多多指教.
skswujian
帖子: 175
注册时间: 2006-09-07 15:31
送出感谢: 7 次
接收感谢: 1 次

Re: 求助:无法启动gufw图形界面?

#4

帖子 skswujian » 2019-02-19 22:40

用Wayland?
抱歉,我不懂什么是Wayland。

GNU/Linux系统是https://www.gnu.org/推荐的PureOS/

PureOS
https://downloads.puri.sm/live/gnome/
linux新人,不停的尝鲜,请多多指教.
头像
mraandtux
论坛版主
帖子: 5161
注册时间: 2009-12-12 19:29
系统: Ubuntu + Windows 10
来自: 随便一个地方
送出感谢: 0
接收感谢: 168 次
联系:

Re: 求助:无法启动gufw图形界面?

#5

帖子 mraandtux » 2019-02-20 13:25

这些用户感谢了作者 mraandtux 于这个帖子:
skswujian (2019-02-21 11:11)
评价: 3.7%
skswujian
帖子: 175
注册时间: 2006-09-07 15:31
送出感谢: 7 次
接收感谢: 1 次

Re: 求助:无法启动gufw图形界面?

#6

帖子 skswujian » 2019-02-21 11:07

mraandtux 写了:
2019-02-20 13:25
Wayland是显示服务器,看来PureOS默认进Wayland版GNOME桌面,导致sudo用不了。看下面的链接:
https://puri.sm/posts/what-is-pureos-an ... -it-built/
https://wiki.archlinux.org/index.php/Ru ... ot#Wayland
https://unix.stackexchange.com/question ... hical-sudo
https://wiki.archlinux.org/index.php/Wa ... %E6%96%87)
https://zh.wikipedia.org/zh/Wayland(本链接需非正常浏览)
这样子呀,我都没搞懂呢,后来重启又要输入上次第二个命令xhost si:localuser:root才能正常使用。


我注销后才发现有6个选项,当初安装后默认选项是第二项2>GNOME
1>System X11 Default
2>GNOME
3>GNOME 经典模式
4>运行于Xorg 的 GNOME
5>Kodi
6>kodi
后来选第一项就不会出这个用不了sudo问题

这6个选项分别代表什么呀,各有什么优点和缺点呀,用第一个和第二个选项启动进入桌面环境的,使用体验,发现系统有点卡有点卡的感觉,不流畅。一直没想明白为什么卡,之前用debian10就没这个感觉,甚至比它更快更流畅。
处理器:Intel® Core™ i5-5200U CPU @ 2.20GHz × 4
图形:Intel® HD Graphics 5500 (Broadwell GT2)
内存:7.4 GiB
OS:PureOS 64-bit
linux新人,不停的尝鲜,请多多指教.
回复

回到 “老旧版本支持”