真特么废了老鼻子劲了。试变了网上的所有方法,包括但不限于
- 关掉Nouveau
- 更新gcc版本
- 切换各种源
- 关掉secure boot
- 换发行版(ubuntu 16 18 mint19)
死活卡在
ERROR: Unable to load the kernel module 'nvidia.ko'. This happens most
frequently when this kernel module was built against the wrong or
improperly configured kernel sources, with a version of gcc that differs
from the one used to build the target kernel, or if a driver such as
rivafb/nvidiafb is present and prevents the NVIDIA kernel module from
obtaining ownership of the NVIDIA graphics device(s), or NVIDIA GPU
installed in this system is not supported by this NVIDIA Linux graphics
driver release.
最终总算找到了个偏门
https://bbs.archlinux.org/viewtopic.php?id=245562
It says append, not replace. Hence:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pcie_port_pm=off"
Don't forget to re-generate your /boot/grub/grub.cfg after the config file change:
grub-mkconfig -o /boot/grub/grub.cfg
- sudo vi /etc/default/grub
- GRUB_CMDLINE_LINUX_DEFAULT里加上pcie_port_pm=off
- sudo grub-mkconfig -o /boot/grub/grub.cfg
药到病除啊!!!!!!!
妈蛋折腾了三天啊!!!!!