> ## Documentation Index
> Fetch the complete documentation index at: https://help.onetsolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Upgrade Ubuntu to Latest Version

> Upgrade your Ubuntu system to the latest LTS release

This guide walks you through upgrading your Ubuntu system to the latest version.

<Warning>
  **Before you begin:**

  * Backup all important data
  * Create a [snapshot](/vps/snapshot) of your VPS
  * Ensure you have console access in case of issues
</Warning>

## Pre-Upgrade Preparation

<Steps>
  <Step title="Check current version">
    ```bash theme={null}
    lsb_release -a
    ```
  </Step>

  <Step title="Update existing packages">
    ```bash theme={null}
    sudo apt update && sudo apt upgrade -y
    ```
  </Step>

  <Step title="Install update manager">
    ```bash theme={null}
    sudo apt install update-manager-core
    ```
  </Step>
</Steps>

## Upgrade Process

<Steps>
  <Step title="Start the upgrade">
    ```bash theme={null}
    sudo do-release-upgrade
    ```
  </Step>

  <Step title="Follow prompts">
    The upgrade tool will guide you through the process. Review and confirm package changes when prompted.
  </Step>

  <Step title="Reboot">
    When the upgrade completes:

    ```bash theme={null}
    sudo reboot
    ```
  </Step>

  <Step title="Verify upgrade">
    After rebooting, confirm the new version:

    ```bash theme={null}
    lsb_release -a
    ```
  </Step>
</Steps>

## Upgrade Options

<Accordion title="Upgrade to development release">
  To upgrade to a non-LTS or development release:

  ```bash theme={null}
  sudo do-release-upgrade -d
  ```
</Accordion>

<Accordion title="Force upgrade check">
  If no upgrade is found but you know one exists:

  ```bash theme={null}
  sudo do-release-upgrade -c
  ```
</Accordion>

## Post-Upgrade Steps

```bash theme={null}
# Remove obsolete packages
sudo apt autoremove

# Clean package cache
sudo apt clean
```

<Tip>
  Check the [Ubuntu release notes](https://ubuntu.com/download/server) for any version-specific considerations before upgrading.
</Tip>
