重新安装Nvidia显卡驱动/文件系统只读

1.卸载已经安装显卡驱动

sudo apt-get purge nvidia*
sudo apt-get autoremove

2.搜索匹配的驱动版本

ubuntu-drivers devices

3.安装

如果同意安装推荐版本,那我们只需要终端输入下面的命令就可以自动安装了

sudo ubuntu-drivers autoinstall 

4.重启

reboot

5.检查

nvidia-smi

!!!如果上述方法安装不成功

1.卸载已经安装显卡驱动

sudo apt-get purge nvidia*
sudo apt-get autoremove

2.搜索匹配的驱动版本

ubuntu-drivers devices

3.安装

Nvidia 驱动官网

https://www.nvidia.cn/Download/index.aspx?lang=cn

选择对应版本,点击搜索,页面跳转后右键点击下载,然后复制下载连接URL
在这里插入图片描述

我的下载链接

https://www.nvidia.cn/content/DriverDownload-March2009/confirmation.php?url=/XFree86/Linux-x86_64/450.80.02/NVIDIA-Linux-x86_64-450.80.02.run&lang=cn&type=TITAN
wget XXX(XXX代表URL)
sudo chmod +x NVIDIA-Linux-x86_64-450.57.run(换成自己下载的版本)
sudo bash NVIDIA-Linux-x86_64-450.57.run --no-opengl-files(换成自己下载的版本)

!!PS:–no-opengl-files 只安装驱动文件,不安装OpenGL文件,这个参数最重要。

如果在安装过程中提示缺少gcc,make…依赖的包,只需要

sudo apt-get install gcc
sudo apt-get install make(如果还缺少别的依赖包,自己安装即可)

安装过程中的一些选项:

  • The distribution-provided pre-install script failed! Are you sure you want to continue?
    选择 yes 继续
  • Would you like to register the kernel module souces with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later?
    选择 No继续
  • 问题大概是:Nvidia’s 32-bit compatibility libraries? 选择 No 继续
  • Would you like to run the nvidia-xconfigutility to automatically update your x configuration so that the NVIDIA x driver will be used when you restart x? Any pre-existing x confile will be backed up.
    选择 Yes 继续

4.重启

reboot

5.检查

nvidia-smi
新问题:Ubuntu&Linux系统出现文件系统只读Read-only file system
sudo fdisk -l 命令查看坏掉的系统的文件系统分区情况,找到分区对应的设备名,如下图所示:

在这里插入图片描述

fsck.ext4 -y /dev/sda1
fsck.ext4 -y /dev/sda2

!!!!上述安装步骤是自己在安装过程中参考了部分资料并总结的,不一定全部适用,仅供参考

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值