无法安装nvidia驱动程序-无法找到软件包


15

[更新] 我可以使用以下命令很好地安装375驱动程序

sudo apt-get install nvidia-375

但是下面的问题仍然存在381。[/ Update]

因此,昨晚我决定按照我在网上找到的一些步骤,将我的nvidia驱动程序更新为381。这是我遵循的步骤:

sudo apt-get purge nvidia*
sudo add-apt-repository ppa:graphics-drivers
sudo apt-get update
sudo apt-get install nvidia-381

每当我获得“ sudo apt-get install nvidia-381”命令时,我都会收到“无法找到软件包nvidia-381”

我到处搜索,找不到解决方案。有任何想法吗?

这是我的输出:

tyler@tyler-ubuntu:~$ sudo add-apt-repository ppa:graphics-drivers/ppa
 Fresh drivers from upstream, currently shipping Nvidia.

## Current Status

Current official release: `nvidia-381` (381.22)
Current long-lived branch release: `nvidia-375` (375.66)

For G8x, G9x and GT2xx GPUs use `nvidia-340` (340.102)
For NV4x and G7x GPUs use `nvidia-304` (304.135)

Support timeframes for Unix legacy GPU releases:
https://nvidia.custhelp.com/app/answers/detail/a_id/3142

## What we're working on right now:

- Normal driver updates
- Help Wanted: Mesa Updates for Intel/AMD users, ping us if you want to help do this work, we're shorthanded.

## WARNINGS:

This PPA is currently in testing, you should be experienced with packaging before you dive in here:

Volunteers welcome! See also: https://github.com/mamarley/nvidia-graphics-drivers/

### How you can help:

## Install PTS and benchmark your gear:

    sudo apt-get install phoronix-test-suite

Run the benchmark:

    phoronix-test-suite default-benchmark openarena xonotic tesseract gputest unigine-valley

and then say yes when it asks you to submit your results to openbechmarking.org. Then grab a cup of coffee, it takes a bit for the benchmarks to run. Depending on the version of Ubuntu you're using it might preferable for you to grabs PTS from upstream directly: http://www.phoronix-test-suite.com/?k=downloads

## Share your results with the community:

Post a link to your results (or any other feedback to): https://launchpad.net/~graphics-drivers-testers

Remember to rerun and resubmit the benchmarks after driver upgrades, this will allow us to gather a bunch of data on performance that we can share with everybody.

If you run into old documentation referring to other PPAs, you can help us by consolidating references to this PPA.

If someone wants to go ahead and start prototyping on `software-properties-gtk` on what the GUI should look like, please start hacking!

## Help us Help You!

We use the donation funds to get the developers hardware to test and upload these drivers, please consider donating to the "community" slider on the donation page if you're loving this PPA:

http://www.ubuntu.com/download/desktop/contribute
 More info: https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keybox '/tmp/tmpf35j9cfi/pubring.gpg' created
gpg: /tmp/tmpf35j9cfi/trustdb.gpg: trustdb created
gpg: key FCAE110B1118213C: public key "Launchpad PPA for Graphics Drivers Team" imported
gpg: Total number processed: 1
gpg:               imported: 1
OK
tyler@tyler-ubuntu:~$ sudo apt-get update
Hit:1 http://repo.steampowered.com/steam precise InRelease
Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit:3 http://packages.microsoft.com/repos/vscode stable InRelease              
Hit:4 http://us.archive.ubuntu.com/ubuntu zesty InRelease                      
Hit:5 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu zesty InRelease     
Hit:6 http://dl.google.com/linux/chrome/deb stable Release                     
Get:7 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB]     
Hit:8 http://us.archive.ubuntu.com/ubuntu zesty-updates InRelease              
Get:9 http://us.archive.ubuntu.com/ubuntu zesty-backports InRelease [89.2 kB]  
Hit:10 http://ppa.launchpad.net/noobslab/macbuntu/ubuntu zesty InRelease       
Hit:11 http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu zesty InRelease         
Fetched 178 kB in 0s (204 kB/s)                                                
Reading package lists... Done
tyler@tyler-ubuntu:~$ sudo apt-get install nvidia-381
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package nvidia-381

附加输出:

tyler@tyler-ubuntu:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.04
DISTRIB_CODENAME=zesty
DISTRIB_DESCRIPTION="Ubuntu 17.04"
tyler@tyler-ubuntu:~$ apt-cache policy nvidia-381
N: Unable to locate package nvidia-381

删除xorg edgers ppa,它可能会发生冲突?只是个猜测
马克·柯比

@MarkKirby我不认为他们有冲突。无论如何,应该找到包装。
飞行员

那其他包呢?你还能安装其他东西吗?
飞行员

是的,我刚刚安装了kdenlive进行测试,并且安装正常。
泰勒·布雷迪

Answers:


34

由于这是Google在该主题上排名最高的返回搜索,因此我想发布此信息,因为似乎情况已经改变。

将不是一个新鲜的Ubuntu桌面18.0.4安装后为我工作:

sudo apt install nvidia-396

sudo apt install nvidia-driver-396

不知道为什么语法会更改。有关在网络上安装Nvidia驱动程序的大量信息,令人困惑。浪费了太多时间!


3
经过数小时试图追踪其他页面上有冲突,不正确或不完整的信息,这终于对我有用(我使用410,而不是396)。
Grant Petty

1
这就是我现在得到的..Unable to locate package nvidia-driver-396
zwep

@zwep您可能已解决此问题,但如果没有解决,请尝试sudo apt install nvidia-396代替sudo apt install nvidia-driver-396
dearN

3
这对我有用nvidia-driver-418
鲍里斯(Boris)

3

问题解决了。

在软件和更新>其他软件中验证我的PPA时,我注意到图形驱动程序PPA在PPA列表中列出了几次。我删除了所有与图形驱动程序有关的PPA,并从头开始安装,最后找到并安装了nvidia-381驱动程序。

我不确定为什么该存储库被列出了很多次,但是在删除并再次进行安装后,它终于可以正常工作了。


谢谢,有同样的问题[也不知道为什么会有很多类似的代表...]
S12000

2

第二个命令是错误的。它应该是:

sudo add-apt-repository ppa:graphics-drivers/ppa

1
进行此更改后,我仍然收到“无法定位软件包nvidia-381”。
泰勒·布雷迪

您阅读终端输出的内容吗?是否有任何错误消息?我建议将第二个和第三个命令的输出发布到您的问题中。
飞行员

从我所看到的没有错误消息。我已将输出添加到原始帖子。
泰勒·布雷迪

1
不起作用。我仍然遇到错误。
Aerin

0

sudo apt install nvidia-396

对于GeForce 8和9系列GPU使用 nvidia-340

对于GeForce 6和7系列GPU使用 nvidia-304


-1

如果您查看ppa,则该程序包称为“ nvidia-graphics-drivers-381”

https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa/+packages

sudo apt-get install nvidia-graphics-drivers-381

1
nvidia-381如果您看起来更小心,那里。我检查并为我安装。
飞行员

@ Pilot6林克?
豹”


而且没有nvidia-graphics-drivers-381deb。因此该命令是错误的。下注。
飞行员

查看包装的详细信息,您将看到。这有点令人困惑。
飞行员
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.