[SRU] Make add-nvidia-repositories available in jammy and noble

Bug #2089830 reported by Tomáš Virtus
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
add-nvidia-repositories (Ubuntu)
New
Undecided
Unassigned

Bug Description

[ Impact ]

 * add-nvidia-repositories is a convenience tool for enabling NVIDIA repositories. It's targeted primarily to users who need to use NVIDIA CUDA and other libraries for artificial intelligence / machine learning / GPU compute tasks. It is our understanding that majority of these users prefer to run on stable releases and hence access to this package would be beneficial for them. It is more convenient for Ubuntu users to enable NVIDIA repositories by running "sudo apt-get install add-nvidia-repositories && sudo add-nvidia-repositories" then by following the official instructions (https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#network-repo-installation-for-ubuntu).

[ Test Plan ]

 * This is a NEW package.

 * Scenario 1 (jammy/noble):

   1. Install the package with

      sudo apt-get install add-nvidia-repositories

      The package is available in plucky. You might install it from there.

   2. Run the tool

      sudo add-nvidia-repositories

   3. Verify that the command displays a warning and waits for user acknowledgment.

   4. Acknowledge the prompt by typing "Y" followed by Return

   5. Verify that the tool exited successfully by checking that $? variable is 0

   6. Verify that the cuda-toolkit package is available:

      $ apt-get show cuda-toolkit

      Package: cuda-toolkit
      Version: 12.6.3-1
      Priority: optional
      Section: multiverse/devel
      Maintainer: cudatools <email address hidden>
      Installed-Size: 9216 B
      Depends: cuda-toolkit-12-6 (>= 12.6.3)
      Download-Size: 2726 B
      APT-Sources: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64 Packages
      Description: CUDA Toolkit meta-package
        Meta-package containing all the available toolkit packages related to native
        CUDA development. Contains the toolkit, samples, and documentation.
        This meta package will install CUDA Toolkit version 12.5
        and allows you to upgrade to next release.

 * Scenario 2 (jammy/noble):

   1. Do the step 1 from Scenario 1

   2. Run the tool in non-interactive mode

      sudo add-nvidia-repositories -y

   3. Verify that the command displays a warning and finishes successfully

   4. Do the step 6 from Scenario 1

 * Scenario 3 (jammy/noble):

   1. Do the step 1 from Scenario 1

   2. Display the tool help

      add-nvidia-repositories -h

   3. Verify that the usage and part of the warning is displayed as from the output in step 3 in Scenario 1

[ Where problems could occur ]

 * This is a NEW package and therefore there's no potential for regression in this specific package.

 * The package only places a new executable at /usr/bin/add-nvidia-repositories

 * The package may appear as an additional package in available package lists, and some "security" scanners may report it as a change

 * The package installs a tool that must be run with superuser privileges and therefore bugs in it can have serious consequences. If there is a security bug and the tool is invoked with superuser privileges by incident or by tricking the system into it, the bug could be exploited.

[ Other Info ]

 * The tool is currently included in non-packaged form in some cloud images produced by https://launchpad.net/~cloud-images team. It has been tested on these clouds.

summary: - [SRU] Make add-nvidia-repositories available in noble
+ [SRU] Make add-nvidia-repositories available in jammy and noble
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.