登录后缺少依赖项消息

登录后缺少依赖项消息

升级到 19.10 后,每次登录时都会出现以下消息,并且只有在单击取消,登录继续。

系统监视器扩展

缺少依赖项

请安装:

libgtop、网络管理器和 gir 绑定

在 Ubuntu 上:gir1.2-gtop-2.0,gir1.2-networkmanager-1.0

...

如何消除此消息?

在此处输入图片描述

答案1

在 Ubuntu 19.10 中,该软件包似乎gir1.2-networkmanager-1.0已被替换gir1.2-nm-1.0(请参阅这一页

尝试通过以下方式搜索该包:

sudo apt-cache search -n gir1.2

如果你找到这个包,你可以安装它:

sudo apt-get install gir1.2-nm-1.0

希望它对你有用。

答案2

只是为了确保所有依赖关系有序:

sudo apt-get install gnome

然后:

gnome-shell --replace &

reboot

答案3

在其他地方发现了这个:

apt-get install gir1.2-gtop-2.0 gir1.2-clutter-1.0

我必须注销并重新登录才能使其正常工作。

答案4

检查事项:

扩展的本地副本已过期

就我而言,我有一个过时的扩展的旧本地副本:

$ ls ~/.local/share/gnome-shell/extensions/
[email protected]

所以我删除了它:

rm -rf ~/.local/share/gnome-shell/extensions/[email protected]

就我而言,我已经将扩展作为 Ubuntu 包安装了,但确保它已安装也不会有什么坏处:

sudo apt install gnome-shell-extension-system-monitor

这些更改将在您下次登录时生效。

依赖项

如果你已经从 Ubuntu 软件包安装(如我上面所推荐的),依赖项应该已经为你安装了。如果你已经手动安装了扩展,你可以尝试安装这些软件包:

sudo apt install gir1.2-clutter-1.0 gir1.2-gtop-2.0 gir1.2-nm-1.0

如上所述,更改应在您下次登录时生效。

检查错误日志

运行此命令检查 gnome-shell 错误日志:

sudo journalctl /usr/bin/gnome-shell

例如,这些是我看到的一些日志,它们帮助我意识到我安装了两个扩展副本(如上所述):

Error: Requiring NMClient, version none: Typelib file for namespace 'NMClient' (any version) not found
System monitor applet init from /home/user/.local/share/gnome-shell/extensions/[email protected]
System monitor applet enabling
Some code tried to set a deprecated GObject property.
0 _patchContainerClass/containerClass.prototype.child_set() ["resource:///org/gnome/shell/ui/environment.js":34:12]
1 _patchContainerClass/containerClass.prototype.add() ["resource:///org/gnome/shell/ui/environment.js":43:17]
2 _init() ["/home/user/.local/share/gnome-shell/extensions/[email protected]/extension.js":200:27]
...
Extension [email protected] already installed in /home/user/.local/share/gnome-shell/extensions/[email protected]>

相关内容