> This page is for version 8.1.0.
> For other versions, use one of these documentation indexes:
> - 8.1.1 (default): https://docs.nvidia.com/baseos/dgx-os-8-user-guide/8.1.1/llms.txt
> - 8.1.0: https://docs.nvidia.com/baseos/dgx-os-8-user-guide/8.1.0/llms.txt
> - 8.0.0: https://docs.nvidia.com/baseos/dgx-os-8-user-guide/8.0.0/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/baseos/dgx-os-8-user-guide/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/baseos/dgx-os-8-user-guide/_mcp/server.

# Upgrading the OS

This section provides information about upgrading an existing DGX OS with updates
from NVIDIA and Ubuntu within a release or to upgrade an existing installation.

To reimage the system with DGX OS to a default state, refer to
[Reimaging the System](/baseos/dgx-os-8-user-guide/8.1.0/reimaging-the-system).

> **Important**
>
> Before you upgrade a system or any installed software, always consult the
> [Release Notes](/baseos/dgx-os-8-user-guide/8.1.0/release-notes) for the latest information about available upgrades. You
> can find out more about the release cadence and release methods for DGX OS in
> [Release Guidance](/baseos/dgx-os-8-user-guide/8.1.0/release-guidance).
>
> This release incorporates the following updates:
>
> * Ubuntu ConnectX drivers and DOCA-OFED stack
>
> * Consider these updates and any effect they can have on your applications.
>
> * Upgrade select systems and verify that your applications work as expected before deploying on additional systems.

## Upgrade Options

The following information describes the differences between different types of upgrades:

* **Release upgrades**

  DGX OS 8.1.0 does not support upgrades from Ubuntu 24.04 to Ubuntu 26.04.

  > **Note**
  >
  > An upgrade path from DGX OS 7.x to DGX OS 8.1.0 is not supported.

* **BaseOS software upgrades**

  The GPU driver, CUDA Toolkit, and DOCA components are updated only as part of a
  supported BaseOS release. Refer to [Upgrading the BaseOS software](/baseos/dgx-os-8-user-guide/8.1.0/upgrading-the-os#upgrading-the-baseos-software) for upgrade instructions.

* **Package upgrades**

  When you perform package upgrades, you want to install upgrades that are
  available in the repositories since the initial DGX OS 8 release.
  The repositories are periodically updated with packages that include bug
  fixes and security updates. The NVIDIA repository also includes packages with
  new features that are available with the latest DGX OS minor version release.
  Refer to [Performing Package Upgrades](/baseos/dgx-os-8-user-guide/8.1.0/upgrading-the-os#performing-package-upgrades) for instructions.

Upgrades are cumulative, meaning your systems install all
available upgrades, including upgrades available from Ubuntu, such as the
kernel. Performing upgrades installs the latest versions available at the
time when the upgrade is performed. **These can be newer than the current DGX OS
release**.

> **Important**
>
> The instructions in this chapter upgrade all software for
> which updates are available from your configured software sources,
> including applications that you installed yourself.
> To prevent an application from being upgraded, you can instruct the
> Ubuntu package manager to keep the current version.
>
> For more information, refer to the Ubuntu `apt-mark` manual: [Introduction to Holding Packages](https://manpages.ubuntu.com/manpages/resolute/man8/apt-mark.8.html).
> Do not hold packages unless necessary, because holding packages can disrupt
> package dependencies.

## Upgrading the BaseOS software

The GPU driver, CUDA Toolkit, and DOCA components are updated only as part of
a supported BaseOS release.  Refer to [Upgrading BaseOS Using the CLI](https://docs.nvidia.com/dgx/baseos-9-user-guide/latest/upgrading-baseos-using-cli.html)
for upgrading the BaseOS release.

## Performing Package Upgrades

NVIDIA and Canonical provide updates to the OS in the form of updated software
packages between releases with security mitigations and bug fixes.
Evaluate the available updates at regular intervals and update the system
based on the threat level.

### Enabling Expanded Security Maintenance Upgrades

This section describes Ubuntu [Expanded Security Maintenance](https://ubuntu.com/security/esm) (ESM).

As a DGX OS customer, you are entitled to Expanded Security Maintenance updates from the
Ubuntu Universe repository.

The following Ubuntu Pro message from `ubuntu-advantage-tools` can appear
during an `apt upgrade` if security updates are available for packages from
the Ubuntu Universe repository:

```text
Get more security updates through Ubuntu Pro with 'esm-apps' enabled.
Learn more about Ubuntu Pro at https://ubuntu.com/pro.
```

In addition, you also get the following NVIDIA message:

```text
Your DGX contract entitles you to Extended Security Maintenance updates
for additional packages in the Ubuntu repository. Please
contact NVIDIA Support to get your key to enable this capability.”
```

After contacting [NVIDIA Enterprise Support](/baseos/dgx-os-8-user-guide/8.1.0#nvidia-enterprise-support) to obtain an Ubuntu Pro token,
you can use the token with the following command to enable Expanded Security
Maintenance updates:

```bash
sudo pro attach XXXXX
```

You can check the Ubuntu Pro subscription with the `sudo pro status` command:

```bash
sudo pro status
```

### Renewing Expanded Security Maintenance

The Ubuntu Pro Client does not automatically update the Ubuntu Pro subscription for token expiration.
If your Ubuntu Pro token expires, refresh the token on the DGX system to renew the Expanded Security
Maintenance subscription.

To refresh the Ubuntu Pro token:

```bash
sudo pro refresh
```

To check the new expiration date or the status of ESM:

```bash
sudo pro status
```

### Performing Package Upgrades Using the CLI

Evaluate the available updates at regular intervals and update the
system based on the threat level:

* Refer to the [Ubuntu package management documentation](https://ubuntu.com/server/docs/how-to/software/package-management/) for more information about
  upgrades available for Ubuntu.

* For a list of the known Common Vulnerabilities and Exposures (CVEs),
  including those that can be resolved by updating the DGX OS software,
  refer to the [Ubuntu Security Notices](https://usn.ubuntu.com/)

If updates are available, you can obtain upgraded packages by completing the
following steps:

1. Update the internal database with the list of available packages and their
   versions.

   ```bash
   sudo apt update
   ```

> **Note**
>
> Before running `apt full-upgrade`, review
> [Upgrade Fails During Package Configuration](/baseos/dgx-os-8-user-guide/8.1.0/known-issues#upgrade-fails-during-package-configuration).

2. Review the packages that are upgraded.

   ```bash
   sudo apt full-upgrade -s
   ```

   To prevent an application from being upgraded, you can instruct the Ubuntu package
   manager to hold packages. Refer to [Holding Packages](https://manpages.ubuntu.com/manpages/resolute/man8/apt-mark.8.html).

   > **Note**
   >
   > Hold packages only in extremely rare cases, because holding packages can disrupt package dependencies.

3. Upgrade to the latest version.

   ```bash
   sudo apt full-upgrade
   ```

   When prompted to resolve an issue, answer any questions that appear. Most
   questions require a **Yes** or **No** response.

   * When prompted to select the GRUB configuration to use,
     select the current one on the system.

   * When prompted to select the GRUB install devices, keep the default
     selection.

   * The other questions depend on what other packages were
     installed before the update and how those packages interact with
     the update.

4. When the upgrade is complete, reboot the system.

   ```bash
   sudo reboot
   ```

> **Note**
>
> Upgrades to the NVIDIA Graphics Drivers for Linux require a restart to
> complete the kernel upgrade. If you upgrade the NVIDIA Graphics Drivers
> for Linux without restarting the DGX system, when you run the
> `nvidia-smi` command, an error message is displayed.
>
> ```bash
> nvidia-smi
> Failed to initialize NVML: Driver/library version mismatch
> ```