Ubuntu 22.04下重新编译Linux内核时禁用rivafb的方法求助
大家好,我是Linux新手,最近尝试跟着教程安装NVIDIA显卡驱动,但一直失败。查看/var/log/nvidia-installer.log后发现是内核里启用了rivafb,和NVIDIA驱动冲突,需要重新编译内核并禁用rivafb。可我完全不知道rivafb是什么,也找不到相关的教程,想请教大家该怎么操作?
下面是日志内容:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Sep 17 04:37:24 2022
installer version: 367.57
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
nvidia-installer command line:
./nvidia-installer
Using: nvidia-installer ncurses v6 user interface
-> Detected 2 CPUs online; setting concurrency level to 2.
-> License accepted.
-> Installing NVIDIA driver version 367.57.
-> An alternate method of installing the NVIDIA driver was detected. (This is usually a package provided by your distributor.) A driver installed via that method may integrate better with your system than a driver installed by nvidia-installer.
Please review the message provided by the maintainer of this alternate installation method and decide how to proceed:
The NVIDIA driver provided by Ubuntu can be installed by launching the "Software & Updates" application, and by selecting the NVIDIA driver from the "Additional Drivers" tab.
(Answer: Continue installation)
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: No)
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Kernel source path: '/lib/modules/5.15.0-47-generic/build'
-> Kernel output path: '/lib/modules/5.15.0-47-generic/build'
-> Performing rivafb check.
ERROR: Your kernel was configured to include rivafb support!
The rivafb driver conflicts with the NVIDIA driver, please
reconfigure your kernel and disable rivafb support, then
try installing the NVIDIA kernel module again.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
另外我执行了sudo lsmod | grep rivafb,结果是空的,没有任何输出。
真心希望有大佬能一步步教我怎么重新编译内核并禁用rivafb,或者有没有其他不用编译内核就能解决这个冲突的方法?谢谢大家!
备注:内容来源于stack exchange,提问作者SAJJAD_H2004

