> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/os/linux/install-update-guides/update-debian-10-buster-to-debian-11-bullseye.md).

# Update Debian 10 (buster) to Debian 11 (bullseye)

### 1. Check version

```bash
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
```

### 2. Update and upgrade

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

### 3. Distro upgrade

```bash
sudo apt dist-upgrade
```

### 4. Update Package repos

Replace with sed distro name

```bash
sudo sed -i 's/buster/bullseye/g' /etc/apt/sources.list
```

Update debian-security lines in `/etc/apt/sources.list`

```bash
## Locate these:
deb http://security.debian.org/debian-security bullseye/updates main
deb-src http://security.debian.org/debian-security bullseye/updates main

## Replace with these:
deb https://deb.debian.org/debian-security bullseye-security main contrib
deb-src https://deb.debian.org/debian-security bullseye-security main contrib
```

Final list should look like this:

```bash
deb http://deb.debian.org/debian bullseye main
deb-src http://deb.debian.org/debian bullseye main
deb https://deb.debian.org/debian-security bullseye-security main contrib
deb-src https://deb.debian.org/debian-security bullseye-security main contrib
deb http://deb.debian.org/debian bullseye-updates main
deb-src http://deb.debian.org/debian bullseye-updates main
deb http://deb.debian.org/debian bullseye-backports main
deb-src http://deb.debian.org/debian bullseye-backports main
```

Update repos:

```bash
sudo apt update
```

### 5. Perform minimal system upgrade

```bash
sudo apt upgrade --without-new-pkgs
```

Press yes on prompt:&#x20;

### 6. Perform full upgrade to Deb11

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

Press `keep current version`&#x20;

### 7. reboot and check version

```bash
reboot
cat /etc/os-release
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.arkannis.net/os/linux/install-update-guides/update-debian-10-buster-to-debian-11-bullseye.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
