听闻少年二字,当与平庸相斥。这篇文章主要讲述Ubuntu如何卸载cuda driver相关的知识,希望能为你提供帮助。
Ubuntu上安装了cuda driver后不能启动进入界面,只好通过recovery模式进入,然后卸载cuda driver。
参考地址:
【Ubuntu如何卸载cuda driver】How to uninstall the NVIDIA drivers on Ubuntu 20.04 step by step instructions
??https://linuxconfig.org/how-to-uninstall-the-nvidia-drivers-on-ubuntu-20-04-focal-fossa-linux??
这里列出了两种方法,介绍如下,
方法一: Uninstall the Ubuntu repository and PPA NVIDIA drivers
- The following command will remove the proprietary Nvidia driver: $ sudo dpkg -P $(dpkg -l | grep nvidia-driver | awk print $2)
$ sudo apt autoremove
- Switch back to nouveau driver: $ sudo apt install xserver-xorg-video-nouveau
The above switch from Nvidia to Nouveau driver can also be performed from GNOME GUI ??Software & Updates?
? application window.
- Reboot your system.
- Once your system has rebooted confirm loaded ?
?nouveau?
?? modules: $ lsmod | grep nouveau nouveau19496964 mxm_wmi163841 nouveau ttm1064961 nouveau drm_kms_helper1843201 nouveau drm4915207 drm_kms_helper,ttm,nouveau i2c_algo_bit163841 nouveau wmi327683 wmi_bmof,mxm_wmi,nouveau video491521 nouveau
For Nvidia drivers downloaded and installed from the ??official Nvidia ??website follow the below steps for Nvidia driver uninstall and to switch back to Nouveau opensource driver.
- Locate the installation script used to install the Nvidia driver. In case you cannot locate the original installation script simply ??re-download it again.??? $ ls
NVIDIA-Linux-x86_64-440.44.run
- Uninstall the Nvidia Driver. Update the below Nvidia script name where appropriate : $ sudo bash NVIDIA-Linux-x86_64-XXX.XX.run --uninstall
- If you have not done so yet, restore your ?
?xorg?
?? original configuration from backup: $ sudo nvidia-xconfig --restore-original-backup
- Enable Nouveau modules. If you followed our guide on ??how to disable nouveau drivers on Ubuntu 20.04??? execute the following command: $ sudo rm /etc/modprobe.d/blacklist-nvidia-nouveau.conf
- Reboot your Ubuntu 20.04 system.
推荐阅读
- GDB最常用的命令
- Ubuntu20.04+vscode快速调试ROS通用程序
- YoloV3源码解析(读取label)
- 文件和文件夹右键菜单添加自定义程序
- Mysql 数据库之高级操作
- #yyds干货盘点#K8S 之资源对象介绍
- Zabbix分布式系统监控+ 试验(搭建一个Zabbix服务器)
- linux的计划任务给大家奉上,希望大家可以多多点赞,收藏。总体感觉可以的话可以加一个关注哟!
- )