One place for hosting & domains

      Fossa

      Обновление до версии Ubuntu 20.04 Focal Fossa


      Введение

      23 апреля 2020 года была выпущена новейшая версия операционной системы Ubuntu с долгосрочной поддержкой (LTS) — Ubuntu 20.04 (Focal Fossa). В этом руководстве мы расскажем, как провести обновление системы Ubuntu версии 18.04 или выше до версии Ubuntu 20.04.

      Предупреждение. При каждом значительном обновлении версии операционной системы существует опасность неисправности, потери данных или нарушения конфигурации программного обеспечения. Настоятельно рекомендуется сделать полную резервную копию системы и провести тестирование в существенном объеме.

      Во избежание проблем мы рекомендуем перейти на новый сервер Ubuntu 20.04 вместо обновления существующей системы. При переходе могут потребоваться изменения конфигурации программного обеспечения, но основная операционная система будет более стабильной. Чтобы узнать больше о миграции серверов ознакомьтесь с нашей серией статей о переходе на новый сервер Linux.

      Предварительные требования

      Для целей этого руководства предполагается, что вы используете систему с операционной системой Ubuntu версии 18.04 или выше с пользователем sudo без привилегий root.

      Потенциальные сложности

      Хотя многие системы можно обновить без каких-либо проблем, для большей безопасности и предсказуемости часто бывает лучше установить дистрибутив с нуля, настроить службы с тщательным тестированием и выполить перенос приложений или пользовательских данных на отдельном шаге.

      Рабочую систему не следует обновлять без предварительного тестирования установленного программного обеспечения и служб в тестовой среде. Необходимо помнить, что библиотеки, языки и системные службы могли существенно измениться. Перед обновлением стоит почитать примечания к выпуску Focal Fossa.

      Шаг 1 – Резервное копирование системы

      Прежде чем проводить масштабное обновление любой системы, необходимо убедиться, что неполадки не приведут к потере данных. Для этой цели лучше всего сделать полную резервную копию файловой системы. Если это нецелесообразно, необходимо сделать копии домашних каталогов пользователей, пользовательских файлов конфигурации и данных, сохраненных различными службами, например реляционными базами данных.

      Если используется дроплет DigitalOcean, можно завершить работу системы и сделать моментальный снимок (при завершении работы файловая система становится более согласованной). Дополнительную информацию о процессе создания снимков можно найти в статье «Создание снимков дроплетов». Когда вы убедитесь, что обновление Ubuntu прошло успешно, вы можете удалить снимок, чтобы больше не платить за его хранение.

      Чтобы узнать о методах резервного копирования, которые подойдут для большинства систем Ubuntu, ознакомьтесь со статьей «Как выбрать эффективную стратегию резервного копирования для вашего VPS».

      Шаг 2 – Обновление установленных пакетов

      Перед обновлением версии безопаснее будет провести обновление версий всех пакетов для текущей версии ОС. Для начала обновите список пакетов:

      Затем обновите установленные пакеты до последних доступных версий:

      Вы увидите список обновлений, и вам будет предложено продолжить. Выберите y для подтверждения и нажмите Enter.

      Этот процесс может занять некоторое время. Когда он завершится, используйте команду dist-upgrade с apt-get, которая выполнит дополнительные обновления, связанные с изменением зависимостей, и в процессе будет добавлять или удалять новые пакеты по мере необходимости. Эта команда проведет обновления, которые могли быть задержаны на предыдущем шаге выполнения apt upgrade:

      Ответьте y, чтобы продолжить, и подождите, пока обновления не будут завершены.

      Вы обновили текущую версию Ubuntu и теперь можете использовать do-release-upgrade для перехода на версию 20.04.

      Шаг 3 – Обновление Ubuntu с помощью инструмента do-release-upgrade

      Для обновления версий Ubuntu традиционно нужно было изменить список Apt /etc/apt/sources.list, где указываются репозитории пакетов, и использовать apt-get dist-upgrade для самого обновления. Хотя этот процесс должен сработать и сейчас, в Ubuntu добавлен инструмент do-release-upgrade, делающий обновление более простым и безопасным.

      do-release-upgrade проверяет наличие новой версии, обновляет список sources.list и выполняет ряд других задач. Этот инструмент официально рекомендуется для обновления серверов, которое должно выполняться через удаленное подключение.

      Для начала запустите команду do-release-upgrade без опций:

      Если новая версия Ubuntu еще не выпущена официально, вы можете увидеть следующий результат:

      Output

      Checking for a new Ubuntu release No new release found

      Обратите внимание, что на сервере Ubuntu новый выпуск LTS остается недоступным для do-release-upgrade до выпуска первой версии с точкой, в данном случае 20.04.1. Обычно это происходит через несколько месяцев после первоначальной даты выпуска.

      Если вы не видите доступного выпуска, используйте опцию -d для обновления до выпуска на этапе разработки:

      • sudo do-release-upgrade -d

      Если вы подключены к системе через SSH, вам нужно будет указать, хотите ли вы продолжить. При работе с виртуальными машинами и управляемыми серверами следует учитывать опасность разрыва соединения SSH, особенно если у вас нет другого способа подключения к системной консоли (например, через веб-консоль).

      Для других ваших систем безопаснее выполнять существенные обновления операционной системы только при наличии непосредственного физического доступа к компьютеру.

      Введите в диалоге y и нажмите Enter, чтобы продолжить:

      Output

      Reading cache Checking package manager Continue running under SSH? This session appears to be running under ssh. It is not recommended to perform a upgrade over ssh currently because in case of failure it is harder to recover. If you continue, an additional ssh daemon will be started at port '1022'. Do you want to continue? Continue [yN]

      Вы получите сообщение, что do-release-upgrade запускает новый экземпляр sshd на порту 1022:

      Output

      Starting additional sshd To make recovery in case of failure easier, an additional sshd will be started on port '1022'. If anything goes wrong with the running ssh you can still connect to the additional one. If you run a firewall, you may need to temporarily open this port. As this is potentially dangerous it's not done automatically. You can open the port with e.g.: 'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT' To continue please press [ENTER]

      Нажмите Enter. Теперь вы можете получить предупреждение об отсутствии зеркальной записи. На системах DigitalOcean вы можете игнорировать это предупреждение и продолжать процедуру обновления, поскольку на самом деле локальное зеркало 20.04 все-таки доступно. Введите y:

      Output

      Updating repository information No valid mirror found While scanning your repository information no mirror entry for the upgrade was found. This can happen if you run an internal mirror or if the mirror information is out of date. Do you want to rewrite your 'sources.list' file anyway? If you choose 'Yes' here it will update all 'bionic' to 'focal' entries. If you select 'No' the upgrade will cancel. Continue [yN]

      После загрузки новых списков пакетов и расчета изменений вам будет предложено запустить процедуру обновления. Введите y, чтобы продолжить:

      Output

      Do you want to start the upgrade? 18 installed packages are no longer supported by Canonical. You can still get support from the community. 3 packages are going to be removed. 142 new packages are going to be installed. 452 packages are going to be upgraded. You have to download a total of 338 M. This download will take about 42 minutes with a 1Mbit DSL connection and about 13 hours with a 56k modem. Fetching and installing the upgrade can take several hours. Once the download has finished, the process cannot be canceled. Continue [yN] Details [d]

      После этого будут получены, распакованы и установлены новые пакеты. Даже если у вашей системы быстрое подключение, это займет некоторое время.

      Во время установки могут выводиться интерактивные диалоги с различными вопросами. Например, вам будет предложено автоматически перезапускать службы, когда это потребуется:

      Диалог перезапуска служб

      В данном случае вы можете уверенно ответить Yes (Да). В других случаях вам может быть предложено заменить измененный вами файл конфигурации. Это решение следует основывать на конкретных обстоятельствах, и для его принятия требуются знания о конкретном программном обеспечении, что не входит в тему этого обучающего модуля.

      После завершения установки новых пакетов вам будет предложено удалить старые пакеты. В стандартной системе без измененных конфигураций в этом диалоге можно безопасно ввести y. Если вы серьезно модифицировали систему, лучше будет ввести d и просмотреть список удаляемых пакетов на случай, если в нем есть что-то, что вам позднее потребуется переустанавливать.

      Output

      Remove obsolete packages? 53 packages are going to be removed. Continue [yN] Details [d]

      Если предположить, что все прошло хорошо, вы получите сообщение о том, что обновление завершено и требуется перезагрузка системы. Введите y, чтобы продолжить:

      Output

      System upgrade is complete. Restart required To finish the upgrade, a restart is required. If you select 'y' the system will be restarted. Continue [yN]

      В сеансе SSH вы увидите примерно следующее:

      Output

      Connection to 203.0.113.241 closed by remote host. Connection to 203.0.113.241 closed.

      Возможно вам нужно будет нажать клавишу для выхода в локальную командную строку в связи с прекращением сеанса SSH на стороне сервера.

      Подождите, пока сервер не перезагрузится, а затем подключитесь к нему снова. При входе вы должны увидеть сообщение, подтверждающее, что вы теперь используете Focal Fossa:

      Output

      Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-29-generic x86_64)

      Заключение

      Вы установили рабочую систему Ubuntu 20.04. Теперь вы можете изучить необходимые изменения конфигурации служб и развернутых приложений.

      Дополнительные обучающие модули и ответы на вопросы по версии 20.04 можно найти на страницах с тегом «Обучающие модули по Ubuntu 20.04».



      Source link

      Comment passer à Ubuntu 20.04 Focal Fossa


      Introduction

      La dernière version du support à long terme (LTS) du système d’exploitation Ubuntu, Ubuntu 20.04 (Focal Fossa), est sortie le 23 avril 2020. Ce guide explique comment mettre à niveau un système Ubuntu de la version 18.04 ou ultérieure vers Ubuntu 20.04.

      Warning : Comme pour presque toutes les mises à jour entre les versions majeures d’un système d’exploitation, ce processus comporte un risque inhérent de défaillance, de perte de données ou de configuration logicielle défectueuse. Des sauvegardes complètes et des tests approfondis sont fortement conseillés

      Pour éviter ces problèmes, nous recommandons de migrer vers un nouveau serveur Ubuntu 20.04 plutôt que d’effectuer une mise à niveau sur place. Vous devrez peut-être encore examiner les différences de configuration des logiciels lors de la mise à niveau, mais le système de base sera probablement plus stable. Vous pouvez suivre notre série sur comment migrer vers un nouveau serveur Linux pour apprendre à migrer entre les serveurs.

      Conditions préalables

      Ce guide suppose que vous disposez d’un système Ubuntu 18.04 ou supérieur configuré avec un utilisateur non root sudo-enabled

      Pièges potentiels

      Bien que de nombreux systèmes puissent être mis à niveau sur place sans incident, il est souvent plus sûr et plus prévisible de migrer vers une nouvelle version majeure en installant la distribution à partir de zéro, en configurant les services avec des tests minutieux en cours de route et en migrant les données des applications ou des utilisateurs dans une étape distincte.

      Vous ne devriez jamais mettre à niveau un système de production sans avoir préalablement testé tous vos logiciels et services déployés par rapport à la mise à niveau dans un environnement de mise en scène. Gardez à l’esprit que les bibliothèques, les langues et les services du système peuvent avoir considérablement changé. Avant de procéder à la mise à niveau, pensez à lire les notes de publication de Focal Fossa. 

      Étape 1 – Sauvegarder votre système

      Avant de tenter une mise à jour majeure sur un système, vous devez vous assurer que vous ne perdrez pas de données si la mise à jour échoue. La meilleure façon d’y parvenir est de faire une sauvegarde de l’ensemble de votre système de fichiers. À défaut, assurez-vous que vous disposez de copies des répertoires personnels des utilisateurs, de tout fichier de configuration personnalisé et des données stockées par des services tels que les bases de données relationnelles.

      Sur une droplet DigitalOcean, une approche consiste à éteindre le système et à prendre un instantané (la mise hors tension assure une meilleure cohérence du système de fichiers). Voir Comment créer des instantanés de droplets pour plus de détails sur le processus d’instantané.  Après avoir vérifié que la mise à jour d’Ubuntu a réussi, vous pouvez supprimer l’instantané afin de ne plus être facturé pour son stockage.

      Pour les méthodes de sauvegarde qui fonctionneront sur la plupart des systèmes Ubuntu, voir Comment choisir une stratégie de sauvegarde efficace pour votre SPV. 

      Étape 2 – Mise à jour des paquets actuellement installés

      Avant de commencer la mise à jour de la version, il est plus sûr de se mettre à jour avec les dernières versions de tous les paquets pour la présente publication. Commencez par mettre à jour la liste des paquets :

      Ensuite, mettez à jour les paquets installés avec leurs dernières versions disponibles :

      Une liste des mises à jour vous sera présentée et vous serez invité à continuer. Répondez y pour oui et appuyez sur Enter.

      Ce processus peut prendre un certain temps. Une fois terminé, utilisez la commande dist-upgrade avec apt-get, qui effectuera toutes les mises à niveau supplémentaires impliquant la modification des dépendances, l’ajout ou la suppression de nouveaux packages si nécessaire. Il s’agira de gérer une série de mises à jour qui ont pu être retardées par la précédente étape de mise à niveau apt :

      Là encore, répondez y lorsque vous êtes invité à continuer, et attendez que les mises à niveau soient terminées.

      Maintenant que vous disposez d’une installation à jour d’Ubuntu, vous pouvez utiliser la fonction do-release-upgrade pour passer à la version 20.04. 

      Étape 3 – Mettre à jour avec l’outil de mise à niveau d’Ubuntu

      Traditionnellement, les versions d’Ubuntu peuvent être mises à niveau en modifiant /etc/apt/sources.list d’Apt – qui spécifie les référentiels de paquets- et en utilisant apt-get dist-upgrade pour effectuer la mise à niveau elle-même. Bien que ce processus soit encore susceptible de fonctionner, Ubuntu fournit un outil appelé do-release-upgrade pour rendre la mise à niveau plus sûre et plus facile.

      do-release-upgrade s’occupe de la vérification d’une nouvelle version, de la mise à jour sources.list, et une série d’autres tâches, et constitue le chemin de mise à niveau officiellement recommandé pour les mises à jour de serveurs qui doivent être effectuées via une connexion à distance. 

      Commencez par exécuter do-release-upgrade sans aucune option : 

      Si la nouvelle version d’Ubuntu n’a pas encore été officiellement publiée, vous pouvez obtenir le résultat suivant :

      Output

      Checking for a new Ubuntu release No new release found

      Notez que sur Ubuntu Server, la nouvelle version LTS n’est pas disponible pour do-release-upgrade jusqu’à sa première version ponctuelle, dans ce cas 20.04.1. Cela se produit généralement quelques mois après la date de sortie initiale.

      Si vous ne voyez pas de version disponible, ajoutez l’option -d pour effectuer la mise à niveau vers la version de développement:

      • sudo do-release-upgrade -d

      Si vous êtes connecté à votre système via SSH, il vous sera demandé si vous souhaitez continuer. Pour les machines virtuelles ou les serveurs gérés, vous devez garder à l’esprit que la perte de connectivité SSH est un risque, en particulier si vous n’avez pas d’autre moyen de vous connecter à distance à la console du système (comme une fonction de console Web, par exemple).

      Pour les autres systèmes sous votre contrôle, rappelez-vous qu’il est plus sûr d’effectuer des mises à jour majeures du système d’exploitation uniquement lorsque vous avez un accès physique direct à la machine.

      À l’invite, tapez y et appuyez sur Enter pour continuer :

      Output

      Reading cache Checking package manager Continue running under SSH? This session appears to be running under ssh. It is not recommended to perform a upgrade over ssh currently because in case of failure it is harder to recover. If you continue, an additional ssh daemon will be started at port '1022'. Do you want to continue? Continue [yN]

      Ensuite, vous serez informé que do-release-upgrade lance une nouvelle instance de sshd sur le port 1022 : 

      Output

      Starting additional sshd To make recovery in case of failure easier, an additional sshd will be started on port '1022'. If anything goes wrong with the running ssh you can still connect to the additional one. If you run a firewall, you may need to temporarily open this port. As this is potentially dangerous it's not done automatically. You can open the port with e.g.: 'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT' To continue please press [ENTER]

      Appuyez sur Enter. Ensuite, vous pouvez être averti qu’une entrée miroir n’a pas été trouvée. Sur les systèmes DigitalOcean, il est possible d’ignorer cet avertissement et de procéder à la mise à niveau, puisqu’un miroir local pour 20.04 est en fait disponible. Saisissez y: 

      Output

      Updating repository information No valid mirror found While scanning your repository information no mirror entry for the upgrade was found. This can happen if you run an internal mirror or if the mirror information is out of date. Do you want to rewrite your 'sources.list' file anyway? If you choose 'Yes' here it will update all 'bionic' to 'focal' entries. If you select 'No' the upgrade will cancel. Continue [yN]

      Une fois les nouvelles listes de paquets téléchargées et les modifications calculées, il vous sera demandé si vous souhaitez lancer la mise à niveau. Encore une fois, entrez y pour continuer : 

      Output

      Do you want to start the upgrade? 18 installed packages are no longer supported by Canonical. You can still get support from the community. 3 packages are going to be removed. 142 new packages are going to be installed. 452 packages are going to be upgraded. You have to download a total of 338 M. This download will take about 42 minutes with a 1Mbit DSL connection and about 13 hours with a 56k modem. Fetching and installing the upgrade can take several hours. Once the download has finished, the process cannot be canceled. Continue [yN] Details [d]

      Les nouveaux paquets seront désormais récupérés, déballés et installés. Même si votre système est sur une connexion rapide, cela prendra un certain temps.

      Au cours de l’installation, des dialogues interactifs peuvent vous être présentés pour diverses questions. Par exemple, on peut vous demander si vous souhaitez redémarrer automatiquement les services lorsque cela est nécessaire :

      Service Restart Dialog (Boîte de dialogue de redémarrage du service)

      Dans ce cas, il est possible de répondre en toute sécurité Yes. Dans d’autres cas, il peut vous être demandé si vous souhaitez remplacer un fichier de configuration que vous avez modifié. Il s’agit souvent d’une question de jugement, et il est probable que cela nécessite des connaissances sur des logiciels spécifiques qui ne relèvent pas du champ d’application de ce tutoriel.

      Une fois l’installation des nouveaux paquets terminée, il vous sera demandé si vous êtes prêt à supprimer les paquets obsolètes. Sur un système de stock sans configuration personnalisée, il devrait être possible d’entrer en toute sécurité y ici.  Sur un système que vous avez fortement modifié, vous pouvez entrer d et inspecter la liste des paquets à supprimer, au cas où elle contiendrait des éléments à réinstaller ultérieurement. 

      Output

      Remove obsolete packages? 53 packages are going to be removed. Continue [yN] Details [d]

      Enfin, si tout s’est bien passé, vous serez informé que la mise à niveau est terminée et qu’un redémarrage est nécessaire. Entrez y pour continuer :

      Output

      System upgrade is complete. Restart required To finish the upgrade, a restart is required. If you select 'y' the system will be restarted. Continue [yN]

      Lors d’une session SSH, vous verrez probablement quelque chose comme ceci:

      Output

      Connection to 203.0.113.241 closed by remote host. Connection to 203.0.113.241 closed.

      Vous devrez peut-être appuyer sur une touche ici pour sortir de votre invite locale, puisque votre session SSH se sera terminée du côté du serveur.

      Attendez un moment que votre serveur redémarre, puis reconnectez-vous. Lors de la connexion, vous devriez être accueilli par un message confirmant que vous êtes maintenant sur Focal Fossa :

      Output

      Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-29-generic x86_64)

      Conclusion

      Vous devriez maintenant avoir une installation Ubuntu 20.04 qui fonctionne. À partir de là, vous devrez probablement étudier les changements de configuration nécessaires aux services et aux applications déployées.

      Vous pouvez trouver plus de tutoriels 20.04 et des questions sur notrePage de balise Tutoriels Ubuntu 20.04.



      Source link

      How To Upgrade to Ubuntu 20.04 Focal Fossa


      Introduction

      The Ubuntu operating system’s latest Long Term Support (LTS) release, Ubuntu 20.04 (Focal Fossa), was released on April 23, 2020. This guide will explain how to upgrade an Ubuntu system of version 18.04 or later to Ubuntu 20.04.

      Warning: As with almost any upgrade between major releases of an operating system, this process carries an inherent risk of failure, data loss, or broken software configuration. Comprehensive backups and extensive testing are strongly advised.

      To avoid these problems, we recommend migrating to a fresh Ubuntu 20.04 server rather than upgrading in-place. You may still need to review differences in software configuration when upgrading, but the core system will likely have greater stability. You can follow our series on how to migrate to a new Linux server to learn how to migrate between servers.

      Prerequisites

      This guide assumes that you have an Ubuntu 18.04 or later system configured with a sudo-enabled non-root user.

      Potential Pitfalls

      Although many systems can be upgraded in place without incident, it is often safer and more predictable to migrate to a major new release by installing the distribution from scratch, configuring services with careful testing along the way, and migrating application or user data as a separate step.

      You should never upgrade a production system without first testing all of your deployed software and services against the upgrade in a staging environment. Keep in mind that libraries, languages, and system services may have changed substantially. Before upgrading, consider reading the Focal Fossa Release Notes.

      Step 1 – Backing Up Your System

      Before attempting a major upgrade on any system, you should make sure you won’t lose data if the upgrade goes awry. The best way to accomplish this is to make a backup of your entire filesystem. Failing that, ensure that you have copies of user home directories, any custom configuration files, and data stored by services such as relational databases.

      On a DigitalOcean Droplet, one approach is to power down the system and take a snapshot (powering down ensures that the filesystem will be more consistent). See How to Create Snapshots of Droplets for more details on the snapshot process. After you have verified that the Ubuntu update was successful, you can delete the snapshot so that you will no longer be charged for its storage.

      For backup methods which will work on most Ubuntu systems, see How To Choose an Effective Backup Strategy for your VPS.

      Step 2 – Updating Currently Installed Packages

      Before beginning the release upgrade, it’s safest to update to the latest versions of all packages for the current release. Begin by updating the package list:

      Next, upgrade installed packages to their latest available versions:

      You will be shown a list of upgrades, and prompted to continue. Answer y for yes and press Enter.

      This process may take some time. Once it finishes, use the dist-upgrade command with apt-get, which will perform any additional upgrades that involve changing dependencies, adding or removing new packages as necessary. This will handle a set of upgrades which may have been held back by the previous apt upgrade step:

      Again, answer y when prompted to continue, and wait for upgrades to finish.

      Now that you have an up-to-date installation of Ubuntu, you can use do-release-upgrade to upgrade to the 20.04 release.

      Traditionally, Ubuntu releases have been upgradeable by changing Apt’s /etc/apt/sources.list – which specifies package repositories – and using apt-get dist-upgrade to perform the upgrade itself. Though this process is still likely to work, Ubuntu provides a tool called do-release-upgrade to make the upgrade safer and easier.

      do-release-upgrade handles checking for a new release, updating sources.list, and a range of other tasks, and is the officially recommended upgrade path for server upgrades which must be performed over a remote connection.

      Start by running do-release-upgrade with no options:

      If the new Ubuntu version has not been officially released yet, you may get the following output:

      Output

      Checking for a new Ubuntu release No new release found

      Note that on Ubuntu Server, the new LTS release isn’t made available to do-release-upgrade until its first point release, in this case 20.04.1. This usually comes a few months after the initial release date.

      If you don’t see an available release, add the -d option to upgrade to the development release:

      • sudo do-release-upgrade -d

      If you’re connected to your system over SSH, you’ll be asked whether you wish to continue. For virtual machines or managed servers you should keep in mind that losing SSH connectivity is a risk, particularly if you don’t have another means of remotely connecting to the system’s console (such as a web-based console feature, for example).

      For other systems under your control, remember that it’s safest to perform major operating system upgrades only when you have direct physical access to the machine.

      At the prompt, type y and press Enter to continue:

      Output

      Reading cache Checking package manager Continue running under SSH? This session appears to be running under ssh. It is not recommended to perform a upgrade over ssh currently because in case of failure it is harder to recover. If you continue, an additional ssh daemon will be started at port '1022'. Do you want to continue? Continue [yN]

      Next, you’ll be informed that do-release-upgrade is starting a new instance of sshd on port 1022:

      Output

      Starting additional sshd To make recovery in case of failure easier, an additional sshd will be started on port '1022'. If anything goes wrong with the running ssh you can still connect to the additional one. If you run a firewall, you may need to temporarily open this port. As this is potentially dangerous it's not done automatically. You can open the port with e.g.: 'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT' To continue please press [ENTER]

      Press Enter. Next, you may be warned that a mirror entry was not found. On DigitalOcean systems, it is safe to ignore this warning and proceed with the upgrade, since a local mirror for 20.04 is in fact available. Enter y:

      Output

      Updating repository information No valid mirror found While scanning your repository information no mirror entry for the upgrade was found. This can happen if you run an internal mirror or if the mirror information is out of date. Do you want to rewrite your 'sources.list' file anyway? If you choose 'Yes' here it will update all 'bionic' to 'focal' entries. If you select 'No' the upgrade will cancel. Continue [yN]

      Once the new package lists have been downloaded and changes calculated, you’ll be asked if you want to start the upgrade. Again, enter y to continue:

      Output

      Do you want to start the upgrade? 18 installed packages are no longer supported by Canonical. You can still get support from the community. 3 packages are going to be removed. 142 new packages are going to be installed. 452 packages are going to be upgraded. You have to download a total of 338 M. This download will take about 42 minutes with a 1Mbit DSL connection and about 13 hours with a 56k modem. Fetching and installing the upgrade can take several hours. Once the download has finished, the process cannot be canceled. Continue [yN] Details [d]

      New packages will now be retrieved, unpacked, and installed. Even if your system is on a fast connection, this will take a while.

      During the installation, you may be presented with interactive dialogs for various questions. For example, you may be asked if you want to automatically restart services when required:

      Service Restart Dialog

      In this case, it is safe to answer Yes. In other cases, you may be asked if you wish to replace a configuration file that you have modified. This is often a judgment call, and is likely to require knowledge about specific software that is outside the scope of this tutorial.

      Once new packages have finished installing, you’ll be asked whether you’re ready to remove obsolete packages. On a stock system with no custom configuration, it should be safe to enter y here. On a system you have modified heavily, you may wish to enter d and inspect the list of packages to be removed, in case it includes anything you’ll need to reinstall later.

      Output

      Remove obsolete packages? 53 packages are going to be removed. Continue [yN] Details [d]

      Finally, assuming all has gone well, you’ll be informed that the upgrade is complete and a restart is required. Enter y to continue:

      Output

      System upgrade is complete. Restart required To finish the upgrade, a restart is required. If you select 'y' the system will be restarted. Continue [yN]

      On an SSH session, you’ll likely see something like the following:

      Output

      Connection to 203.0.113.241 closed by remote host. Connection to 203.0.113.241 closed.

      You may need to press a key here to exit to your local prompt, since your SSH session will have terminated on the server end.

      Wait a moment for your server to reboot, then reconnect. On login, you should be greeted by a message confirming that you’re now on Focal Fossa :

      Output

      Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.4.0-29-generic x86_64)

      Conclusion

      You should now have a working Ubuntu 20.04 installation. From here, you likely need to investigate necessary configuration changes to services and deployed applications.

      You can find more 20.04 tutorials and questions on our Ubuntu 20.04 Tutorials tag page.



      Source link