ubuntu upgrade 16.04 -> 18.04

ubuntu upgrade 16.04 -> 18.04

 

/etc/lsb-release 확인

login as: test
test@192.168.0.10's password:
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-62-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

206 packages can be updated.
114 updates are security updates.

New release '18.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


Last login: Mon Sep  3 14:59:41 2018
test@docker-test:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"

 

16.04 모든 패키지 업데이트

test@docker-test:~$ sudo apt update && sudo apt dist-upgrade && sudo apt autoremove

 

update-manager-core 패키지 설치

test@docker-test:~$ sudo apt-get install update-manager-core

 

Prompt=lts 확인

test@docker-test:~$ cat /etc/update-manager/release-upgrades |grep -i prompt
# Default prompting behavior, valid options:
Prompt=lts
test@docker-test:~$

 

18.04 upgrade

test@docker-test:~$ sudo do-release-upgrade -d

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

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]

 

keep the local version currently installed 을 선택 합니다.

 

System Rebooting 후 lsb-release 확인시 18.04 로 update 된것을 확인할수 있습니다.

To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.

Continue [yN] y

test@docker-test:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
test@docker-test:~$

 

댓글 남기기