我正在尝试按照以下说明构建 Ubuntu Bionic 内核 4.15.0-122-generichttps://wiki.ubuntu.com/Kernel/BuildYourOwnKernel。
它会持续一段时间,然后尝试下载一些现在缺失的 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
答案1
我通过禁用 Nvidia DKMS 解决了这个问题:
sed -i '/do_dkms_nvidia/ s/true/false/' debian.master/rules.d/amd64.mk