最近,Ubuntu 中的软件更新程序不知为何无法在 Ubuntu Mate 中启动。这个问题是在系统提示我重新启动以更新系统时出现的。重新启动系统后,我打开更新管理器,发现更新管理器会短暂打开一秒钟然后突然关闭(在进行其他 BIOS 更改重新启动时,它会最小化启动)。
我的替代计划是使用终端启动管理器,方法是获取 MATE 高级菜单中的启动选项(右键单击软件更新程序并编辑属性)。然后使用 执行/usr/bin/update-manage
。但我收到以下一系列错误。
/usr/bin/update-manager:28: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Dbusmenu was imported without specifying a version first. Use gi.require_version('Dbusmenu', '0.4') before import to ensure that the right version gets loaded.
from gi.repository import Dbusmenu, Unity
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
from gi.repository import Dbusmenu, Unity
(update-manager:1063): GLib-CRITICAL **: g_hash_table_destroy: assertion 'hash_table != NULL' failed
(update-manager:1063): GLib-CRITICAL **: g_hash_table_destroy: assertion 'hash_table != NULL' failed
Exception ignored in: <object repr() failed>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 253, in __del__
TypeError: 'NoneType' object is not callable
所以我想知道是否有办法解决这个问题。我也在使用 MATE 桌面环境。