- Ubuntu Documentation
- Introduction
- Upgrade or fresh install?
- Note about hardware support
- Upgrading
- Update sources.list
- Dependencies
- Update-manager
- Desktop meta
- Kernel
- Run the upgrade
- Unsupported upgrades
- Known issues
- Instructions for specific upgrades
- Как обновить Ubuntu до 20.04
- Обновление Ubuntu до 20.04
- Шаг 1. Обновление дистрибутива
- Шаг 2. Настройка источников
- Шаг 3. Запуск менеджера обновлений
- Шаг 4. Примечания к выпуску
- Шаг 5. Подтверждение обновления
- Шаг 6. Настройка раскладки
- Шаг 7. Очистка ненужных пакетов
- Шаг 8. Перезагрузка
- Шаг 9. Вход
- Шаг 10. Готово
- Обновление Ubuntu Server до 20.04
- Выводы
- Ubuntu Documentation
- Introduction
- Before you upgrade
- Backup
- Disable automatic Power Management
- Release Notes
- Upgrade policy
- Upgrading Flash
- Network upgrades
- Desktop / GUI Upgrade
- Server / Command line Upgrade
- The Debian way of upgrading
- Upgrading to development releases
- Desktop / GUI Upgrade
- Server / Command line Upgrade
- See Also
Ubuntu Documentation
Introduction
This page will explain how to upgrade an End of Life (EOL) release of Ubuntu to a supported system. This guide is not limited to Ubuntu Desktop — it is suitable for any Ubuntu flavor.
For upgrading supported releases please refer to this document.
If you want to know whether your release is EOL please have a look at the following resources:
The release notes of an EOL release generally contains instructions to upgrade to a more recent version of ubuntu
These guides may assume that the user knows his way on the terminal, as graphical tools are not always used. This said, the steps for executing all the commands are actually copy/pasteable so everyone, from beginner to advanced user running EOL releases of Ubuntu can execute the upgrade(s).
In case of problems you should be aware that most (if not all) of the releases which are mentioned in this guide are unsupported, and getting help may be a bit tricky since most of us have already upgraded to a more recent version of Ubuntu. As always, take backups of your disks/partitions before upgrading.
Upgrade or fresh install?
The advantage of upgrading is that you get to keep your current configuration as is. This is often desirable on production environments which you want to keep as stable as possible. At the same time, configuration applicable for older versions might not always work with newer versions.
If you format partitions when installing a newer version, you have the option to select a new file system, which might have benefits and required features compared to the old one. The new installation also gives you a clean platform to start building your system from; no old configuration files and potential upgrade-related bugs.
Reinstalling is usually easier and faster, especially if you would have to upgrade through several releases. It might also help you save some bandwidth, if that is a concern.
Note about hardware support
It is not certain that every release of Ubuntu runs on the hardware in question. Regardless if you are upgrading or doing a new install, it is always a good start to try the new release in a live boot. A live Ubuntu runs from a CD or a USB stick, and it does not change the installation on the hard drive.
Upgrading
Note: Before you start, check if your upgrade path is listed in this list. If it is, it’s recommended to use the specific instructions on the appropriate subpage.
Update sources.list
To begin the upgrade, make sure you have a sources.list like the following, with CODENAME being your release, e.g. quantal.
You can use -backports and or -proposed if you want. For more information about repositories see this page.
Dependencies
You should also make sure some meta-packages are installed so the upgrade can continue without problems.
Update-manager
From version 6.06 and up you will need to install the update-manager and update-manager-core packages. Note: You don’t want to install the update-manager package on CLI-only servers.
For upgrading from an LTS release to a non-LTS release, make sure that the update manager is correctly configured to upgrade any release. This is not needed when upgrading from one LTS release to the next LTS release:
Desktop meta
If you run a particular desktop version, you might want to reinstall this package to resolve any issue with dependencies of that package. You can (re)install these -desktop packages before or after your upgrade.
To find out if you which desktop package you want to (re)install: dpkg -l | grep tu-desktop. Or search for one by running aptitude search tu-desktop. The correct commands to install a desktop metapackage is (in this example, we’re reinstalling the Kubuntu desktop):
Kernel
- 5.04: linux-image-386 and linux-headers-386
- 4.10: linux-image-386 and linux-kernel-headers
Run the upgrade
After you’ve done the above, run the updates and then the upgrade as usually:
Unsupported upgrades
Sometimes do-release-upgrade isn’t able to run the upgrade to the latest version and it shows an error similar to this:
If that happens, you need to download a version-specific upgrader, you can find the link at https://changelogs.ubuntu.com/meta-release.
You need to download the upgrade tool for the version you are upgrading to. For example, if you are upgrading to Ubuntu 20.04 (focal), you’ll see the link on that page as follows:
The download is an archive which contains an executable with the code name of the release. execute it to run the upgrade tool for that release. Note that the archive extracts everything in the current directory so you might want to create a directory for it to extract into:
This executable works the same as do-release-upgrade. If you still get the error of the upgrade not being supported, you might need to make an intermediate upgrade to an earlier version.
Known issues
Some issues are related to apt-get upgrade and dist-upgrade commands. If you get calculation errors when running do-release-upgrade you can resolve this issue by running do-release-upgrade -m desktop, or removing the ubuntu-desktop package. When aptitude is used there is no need for this.
If you run into individual dependency issues you need to resolve these individually. You can use sudo apt-get -f install for this. After resolving the issue, you can continue by running sudo ./feisty —frontend DistUpgradeViewTextm -mode=server; replace feisty with the release where you upgrade to.
Instructions for specific upgrades
Gutsy 7.10 to Hardy 8.04
- Mac users have reportedly had some difficulty upgrading around versions 7.04/7.10.
Источник
Как обновить Ubuntu до 20.04
Недавно вышла новая версия Ubuntu с длительным сроком поддержки — Ubuntu 20.04. Согласно информации на официальном сайте она будет получать обновления безопасности до 2025 года. В новой версии мы уже привычно получим обновление программного стека, новую версию Gnome и внешний вид.
Более подробно о том, что нового в Ubuntu 20.04 можно посмотреть в отдельной статье. А сегодня мы поговорим о том, как обновить Ubuntu до 20.04. Примечательно, что у вас нет необходимости ставить промежуточные версии 19.04 или 19.10. Если вы использовали LTS релиз 18.04, то можете обновится прямо с него. Процедура обновления мало чем отличается от предыдущих лет.
Обновление Ubuntu до 20.04
Шаг 1. Обновление дистрибутива
Первым делом необходимо обновить вашу текущую версию дистрибутива до самой свежей версии из репозиториев. Это необходимо, чтобы утилита обновления работала в максимально приближенных условиях к тем, в которых её создавали, и вы не получили никаких ошибок или проблем. Это можно сделать через терминал:
sudo apt update
sudo apt full-upgrade
Или же через графический интерфейс. Для этого откройте утилиту Обновление системы из главного меню:
Утилита найдёт обновления и предложит их установить. Вам достаточно согласиться и дождаться завершения установки:
Теперь можем обновить Ubuntu 18.04 до 20.04.
Шаг 2. Настройка источников
Чтобы обновиться именно до LTS, надо настроить источники обновлений. Для этого откройте утилиту Программы и обновления:
Здесь перейдите на вкладку Обновления и для пункта Уведомлять меня о выходе новой версии Ubuntu выберите При доступности первой с длительным сроком поддержки:
Шаг 3. Запуск менеджера обновлений
Запустите менеджер обновлений, выполнив команду update-manager в терминале:
update-manager -c -d
Утилита сообщит, что обнаружен новый выпуск Ubuntu 20.04. Для начала процесса обновления нажмите Обновить.
Шаг 4. Примечания к выпуску
Ознакомьтесь с примечаниями к выпуску и нажмите кнопку Обновить, чтобы начать:
Шаг 5. Подтверждение обновления
Дождитесь завершения загрузки установщика, а затем подтвердите обновление системы с помощью кнопки Обновить. После этого пути назад уже не будет.
Шаг 6. Настройка раскладки
В процессе обновления утилита предложит выбрать клавишу для переключения раскладки клавиатуры:
Шаг 7. Очистка ненужных пакетов
Затем система предложит очистить все ненужные пакеты, которые остались от старой установки:
Шаг 8. Перезагрузка
После завершения процесса перезагрузите компьютер, нажав кнопку Перезагрузить сейчас:
Шаг 9. Вход
После перезагрузки вас встретит уже новая система. Авторизуйтесь в ней с помощью вашего логина и пароля:
Шаг 10. Готово
Обновление Ubuntu 18.04 до 20.04 завершено, и вы можете посмотреть версию Ubuntu в настройках системы:
Обновление Ubuntu Server до 20.04
Процедура обновления Ubuntu Server в целом аналогичная версии для рабочего стола. Отличается только тем, что придётся выполнять все команды вручную и работать через терминал. Сначала обновите систему до самой новой версии:
sudo apt dist-upgrade -y
После завершения установки обновлений перезагрузите систему, чтобы все они начали действовать. Затем откройте файл /etc/update-manager/release-upgrades и убедитесь, что значение параметра конфигурации Prompt равняется lts:
sudo vi /etc/update-manager/release-upgrades
Затем запустите утилиту обновления:
sudo do-release-upgrade -d
Она заменит репозитории, загрузит и установит новый релиз Ubuntu на ваш сервер. Во время установки надо будет подтвердить само обновление, а также подтвердить очистку ненужных пакетов. В конце обновления потребуется перезагрузить сервер.
После перезагрузки вы можете посмотреть версию дистрибутива с помощью команды:
Выводы
В этой статье мы рассмотрели, как выполняется обновление ubuntu 19.10 до 20.04 или 18.04 до 20.04 на обычном компьютере или на сервере. Как видите, ничего сложного нет, однако перед обновлением следует сделать резервную копию важных данных. Как бы то ни было, но система, установленная заново, всегда работает стабильнее, чем обновленная, и шансов, что что-то пойдёт не так, намного меньше.
Источник
Ubuntu Documentation
Introduction
This page is a guide to upgrade supported releases of Ubuntu to other supported releases. For more information please refer to the UpgradeNotes.
To upgrade from unsupported releases of Ubuntu, see EOLUpgrades.
Before you upgrade
Backup
Please make sure you have a backup of your important data. For more on disk cloning, please see here.
Disable automatic Power Management
Ubuntu can be configured to automatically suspend and/or hibernate after a period of user inactivity. If Ubuntu is configured as such, the user starts a release upgrade, and leaves the computer unattended during the upgrade, then Ubuntu stops in the middle of the upgrade. This can causes issues, and in the worst case, cause a corrupt install. Therefore, before upgrading Ubuntu, disable any power management feature until the upgrade process is complete. In Ubuntu with Unity, you find this setting in the System Settings application, inside «Power».
Release Notes
Please read the release notes before upgrading. They contain important information for the task of installing a given release, or upgrading to it. For example, they document high-impact bugs and their workarounds.
Upgrade policy
Check the file /etc/update-manager/release-upgrades. Prompt=normal offers upgrades from any release to a newer release; Prompt=never never offers release upgrades; Prompt=lts only offers upgrades from LTS to LTS. You need root privileges to edit this file.
On the Update manager, click on Settings.
Select the Updates Tab
Where it says Release Upgrade, Show new distribution releases choose Normal Releases or LTS Releases
Upgrading Flash
If you want to upgrade flash, please add the following line to your sources.list:
This will make sure the adobe-flashplugin package will be upgraded.
Network upgrades
Desktop / GUI Upgrade
The simplest way to upgrade to a newer Ubuntu release is to start the Software Updater (update-manager). In Ubuntu with Unity:
- Open the Dash by hitting Super key on your keyboard. This may be done by either clicking the key between Ctrl and Alt that may have a Windows logo, or by clicking the Ubuntu logo in the upper left corner of the screen.
- Type «updater».
- Click the «Software Updater» icon under Applications.
If a release upgrade is available, the Upgrade button will be active. Click it to begin upgrading.
Server / Command line Upgrade
The Debian way of upgrading
Please be aware that while this method is valid, it is not supported by the Ubuntu developers. The ubuntu-release-upgrader package, which provides do-release-upgrade, is designed to handle quirks and transitions when moving between releases of Ubuntu.
Upgrading to development releases
Please be aware that development releases are unstable, and not suited for people who do not want to fix/report/triage bugs. If you want a stable Ubuntu version, stick to the official released versions. For added stability, choose a Ubuntu LTS release.
Desktop / GUI Upgrade
Server / Command line Upgrade
Beside the network upgrades you could upgrade to a development release via the Debian (manual) way. This is left as an exercise for the user.
See Also
UpgradeNotes — Upgrade notes for all Ubuntu releases
EOLUpgrades — Upgrade End-of-Life (unsupported) releases.
Upgrades (последним исправлял пользователь brian-murray 2018-05-16 20:57:08)
The material on this wiki is available under a free license, see Copyright / License for details
You can contribute to this wiki, see Wiki Guide for details
Источник