我一直在尝试将 GUI(即 gnome 和 lxde)安装到 google 云计算实例中的 Debian 9stretch 中。我什至增加了CPU、内存、硬盘的大小。但是安装始终卡在“Setting up dbus (1.10.26-0+deb9u1)”
我最后一次尝试是让它静置 6 个小时。它仍然卡在那里。
我能做些什么?
感谢致敬
编辑1:我找到了这一行。这与这个错误有关系吗?
Setting up rtkit (0.11-4+b1) ...
Created symlink /etc/systemd/system/graphical.target.wants/rtkit-daemon.service → /lib/systemd/system/rtkit-daemon.service.
Job for rtkit-daemon.service failed because a timeout was exceeded.
See "systemctl status rtkit-daemon.service" and "journalctl -xe" for details.
rtkit-daemon.service couldn't start.
Edit2:我关闭实例并得到以下内容。不确定这是否意味着什么或根本不相关 - 再次因为我强制关闭了系统。
Setting up dbus (1.10.26-0+deb9u1) ...
Job for dbus.service canceled.
invoke-rc.d: initscript dbus, action "start" failed.
● dbus.service - D-Bus System Message Bus
Loaded: loaded (/lib/systemd/system/dbus.service; static; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-05-02 21:38:17 UTC; 31min ago
Docs: man:dbus-daemon(1)
Main PID: 15748 (code=exited, status=1/FAILURE)
May 02 21:37:52 instance-2 systemd[1]: Started D-Bus System Message Bus.
May 02 21:37:52 instance-2 dbus-daemon[15748]: Failed to start message bus: Could not get UID and GID for username "messagebus"
May 02 21:38:17 instance-2 systemd[1]: dbus.service: Main process exited, code=exited, status=1/FAILURE
May 02 21:38:17 instance-2 systemd[1]: dbus.service: Unit entered failed state.
May 02 21:38:17 instance-2 systemd[1]: dbus.service: Failed with result 'exit-code'.
dpkg: error processing package dbus (--configure):
subprocess installed post-installation script returned error exit status 1
答案1
我能够通过首先dbus
单独安装库来完成安装,然后继续安装lxde
:
sudo apt-get install dbus
sudo apt-get install lxde
答案2
重新启动服务器然后执行
dpkg --configure -a
当我设置vnc时,我总是遇到这种情况,它卡住了,然后必须重新启动vps