Debian Jessie环境损坏

Debian Jessie环境损坏

我的笔记本电脑上安装了 Debian 8.10 Jessie,从今天早上开始,我的环境行为完全被破坏:ALT+TAB 不起作用,ALT+F4 不起作用,我无法移动、关闭或调整大小我的应用程序(所以我无法关闭我的 Firefox 窗口),右键单击我的 Firefox 不起作用,我看不到带有应用程序和系统选项的顶部栏。

我尝试过(从)没有成功,startx不工作:

sudo apt-get update
sudo apt-get upgrade #see if the package is held back
sudo apt-get purge gnome-session
sudo apt-get install gnome-session
startx

我也尝试过 sudoapt-get dist-upgradeapt-get install gnome-accessibility-themes重新启动多次,但没有任何效果。我发现了,但尽管在我的 /etc/apt/sources.list 中指出,sudo apt-get install compizconfig-settings-manager但我有一个找不到包的错误non-free

我这里没有解决方案:(

.xinitrc:

#!/bin/sh# /etc/X11/xinit/xinitrc
## global xinitrc file, used by all X sessions started by xinit (startx)
# invoke global X session script.
/etc/X11/Xsession

.xseesion-errors(我删除了很多文件错误输出,因为它会产生很长的消息):

 Xsession: X session started for charles at samedi 10 février 2018, 17:21:17 (UTC+0100)
localuser:charles being added to access control list
openConnection: connect: Aucun fichier ou dossier de ce type
cannot connect to brltty at :0
/usr/bin/x-session-manager: X server already running on display :0
xfce4-session-Message: ssh-agent is already running; starting gpg-agent without ssh support
xfce4-panel: No window manager registered on screen 0. To start the panel without this check, run with --disable-wm-check.
xfsettingsd: No window manager registered on screen 0.

(xfsettingsd:1773): xfsettingsd-WARNING **: Failed to get the _NET_NUMBER_OF_DESKTOPS property.

(xfce4-session:1761): Wnck-CRITICAL **: wnck_workspace_activate: assertion 'WNCK_IS_WORKSPACE (space)' failed

(zeitgeist-datahub:1966): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(zeitgeist-datahub:1966): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

** (terminator:1774): WARNING **: Binding '<Shift><Control><Alt>a' failed!
Unable to bind hide_window key, another instance/window has it.
nm-applet-Message: No keyring secrets found for ABOX/802-11-wireless-security; asking user.

** (terminator:1775): WARNING **: Binding '<Shift><Control><Alt>a' failed!
Unable to bind hide_window key, another instance/window has it.

--------- A lot of error messages -----------

(/opt/firefox/firefox:3600): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

** (terminator:3706): WARNING **: Binding '<Shift><Control><Alt>a' failed!
Unable to bind hide_window key, another instance/window has it.

答案1

这些错误消息让我相信 XFCE 窗口管理器(通常xfwm4)未正确启动:

xfce4-panel: No window manager registered on screen 0. To start the panel without this check, run with --disable-wm-check.
xfsettingsd: No window manager registered on screen 0.

窗口管理器是一个实用程序,可以在窗口上添加装饰并允许您与它们交互(移动它们等)。

通常,XFCE 桌面环境应从~/.xsession~/.xinitrc使用命令启动startxfce4

不管出于什么原因,我有命令

exec ck-launch-session startxfce4

在我自己的.xinitrc。该ck-launch-session实用程序“从 shell 脚本启动 ConsoleKit 会话”,并exec用该实用程序替换当前进程。如果您不使用 ConsoleKit,则只需ck-launch-session从该行中删除(我相信我需要包含该行才能从 XFCE 菜单关闭并重新启动)。


我不在 Debian (或根本不使用 Linux),所以我不能说这绝对是您问题的正确解决方案。

相关内容