# System Upgrade

**Ugrade all installed packages**

```bash
sudo apt-get update
sudo apt-get upgrade -y
```

**Reboot**

```bash
sudo reboot
```

**Remove unused packages and old kernel versions**

```bash
sudo apt --purge autoremove
```

**Install Ubuntu update tool**

```bash
sudo apt install update-manager-core
```

**Start Upgrade**

```bash
sudo do-release-upgrade
```

***Note:*** If it shows `There is no development version of an LTS available.`, run `sudo do-release-upgrade -d`

**System Restart**

```bash
sudo reboot
```

**Verify Distro**

```bash
lsb_release -a
```

**Enabled disabled 3rd party repo**

While upgrading distro 3rd party repositories can be disabled by Ubuntu for system stability, and these can be enabled again by looking into `/etc/apt/sources.list` file.

***Source:*** [***CyberCiti***](https://www.cyberciti.biz/faq/upgrade-ubuntu-18-04-to-20-04-lts-using-command-line/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://til.devjugal.com/linux/system-upgrade.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
