Установим Ubuntu Release Upgrader на старую систему.

Подключитесь к старому экземпляру Ubuntu.

$ ssh example.org -l mgmt
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
Last login: Wed Apr 27 16:25:14 2022 from 137.11.134.19

Проверим детали операционной системы.

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.4 LTS
Release:	20.04
Codename:	focal

Попробуйте проверить, доступен ли новый выпуск дистрибутива, чтобы определить, что Ubuntu Release Upgrader не установлен.

$ do-release-upgrade --check-dist-upgrade-only --devel-release
-bash: do-release-upgrade: command not found

Установим пакет ubuntu-release-upgrader-core.

$ sudo apt install ubuntu-release-upgrader-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  iso-codes python-apt-common python3-apt python3-distro-info python3-distupgrade python3-update-manager
Suggested packages:
  isoquery python3-apt-dbg python-apt-doc python3-launchpadlib
The following NEW packages will be installed:
  iso-codes python-apt-common python3-apt python3-distro-info python3-distupgrade python3-update-manager ubuntu-release-upgrader-core
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 3038 kB of archives.
After this operation, 22.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 iso-codes all 4.4-1 [2695 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python-apt-common all 2.0.0ubuntu0.20.04.7 [17.1 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-apt amd64 2.0.0ubuntu0.20.04.7 [154 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/main amd64 python3-distro-info all 0.23ubuntu1 [5924 B]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-update-manager all 1:20.04.10.10 [38.1 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-distupgrade all 1:20.04.38 [104 kB]

Посмотрим имеющиеся релизы.

$ do-release-upgrade --check-dist-upgrade-only --devel-release
Checking for a new Ubuntu release
New release '22.04' available.
Run 'do-release-upgrade' to upgrade to it.
$ do-release-upgrade --check-dist-upgrade-only
Checking for a new Ubuntu release
New release '21.10' available.
Run 'do-release-upgrade' to upgrade to it.

Начните обновление релиза.

$ sudo do-release-upgrade --devel-release

Дополнительные примечания

Ubuntu Release Upgrader требует интерфейса Python 3 для D-Bus, который может отсутствовать в данном случае.

ModuleNotFoundError: No module named 'dbus'

Установите пакет python3-dbus и повторите операцию.

$ sudo apt-get install python3-dbus

 

Поделитесь статьей:

Добавить комментарий