栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

Ubuntu如何卸载cuda driver

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Ubuntu如何卸载cuda driver

Ubuntu上安装了cuda driver后不能启动进入界面,只好通过recovery模式进入,然后卸载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
    nouveau              1949696  4
    mxm_wmi                16384  1 nouveau
    ttm                   106496  1 nouveau
    drm_kms_helper        184320  1 nouveau
    drm                   491520  7 drm_kms_helper,ttm,nouveau
    i2c_algo_bit           16384  1 nouveau
    wmi                    32768  3 wmi_bmof,mxm_wmi,nouveau
    video                  49152  1 nouveau

方法二:Uninstall the official NVIDIA drivers

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.
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/718577.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号