卸载然后重新安装nvidia-384,杀死colord

我想我在Ubuntu 17.10中遇到过nvidia驱动程序的错误。

当我使用sudo apt删除nvidia *删除nvidia-384时,colord似乎停止能够检测到我的显示器。

我重新安装了nvidia-384,我在尝试重新安装时发现了这个错误:

dpkg:错误:版本’ – ‘语法错误:版本号为空

我不确定这意味着什么,但是在安装过程中这是我终端的一小部分:

update-alternatives: using /usr/share/nvidia-384/glamor.conf to provide /usr/share/X11/xorg.conf.d/glamoregl.conf (glamor_conf) in auto mode dpkg: error: version '-' has bad syntax: revision number is empty update-initramfs: deferring update (trigger activated) INFO:Enable nvidia-384 

在几天前重新格式化17.10之后,这是我第二次遇到这个错误。 ‘colormgr get-devices’不返回任何设备。

‘colormgr create-device D2757 temp display’返回:

 could not check org.freedesktop.color-manager.create-device for auth: GDBus.Error:org.freedesktop.PolicyKit1.Error.NotAuthorized: Only trusted callers (eg uid 0 or an action owner) can use CheckAuthorization() for subjects belonging to other identities 

这就是我可以解决这个问题。 我不再深入解决问题了。

删除nvidia驱动程序时,您是否尝试使用–purge选项? 它还将删除配置文件。 如果它不起作用,你可以尝试:

 sudo apt-get install lightdm sudo dpkg-reconfigure gdm 

正如另一篇文章所述

我有同样的错误,对我来说安装“nvidia-384-dev”似乎解决了这个问题……(也许,依赖项出了问题?)

sudo apt install nvidia-384-dev

sudo apt install --reinstall nvidia-384