窗户周围有奇怪的彩色条纹 - Ubuntu 16.04

窗户周围有奇怪的彩色条纹 - Ubuntu 16.04

最近我注意到,在窗口周围以及所有应用程序的右键菜单上,都有这些奇怪的彩色条纹。它们在我重新启动 Ubuntu 或 Unity 后消失,但不久后又出现。

航站楼窗户周围的彩色条纹

我的笔记本电脑使用的是 NVIDIA GeForce 960M,对于那些知道的人来说,我几周前才开始 CUDA 编程。

这些是与 nvidia 相关的已安装的软件包:

quan@quantran:~$ sudo apt list --installed | grep nvidia

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

nvidia-367/xenial,now 375.39-0ubuntu0~gpu16.04.2 amd64 [installed]
nvidia-367-dev/xenial,now 375.39-0ubuntu0~gpu16.04.2 amd64 [installed,automatic]
nvidia-375/xenial,now 375.39-0ubuntu0~gpu16.04.2 amd64 [installed,automatic]
nvidia-375-dev/xenial,now 375.39-0ubuntu0~gpu16.04.2 amd64 [installed,automatic]
nvidia-cuda-dev/xenial,now 7.5.18-0ubuntu1 amd64 [installed,automatic]
nvidia-cuda-doc/xenial,xenial,now 7.5.18-0ubuntu1 all [installed,automatic]
nvidia-cuda-gdb/xenial,now 7.5.18-0ubuntu1 amd64 [installed,automatic]
nvidia-cuda-toolkit/xenial,now 7.5.18-0ubuntu1 amd64 [installed]
nvidia-modprobe/unknown,now 367.48-0ubuntu1 amd64 [installed,automatic]
nvidia-opencl-dev/xenial,now 7.5.18-0ubuntu1 amd64 [installed,automatic]
nvidia-opencl-icd-367/xenial,now 375.39-0ubuntu0~gpu16.04.2 amd64 [installed,automatic]
nvidia-opencl-icd-375/xenial,now 375.39-0ubuntu0~gpu16.04.2 amd64 [installed,automatic]
nvidia-prime/xenial,now 0.8.2 amd64 [installed,automatic]
nvidia-profiler/xenial,now 7.5.18-0ubuntu1 amd64 [installed,automatic]
nvidia-settings/xenial,now 378.09-0ubuntu0~gpu16.04.1 amd64 [installed,automatic]
nvidia-visual-profiler/xenial,now 7.5.18-0ubuntu1 amd64 [installed,automatic]

的结果lspci

quan@quantran:~$ lspci
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d5)
00:1c.1 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #2 (rev d5)
00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 (rev d5)
00:1c.3 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM86 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 960M] (rev a2)
04:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb)
05:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5287 (rev 01)
05:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)

提前谢谢大家!

答案1

罪魁祸首确实是 NVidia 驱动程序的新版本。恢复到 375 不起作用,因为在我看来它也已更新(次要版本)和/或其依赖项是多个版本的混合。无论如何:

  1. 删除 PPA。在我的电脑上,我删除了/etc/apt/sources.list.d/graphics-drivers-ubuntu-ppa-xenial.list指向存储库的文件deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial main
  2. 删除所有已安装的 NVidia 软件包,例如nvidia-*。在我的电脑上,我使用以下命令删除了几个软件包apt remove nvidia-361 nvidia-375 nvidia-378
  3. 使用以下命令更新软件包列表apt update
  4. 使用以下方式安装最新官方版本(即 367)apt install nvidia-367

顺便说一句,我总是惊讶于更新如何定期破坏 Ubuntu......

相关内容