Цель создания VPS-сервера: тестирование обновления ОС до Ubuntu 19.04 Disco Dingo, изучение СУБД PostgreSQL.

Подключаемся к Ubuntu 18.04 из-под Windows 10 через RDP

Обновление ОС Ubuntu server 19.04 Disco Dingo

 Процедура

1. Обновить Ubuntu до версии 18.10

sudo apt update && sudo apt dist-upgrade && sudo apt autoremove

If you’re upgrading over SSH it’s a good idea to configure SSH server to keep your connection alive so you don’t lose access to your server while upgrading….

Если вы выполняете обновление через SSH, рекомендуется настроить сервер SSH таким образом, чтобы поддерживать подключение, чтобы вы не потеряли доступ к своему серверу во время обновления….

sudo nano /etc/ssh/sshd_config
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#PermitUserEnvironment no
#Compression delayed
ClientAliveInterval 90
#ClientAliveCountMax 3
#UseDNS no

sudo systemctl restart ssh
sudo apt install update-manager-core
sudo nano /etc/update-manager/release-upgrades

# Default behavior for the release upgrader.

[DEFAULT]
# Default prompting and upgrade behavior, valid options:
#
#  never  - Never check for, or allow upgrading to, a new release.
#  normal - Check to see if a new release is available.  If more than one new
#           release is found, the release upgrader will attempt to upgrade to
#           the supported release that immediately succeeds the
#           currently-running release.
#  lts    - Check to see if a new LTS release is available.  The upgrader
#           will attempt to upgrade to the first LTS release available after
#           the currently-running one.  Note that if this option is used and
#           the currently-running release is not itself an LTS release the
#           upgrader will assume prompt was meant to be normal.
Prompt=normal

After changing Ubuntu upgrader settings above, run the commands below to start the upgrade process…  The -c option with the do-release-upgrade command checks for distribution upgrade from the latest supported version…

После изменения вышеуказанных настроек программы обновления Ubuntu выполните следующие команды, чтобы начать процесс обновления ... Опция -c с командой do-release-upgrade проверяет обновление дистрибутива с последней поддерживаемой версии…

sudo do-release-upgrade -c
sudo do-release-upgrade

2. Обновить Ubuntu до версии 19.04

Comments are now closed for this entry.