Ubuntu system --- and show nvidia-smi command not found
Originally + CUDA nvidia driver installation easy, the two encounter boot and found abnormal fonts, graphics driver is not the total problem. A check is indeed nvidia-smi command not found.
u@u160406:~$ nvidia-smi NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
u@u160406:~$ uname -r 4.15.0-60-generic u@u160406:~$
Repeated experience, rooted reasons summarized: Ubuntu16.04 kernel updates caused . To replace the old kernel on the line.
Advanced potion for Ubuntu boot screen select the old version ( Linux-Image- 4.15. 0- 45- the Generic) , interface display properly.
u@u160406:~$ dpkg --get-selections |grep linux-image linux-image-4.15.0-45-generic hold linux-image-4.15.0-60-generic install linux-image-generic-hwe-16.04 install
Before the time of installation, make sure there is only one kernel:
U @ u160406: ~ $ uname - r 4.15 . 0 - 45 -generic
do not know when to automatically update the kernel. Previously, this interface also appeared abnormal, that is lost drive, reinstall the drive, and prohibit the kernel update
sudo APT-Mark the HOLD Linux-Image-x.xx.x-xx-the Generic
sudo APT-Mark the HOLD Linux-Image- -x.xx.x-xx-Extra the Generic
"ban update the kernel, need time to verify," today this situation, explained this way prohibit kernel updates so bad.
To solve the problem: 1. Uninstall the new kernel version, retaining continue using the old version. 2. Put another way, prohibit kernel automatically updated.
Ban update the kernel now uses sudo APT -mark the HOLD Linux-Image- 4.15 . 0 - 45 - the Generic sudo APT -mark the HOLD Linux-Image-extra- 4.15 . 0 - 45 - the Generic remove unused kernel sudo APT - GET the Remove Linux -image- 4.15 . 0 - 60 - Generic the sudo APT - GET Remove Linux-Image-extra- 4.15 . 0 - 60 -generic
the sudo Update-GRUB
. ubuntu16 04 to modify the system automatically updates the configuration file is prohibited to modify the configuration file /etc/apt/apt.conf.d/ 10periodic 0 is then closed, all values to 0 Vim etc /apt/apt.conf.d/ 10periodic the APT: : with the Periodic :: Update -package-Lists " 0 "; APT :: :: with the Periodic the Download -Upgradeable-Packages Standard Package " 0 "; APT :: :: AutocleanInterval with the Periodic " 0 ";
Of course, the presence of multiple cores, you can also set "Ubuntu16.04 switching kernel boot", @ https: //blog.csdn.net/u011304615/article/details/70920171, fear not understand, but also to start ruining the windows in and let us not try.
ubuntu16.04 Viewing the kernel, the kernel upgrade, remove core, core switching @https: //blog.csdn.net/u011304615/article/details/70919711