我正在尝试按照https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel的说明构建 Ubuntu Bionic 内核 4.15.0-122-generic 。
它运行了很长一段时间,然后尝试下载一些现在丢失的 Nvidia 软件包,可能是因为其中发现了安全漏洞。
如何继续构建内核?我不需要 Nvidia 驱动程序,我可以以某种方式禁用它们吗?
II: dkms-build downloading nvidia-418srv (nvidia-kernel-source-418-server_418.181.07-0ubuntu0~0.18.04.1_amd64.deb)
II: fetching https://launchpad.net/ubuntu/+archive/primary/+files/nvidia-kernel-source-418-server_418.181.07-0ubuntu0~0.18.04.1_amd64.deb
curl: (22) The requested URL returned error: 404 Not Found
grep: /etc/apt/sources.list.d/*.list: No such file or directory
II: fetching http://archive.ubuntu.com/ubuntu//pool/restricted/n/nvidia-graphics-drivers-418-server/nvidia-kernel-source-418-server_418.181.07-0ubuntu0~0.18.04.1_amd64.deb
curl: (22) The requested URL returned error: 404 Not Found
II: fetching http://archive.ubuntu.com/ubuntu//pool/main/n/nvidia-graphics-drivers-418-server/nvidia-kernel-source-418-server_418.181.07-0ubuntu0~0.18.04.1_amd64.deb
curl: (22) The requested URL returned error: 404 Not Found
II: fetching http://security.ubuntu.com/ubuntu//pool/restricted/n/nvidia-graphics-drivers-418-server/nvidia-kernel-source-418-server_418.181.07-0ubuntu0~0.18.04.1_amd64.deb
curl: (22) The requested URL returned error: 404 Not Found
II: fetching http://security.ubuntu.com/ubuntu//pool/main/n/nvidia-graphics-drivers-418-server/nvidia-kernel-source-418-server_418.181.07-0ubuntu0~0.18.04.1_amd64.deb
curl: (22) The requested URL returned error: 404 Not Found
EE: nvidia-kernel-source-418-server not found
debian/rules.d/2-binary-arch.mk:112: recipe for target 'install-generic' failed
make: *** [install-generic] Error 1
我通过禁用 Nvidia DKMS 来解决它: