Skip to content

Fix repository base url of Ubuntu. #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 3, 2021

Conversation

ohsawa0515
Copy link
Contributor

@ohsawa0515 ohsawa0515 commented Aug 30, 2021

Environment:

  • Ubuntu 20.04 LTS
  • Ansible 2.11.4
  • ansible-role-nvidia-driver: v2.0.1

When nvidia_driver_ubuntu_install_from_cuda_repo is yes, I got the following error:

Playbook

- name: Install NVIDIA Driver
  hosts: hogehoge

  roles:
    - role: nvidia.nvidia_driver
      tags: "nvidia"
      vars:
        - nvidia_driver_ubuntu_install_from_cuda_repo: yes
        - nvidia_driver_package_version: "465.19.01-1"
        - nvidia_driver_skip_reboot: yes

Error

TASK [nvidia.nvidia_driver : add repo] ****************************************************************************************************
fatal: [hogehoge]: FAILED! => changed=false 
  msg: 'Failed to update apt cache: E:Failed to fetch https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/by-hash/SHA256/751939d95516afc289908a19e447f0acc1506367f72ed356431a2b1a469cc8ca  404  Not Found [IP: 152.199.39.144 443], E:Some index files failed to download. They have been ignored, or old ones used instead.'

On the NVIDIA official page, the URL is HTTPS, but before modification it is HTTP.

https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=deb_network

@ajdecon
Copy link
Collaborator

ajdecon commented Sep 1, 2021

@ohsawa0515 : Thanks for this PR, this looks good to me!

Before I merge, can you please add a Signed-off-by line to your commit? See https://github.com/NVIDIA/deepops/blob/master/CONTRIBUTING.md for our contributing guide.

ajdecon
ajdecon previously approved these changes Sep 1, 2021
Signed-off-by: Shuichi Ohsawa <ohsawa0515@gmail.com>
@ajdecon ajdecon merged commit ff4dc29 into NVIDIA:master Sep 3, 2021
@ohsawa0515 ohsawa0515 deleted the fix_ubuntu_cuda_repo_baseurl branch February 27, 2022 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants