使用以下命令行进行完整的 Kali linux 更新后:
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && apt-get autoclean -y && apt-get autoremove -y
gnome-terminal 停止工作并显示此错误消息:
# _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
# Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached
这是输出uname -a
:
Linux LNXBOX 5.3.0-kali2-amd64 #1 SMP Debian 5.3.9-1kali1 (2019-11-11) x86_64 GNU/Linux
这是输出gnome-terminal --version
:
# GNOME Terminal 3.34.2 using VTE 0.53.0 +GNUTLS
这是输出tail /val/log/syslog
:
Nov 19 18:40:56 LNXBOX org.gnome.Terminal.desktop[1664]: # _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
Nov 19 18:40:56 LNXBOX dbus-daemon[1474]: [session uid=0 pid=1474] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.104' (uid=0 pid=2549 comm="gnome-terminal ")
Nov 19 18:40:56 LNXBOX systemd[1454]: Starting GNOME Terminal Server...
Nov 19 18:40:56 LNXBOX gnome-terminal-server[2554]: /usr/libexec/gnome-terminal-server: symbol lookup error: /usr/libexec/gnome-terminal-server: undefined symbol: vte_terminal_set_enable_bidi
Nov 19 18:40:56 LNXBOX systemd[1454]: gnome-terminal-server.service: Main process exited, code=exited, status=127/n/a
Nov 19 18:40:56 LNXBOX systemd[1454]: gnome-terminal-server.service: Failed with result 'exit-code'.
Nov 19 18:40:56 LNXBOX systemd[1454]: Failed to start GNOME Terminal Server.
Nov 19 18:41:21 LNXBOX org.gnome.Terminal.desktop[1664]: # Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: Timeout was reached
这是输出dpkg -l | egrep "gnome-terminal|vte"
:
ii davtest 1.0-1kali3 all Testing tool for WebDAV servers
ii gir1.2-vte-2.91:amd64 0.58.2-1 amd64 GObject introspection data for the VTE library
ii gnome-terminal 3.34.2-1kali1 amd64 GNOME terminal emulator application
ii gnome-terminal-data 3.34.2-1kali1 all Data files for the GNOME terminal emulator
ii libvte-2.91-0:amd64 0.58.2-1 amd64 Terminal emulator widget for GTK+ 3.0 - runtime files
ii libvte-2.91-common 0.58.2-1 all Terminal emulator widget for GTK+ 3.0 - common files
ii libvte-2.91-dev:amd64 0.58.2-1 amd64 Terminal emulator widget for GTK+ 3.0 - development files
ii libvte-2.91-doc 0.58.2-1 all Terminal emulator widget for GTK+ 3.0 - documentation
ii nautilus-extension-gnome-terminal 3.34.2-1kali1 amd64 GNOME terminal emulator application
有任何想法吗 ?
答案1
经过几个小时的搜索,我终于在系统日志中看到了这个
Apr 11 23:11:56 kfc-XPS-15-9560 systemd[1682]: Starting GNOME Terminal Server...
Apr 11 23:11:56 kfc-XPS-15-9560 systemd[1682]: gnome-terminal-server.service: Main process exited, code=exited, status=8/n/a
Apr 11 23:11:56 kfc-XPS-15-9560 gnome-terminal-server[17676]: Non UTF-8 locale (ANSI_X3.4-1968) is not supported!
Apr 11 23:11:56 kfc-XPS-15-9560 systemd[1682]: gnome-terminal-server.service: Failed with result 'exit-code'.
Apr 11 23:11:56 kfc-XPS-15-9560 systemd[1682]: Failed to start GNOME Terminal Server.
然后就很容易找到这个解决方案了。