ubuntu16.04 install CUDA, unable to locate package issues

Source: Internet
Author: User

In order to learn deep learning, these days in the installation of deep learning framework, CUDA installation is not able to locate the package problem. CUDA official website is available in the Deb and run format, today only the Deb format installation package installation process issues.

Following the official tutorial, download the Cuda deb package and use

sudo dpkg-i  xxx.debsudo  apt updatesudoinstall Cuda

Run can, at first did not understand, installed cuda9.1, found that the version is too high, and then re-download cuda8.0, but according to the above steps to install the installation is 9.0 version, in fact, when the sudo apt update can be seen, There are cuda9.0 and 8.0 of the installation source, as if the system automatically download 9.0, so I in the system Setup to remove 9.0 of the installation source

Later forget the reason for the consideration of 8.0 of the download source has also been deleted, because Dpkg-i will be added by default after the update source, but then the problem arose, after the implementation of Dpkg-i, update the software source, has not been added Cuda download source into, a moment at a loss, do not know what causes, Once suspected Cuda Deb package has a problem, but these days began the Nvidia official website is restricted access, a little download on the note that it is not in the domestic notes, no way to download an installation package, online search a variety of methods have no way to solve, finally really did not recruit. Most of the methods available online are to let sudo apt update update the download source, or to update the system download source, because Cuda is not downloaded from the system source, Deb is an offline version of the installation, for me no use, my problem is that the local download source is not loaded.

Ready to abandon the use of the GPU version of the framework, suddenly thought that since I can delete cuda download source, that can also add, now the problem is update source how to find, the beginning of all kinds of search on the internet has no results, and then think of Deb package since can provide download source, there should be a download source address, then manually unzip the Deb package It's the extracted file.

So in the file, a search, and finally in data.tar.gz after the decompression file data/etc/apt/sources.list.d found the download source

Open it

Copy inside the content to add to the update source, by clicking on the Add, paste, and finally click Add Source.

Next

sudo apt Update sudo Install Cuda

You can install it properly.

ubuntu16.04 Install CUDA, unable to locate package issues

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.