Обновление Ubuntu server 11.04 до 11.10
Только что была выпущена новая Ubuntu 11.10 (Natty Narwhal). Это руководство показывает, как можно обновить Ubuntu 11.04 серверных установок до Ubuntu 11.10.
Убедитесь, что Вы вошли в систему с правами root:sudo su
Затем запустите:apt-get update
и установить пакет update-manager-core (менеджер-обновления-ядра):apt-get install update-manager-core
Откройте файл /etc/update-manager/release-upgrades ...nano /etc/update-manager/release-upgrades
... и убедитесь, что в нем имеется Prompt=normal:
[...]
Prompt=normal
Затем запустите:do-release-upgrade
... чтобы началось обновление:
root@server1:~# do-release-upgrade
Checking for a new ubuntu release
Get:1 Upgrade tool signature [198 B]
Get:2 Upgrade tool [1164 kB]
Fetched 1164 kB in 0s (0 B/s)
extracting ‘oneiric.tar.gz’
authenticate ‘oneiric.tar.gz’ against ‘oneiric.tar.gz.gpg’
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] – y
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.
To continue please press [ENTER] – ENTER
Confirm that you want to do the upgrade:
Third party sources disabled
Some third party entries in your sources.list were disabled. You can
re-enable them after the upgrade with the ‘software-properties’ tool
or your package manager.
To continue please press [ENTER] – ENTER
[...]
Do you want to start the upgrade?
6 installed packages are no longer supported by Canonical. You can
still get support from the community.
5 packages are going to be removed. 88 new packages are going to be
installed. 611 packages are going to be upgraded.
You have to download a total of 392 M. This download will take about
2 minutes with your connection.
Fetching and installing the upgrade can take several hours. Once the
download has finished, the process cannot be cancelled.
Continue [yN] Details [d] – y
Во время обновления некоторых службы, возможно, потребуется перезагрузка. Если менеджер обновлений указывает Вам, какие услуги должен быть перезапущен (она отображается список услуг), оставите их по умолчанию, нажав кнопку ENTER.
В конце процесса обновления, вы должны удалить устаревшие пакеты:
Remove obsolete packages?
45 packages are going to be removed.
Continue [yN] Details [d] – y
Сервер должен быть перезагружен для завершения обновления:
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] – y
После перезагрузки, Ваш сервер работает под управлением Ubuntu 11.10. Надо можно увидеть взглянуть на /etc/issue:cat /etc/issue
root@server1:~# cat /etc/issue
Ubuntu 11.10 \n \l
root@server1:~#
Убедитесь, что Вы вошли в систему с правами root:sudo su
Затем запустите:apt-get update
и установить пакет update-manager-core (менеджер-обновления-ядра):apt-get install update-manager-core
Откройте файл /etc/update-manager/release-upgrades ...nano /etc/update-manager/release-upgrades
... и убедитесь, что в нем имеется Prompt=normal:
[...]
Prompt=normal
Затем запустите:do-release-upgrade
... чтобы началось обновление:
root@server1:~# do-release-upgrade
Checking for a new ubuntu release
Get:1 Upgrade tool signature [198 B]
Get:2 Upgrade tool [1164 kB]
Fetched 1164 kB in 0s (0 B/s)
extracting ‘oneiric.tar.gz’
authenticate ‘oneiric.tar.gz’ against ‘oneiric.tar.gz.gpg’
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] – y
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.
To continue please press [ENTER] – ENTER
Confirm that you want to do the upgrade:
Third party sources disabled
Some third party entries in your sources.list were disabled. You can
re-enable them after the upgrade with the ‘software-properties’ tool
or your package manager.
To continue please press [ENTER] – ENTER
[...]
Do you want to start the upgrade?
6 installed packages are no longer supported by Canonical. You can
still get support from the community.
5 packages are going to be removed. 88 new packages are going to be
installed. 611 packages are going to be upgraded.
You have to download a total of 392 M. This download will take about
2 minutes with your connection.
Fetching and installing the upgrade can take several hours. Once the
download has finished, the process cannot be cancelled.
Continue [yN] Details [d] – y
Во время обновления некоторых службы, возможно, потребуется перезагрузка. Если менеджер обновлений указывает Вам, какие услуги должен быть перезапущен (она отображается список услуг), оставите их по умолчанию, нажав кнопку ENTER.
В конце процесса обновления, вы должны удалить устаревшие пакеты:
Remove obsolete packages?
45 packages are going to be removed.
Continue [yN] Details [d] – y
Сервер должен быть перезагружен для завершения обновления:
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] – y
После перезагрузки, Ваш сервер работает под управлением Ubuntu 11.10. Надо можно увидеть взглянуть на /etc/issue:cat /etc/issue
root@server1:~# cat /etc/issue
Ubuntu 11.10 \n \l
root@server1:~#