在 Ubuntu 14.04 上安装 GeForce GT 750M 驱动程序时出现不兼容问题

在 Ubuntu 14.04 上安装 GeForce GT 750M 驱动程序时出现不兼容问题

我想安装 NVIDIA 芯片的驱动程序,并且我想安装 CUDA,以便我可以对该芯片进行编程。

这是我的笔记本电脑的描述:

$ uname -a
Linux Eduardo-Alienware-14 3.13.0-111-generic #158-Ubuntu SMP Wed Feb 22 16:12:03 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
LSB Version:    core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:    14.04
Codename:   trusty

我的图形芯片的详细信息:

$ sudo lspci -vnn | grep -i VGA -A 12
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK107M [GeForce GT 750M] [10de:0fe4] (rev a1) (prog-if 00 [VGA controller])
    Subsystem: Dell Device [1028:05a9]
    Flags: bus master, fast devsel, latency 0, IRQ 7
    Memory at d0000000 (32-bit, non-prefetchable) [size=16M]
    Memory at a0000000 (64-bit, prefetchable) [size=256M]
    Memory at b0000000 (64-bit, prefetchable) [size=32M]
    I/O ports at 4000 [disabled] [size=128]
    Expansion ROM at b2000000 [disabled] [size=512K]
    Capabilities: [60] Power Management version 3
    Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [78] Express Endpoint, MSI 00
    Capabilities: [b4] Vendor Specific Information: Len=14
    Capabilities: [100] Virtual Channel

根据http://www.nvidia.com/download/driverResults.aspx/114708/en-us

Linux x64 (AMD64/EM64T) Display Driver 
Version:    375.39
Release Date:   2017.2.14
Operating System:   Linux 64-bit
Language:   English (US)
File Size:  73.68 MB

我应该使用驱动程序版本 375.39。它支持以下卡:

GeForce 700M Series (Notebooks):
GeForce GTX 780M, GeForce GTX 770M, GeForce GTX 765M, GeForce GTX 760M, GeForce GT 755M, [b]GeForce GT 750M[/b], GeForce GT 745M, GeForce GT 740M, GeForce GT 735M, GeForce GT 730M, GeForce GT 720M, GeForce GT 710M, GeForce 720M, GeForce 710M, GeForce 705M

下列的本教程:我不会从网站下载安装程序。相反,我会使用 PPA。

由于根据教程,xorg-edgers PPA 提供了最新的 NVIDIA 驱动程序,因此我运行了以下命令进行设置:

$ sudo add-apt-repository ppa:xorg-edgers/ppa -y
gpg: keyring `/tmp/tmpikxws_oj/secring.gpg' created
gpg: keyring `/tmp/tmpikxws_oj/pubring.gpg' created
gpg: requesting key 8844C542 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpikxws_oj/trustdb.gpg: trustdb created
gpg: key 8844C542: public key "Launchpad PPA for xorg crack pushers" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK
$ sudo apt-get update
Hit http://ppa.launchpad.net trusty InRelease
Ign http://us.archive.ubuntu.com trusty InRelease                              
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main armhf Packages           
Hit http://us.archive.ubuntu.com trusty-security InRelease         
Hit http://ppa.launchpad.net trusty/main i386 Packages                   
Hit http://ppa.launchpad.net trusty/main Translation-en            
Hit http://us.archive.ubuntu.com trusty-updates InRelease
Get:1 http://us.archive.ubuntu.com trusty-proposed InRelease [65.9 kB]      
Hit http://us.archive.ubuntu.com trusty-backports InRelease
Hit http://us.archive.ubuntu.com trusty Release.gpg
Hit http://us.archive.ubuntu.com trusty-security/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-security/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty-security/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-security/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty-security/main Translation-en
Hit http://us.archive.ubuntu.com trusty-security/universe Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty-updates/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://us.archive.ubuntu.com trusty-updates/universe Translation-en
Get:2 http://us.archive.ubuntu.com trusty-proposed/main amd64 Packages [90.8 kB]
Get:3 http://us.archive.ubuntu.com trusty-proposed/universe amd64 Packages [13.5 kB]
Get:4 http://us.archive.ubuntu.com trusty-proposed/main i386 Packages [88.6 kB]
Get:5 http://us.archive.ubuntu.com trusty-proposed/universe i386 Packages [13.5 kB]
Get:6 http://us.archive.ubuntu.com trusty-proposed/main Translation-en [28.4 kB]
Get:7 http://us.archive.ubuntu.com trusty-proposed/universe Translation-en [10.8 kB]
Hit http://us.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://us.archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://us.archive.ubuntu.com trusty Release   
Hit http://us.archive.ubuntu.com trusty/main Sources
Hit http://us.archive.ubuntu.com trusty/universe Sources                       
Hit http://us.archive.ubuntu.com trusty/main amd64 Packages                    
Hit http://us.archive.ubuntu.com trusty/universe amd64 Packages                
Hit http://us.archive.ubuntu.com trusty/main i386 Packages                     
Hit http://us.archive.ubuntu.com trusty/universe i386 Packages                 
Hit http://us.archive.ubuntu.com trusty/main Translation-en                    
Hit http://us.archive.ubuntu.com trusty/universe Translation-en                
Err http://us.archive.ubuntu.com trusty-security/main armhf Packages           
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-security/universe armhf Packages       
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-updates/main armhf Packages            
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-updates/universe armhf Packages        
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-proposed/main armhf Packages           
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-proposed/universe armhf Packages       
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-backports/main armhf Packages          
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty-backports/universe armhf Packages      
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty/main armhf Packages                    
  404  Not Found [IP: 91.189.91.23 80]
Err http://us.archive.ubuntu.com trusty/universe armhf Packages                
  404  Not Found [IP: 91.189.91.23 80]
Ign http://us.archive.ubuntu.com trusty/main Translation-en_US                 
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US             
Fetched 312 kB in 9s (32.1 kB/s)                                               
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-security/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-security/universe/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-updates/universe/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-proposed/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-proposed/universe/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-backports/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-backports/universe/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty/universe/binary-armhf/Packages  404  Not Found [IP: 91.189.91.23 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

第一个问题:为什么我的源文件中已包含的一些 URL 会产生这些错误?

第二个问题:在“软件和更新”选项卡的“附加驱动程序”部分(运行 sudo software-properties-gtk 时),现在应该列出附加驱动程序,但没有列出...为什么?这与第一个问题有关吗?

此时,我相信我应该看到列出的驱动程序,然后再尝试采用其他方法安装驱动程序:

# Install 375 driver
$ sudo apt-get install nvidia-375

对解决上述两个问题有什么帮助吗?

第一个问题的更新

跑步:

dpkg --print-foreign-architectures

显示 armhf 架构被包含在外来架构中。我已通过以下方式将其删除:

sudo dpkg --remove-architecture armhf

执行此操作后,我删除了原始的 sources.list 文件,并用如下所示的文件替换(let <codename> = trusty):

deb http://archive.ubuntu.com/ubuntu <codename> main multiverse universe restricted
deb http://archive.ubuntu.com/ubuntu <codename>-security main multiverse universe restricted

(在此分享:https://askubuntu.com/a/586601/273254)。这样做,修复了存储库失败的问题。我的更新输出现在很干净:

$ sudo dpkg --remove-architecture armhf
ejspeiro@Eduardo-Alienware-14:/etc/apt$ sudo apt-get update
Ign http://us.archive.ubuntu.com trusty InRelease
Hit http://us.archive.ubuntu.com trusty-security InRelease
Hit http://us.archive.ubuntu.com trusty Release.gpg
Hit http://us.archive.ubuntu.com trusty-security/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty-security/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty-security/main i386 Packages
Hit http://us.archive.ubuntu.com trusty-security/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty-security/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty-security/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty-security/main Translation-en
Hit http://us.archive.ubuntu.com trusty-security/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty-security/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty-security/universe Translation-en
Hit http://us.archive.ubuntu.com trusty Release   
Hit http://us.archive.ubuntu.com trusty/main amd64 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://us.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://us.archive.ubuntu.com trusty/main i386 Packages
Hit http://us.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://us.archive.ubuntu.com trusty/universe i386 Packages
Hit http://us.archive.ubuntu.com trusty/restricted i386 Packages
Hit http://us.archive.ubuntu.com trusty/main Translation-en
Hit http://us.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://us.archive.ubuntu.com trusty/restricted Translation-en
Hit http://us.archive.ubuntu.com trusty/universe Translation-en
Ign http://us.archive.ubuntu.com trusty/main Translation-en_US
Ign http://us.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://us.archive.ubuntu.com trusty/universe Translation-en_US
Reading package lists... Done

相关内容