Ubuntu 软件崩溃

Ubuntu 软件崩溃

刚刚运行了常规软件更新,没有异常。提示我重新启动,所以我重新启动了,但一旦登录,程序就ubuntu-software“崩溃了”(窗口短暂打开,然后消失)。

重新启动了几次以确保这不是故障,并尝试从终端运行它以查看错误消息:

$ ubuntu-software

(ubuntu-software:6610): Gs-WARNING **: Failed to create permission org.freedesktop.packagekit.trigger-offline-update: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.packagekit.trigger-offline-update is not registered

(ubuntu-software:6610): Gs-WARNING **: Failed to create permission org.freedesktop.packagekit.trigger-offline-update: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.packagekit.trigger-offline-update is not registered

(ubuntu-software:6610): Gs-WARNING **: Failed to create permission org.freedesktop.packagekit.trigger-offline-update: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.packagekit.trigger-offline-update is not registered

(ubuntu-software:6610): Gs-WARNING **: Failed to create permission org.freedesktop.packagekit.trigger-offline-update: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.packagekit.trigger-offline-update is not registered

(ubuntu-software:6610): Gs-WARNING **: Failed to create permission org.freedesktop.packagekit.trigger-offline-update: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.packagekit.trigger-offline-update is not registered

(ubuntu-software:6610): GLib-CRITICAL **: g_dir_read_name: assertion 'dir != NULL' failed

(ubuntu-software:6610): Gtk-WARNING **: Error loading image 'file:///usr/share/gnome-software/featured-inkscape.png': Error opening file: Too many open files

(ubuntu-software:6610): GLib-ERROR **: Creating pipes for GWakeup: Too many open files

Trace/breakpoint trap (core dumped)

不知道它们之间有什么关系(通常手动使用),但另一方面,apt install该程序似乎运行良好。不过令人讨厌的是,双击软件包似乎会调用;尝试这样做会打开一个带有软件包描述和“安装”按钮的窗口(像往常一样),但单击按钮会关闭该窗口。仍然可以手动安装,但最好知道为什么会发生这种情况以及如何修复它。software-center.debubuntu-softwaredpkg -i

答案1

你似乎受到了这个错误在 gdm3 中您可能希望订阅它,以便在修复时收到通知。

要确认,请发出命令cat /etc/X11/default-display-manager,该命令应输出显示管理器的完整路径。你甚至可以更改显示管理器作为一种解决方法。这应该会让你走得更远,希望这个和重新启动也能解决打开太多文件的问题。

答案2

如上所述这里

sudo apt-get upgrade gnome-software

这为我解决了这个问题。

相关内容