因Ubuntu系统安装nvidia驱动后(通过ubuntu自带的软件 更新以及通过PPA源时也是失败的)导致无法进入登陆界面,怀疑是版本不对应导致,故打算从官网下载对应的包去安装。
手动安装invidia驱动时,需要我们先查询自己的显卡型号,然后再到官网下载对应版本的驱动。
查询显卡型号的方法,网上大部分给出的是,在ubuntu命令行执行lspci | grep -i vga或者lshw -numeric -C display命令,就能打印出显卡型号了,如下所示:
我的双系统ubuntu18.04版本,命令查询后显示:
lshw -numeric -C display
WARNING: you should run this program as super-user.
*-display UNCLAIMED
description: VGA compatible controller
product: Intel Corporation [8086:9A49]
vendor: Intel Corporation [8086]
physical id: 2
bus info: pci@0000:00:02.0
version: 01
width: 64 bits
clock: 33MHz
capabilities: vga_controller bus_master cap_list
configuration: latency=0
resources: iomemory:600-5ff iomemory:400-3ff memory:601c000000-601cffffff memory:4000000000-400fffffff ioport:5000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff
*-display UNCLAIMED
description: 3D controller
product: NVIDIA Corporation [10DE:1F97]
vendor: NVIDIA Corporation [10DE]
physical id: 0
bus info: pci@0000:2d:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: bus_master cap_list
configuration: latency=0
resources: iomemory:600-5ff iomemory:600-5ff memory:5d000000-5dffffff memory:6020000000-602fffffff memory:6030000000-6031ffffff ioport:4000(size=128)
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
因看不懂返回的信息,怀疑是系统读不到显卡信息或者显卡坏了,通过各种查询,终于,让我明白了原来只是打印信息把显卡型号按16进制输出了。又一番搜索,最终找到这个网站:The PCI ID Repository
输入你的16进制信息,就会返回你的显卡信息,比如我的是1F97,查询后看到显卡型号是GeForce MX450
小小的碎碎念&~&
关于系统的问题,真是一步一个坑呀,还怕给整坏了,恢复环境又是费时费力烦躁的工程,如履薄冰呀,保佑保佑系统千万别崩…&~&