Оглавление
Задача обновить Debian 11 до Debian 12
Подготовка
Перед обновлением не забыть сохранить нужные файлы, файлы конфигураций сервисов. Еще лучше, сделать бэкап сервера, чтобы можно было из него достать необходимые файлы, так как при обновлении пакеты приложений также обновятся и настроенные конфигурации могут слететь.
Обновление
Обновляем текущую версию Debian до актуального состояния:
apt update && apt upgrade -y
apt full-upgrade
reboot
В /etc/apt/sources.list меняем название выпуска на новый, в нашем случае меняем bullseye на bookworm (обновление Debian 11 до Debian 12):
# deb cdrom:[Debian GNU/Linux 11.2.0 _bookworm_ - Official amd64 NETINST 20211218-11:12]/ bookworm main
#deb cdrom:[Debian GNU/Linux 11.2.0 _bookworm_ - Official amd64 NETINST 20211218-11:12]/ bookworm main
deb http://deb.debian.org/debian/ bookworm main
deb-src http://deb.debian.org/debian/ bookworm main
deb http://security.debian.org/debian-security bookworm-security main
deb-src http://security.debian.org/debian-security bookworm-security main
# bookworm-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ bookworm-updates main
deb-src http://deb.debian.org/debian/ bookworm-updates main
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
И повторяем процесс обновления:
apt update && apt upgrade -y
apt full-upgrade
reboot
После команда удаления ненужных пакетов:
apt --purge autoremove