aws ubuntu 20.04 버전이 필요한데 quick start엔 없다.
마켓에서 사긴전에 생각해보니 우리가 18버전이 있었음.
18버전을 ami 로 만들고, 가져다가 업그레이드를 실행하려고 함.
New release '20.04.6 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
do-release-upgrade 를 치니깐 아래 메시지가 나옴
ubuntu@ip-172-31-9-206:~$ do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
뭐지 검색....
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo do-release-upgrade
순선대로 하고 나니 아래 메시지가 뜸. 다행히 do not upgrade 는 안뜸.
ubuntu@ip-172-31-9-206:~$ sudo do-release-upgrade
Checking for a new Ubuntu release
You have not rebooted after updating a package which requires a reboot. Please reboot before upgrading.
다시 sudo do-release-upgrade 명령어를 사용함.
뭔가 진행됨. 아래 메시지 외에도 써드파티 관련 문의도 함.
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.
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]
Reading package lists... Done
Building dependency tree
Reading state information... Done
Hit http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Hit http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:1 https://deb.nodesource.com/node_10.x bionic InRelease [4584 B]
Hit http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Hit https://packages.cloud.google.com/apt cloud-sdk InRelease
Fetched 4584 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Checking for installed snaps
Calculating snap size requirements
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.
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]
Reading package lists... Done
Building dependency tree
Reading state information... Done
Hit http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Hit http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:1 https://deb.nodesource.com/node_10.x bionic InRelease [4584 B]
Hit http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Hit https://packages.cloud.google.com/apt cloud-sdk InRelease
Fetched 4584 B in 0s (0 B/s)
Reading package lists... Done
ubuntu@ip-172-31-9-206:~$ sudo do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [1554 B]
Get:2 Upgrade tool [1338 kB]
Fetched 1340 kB in 0s (0 B/s)
authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg'
extracting 'focal.tar.gz'
[screen is terminating]
ubuntu@ip-172-31-9-206:~$ exit
결국 안됨.
Reading cache
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Hit http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Hit http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:1 https://deb.nodesource.com/node_10.x bionic InRelease [4584 B]
Hit http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Hit https://packages.cloud.google.com/apt cloud-sdk InRelease
Hit http://security.ubuntu.com/ubuntu bionic-security InRelease
Fetched 4584 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Checking for installed snaps
Calculating snap size requirements
No candidate ver: libapache2-mod-php8.1
No candidate ver: php7.0-fpm
No candidate ver: php8.1-cli
No candidate ver: php8.1-common
No candidate ver: php8.1-curl
No candidate ver: php8.1-mbstring
No candidate ver: php8.1-mcrypt
No candidate ver: php8.1-mysql
No candidate ver: php8.1-opcache
No candidate ver: php8.1-readline
Updating repository information
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]
sudo dpkg --purge [패키지 이름]
다른 터미널로 접속해서 아래 명령어 날림.
sudo dpkg --purge libapache2-mod-php8.1
sudo dpkg --purge php7.0-fpm
sudo dpkg --purge php8.1-cli
sudo dpkg --purge php8.1-common
sudo dpkg --purge php8.1-curl
sudo dpkg --purge php8.1-mbstring
sudo dpkg --purge php8.1-mcrypt
sudo dpkg --purge php8.1-mysql
sudo dpkg --purge php8.1-opcache
sudo dpkg --purge php8.1-readline
r 를 눌러 다시 한번 시도.
Hit http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal InRelease
Hit http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit http://ap-northeast-2.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease
Get:1 https://deb.nodesource.com/node_10.x bionic InRelease [4584 B]
Hit http://security.ubuntu.com/ubuntu focal-security InRelease
Hit https://packages.cloud.google.com/apt cloud-sdk InRelease
Fetched 4584 B in 0s (0 B/s)
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating the changes
Calculating the changes
Could not calculate the upgrade
An unresolvable problem occurred while calculating the upgrade.
This was likely caused by:
* Unofficial software packages not provided by Ubuntu
Please use the tool 'ppa-purge' from the ppa-purge
package to remove software from a Launchpad PPA and
try the upgrade again.
If none of this applies, then please report this bug using the
command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal. If
you want to investigate this yourself the log files in
'/var/log/dist-upgrade' will contain details about the upgrade.
Specifically, look at 'main.log' and 'apt.log'.
Restoring original system state
Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
=== Command detached from window (Tue Jun 11 23:39:51 2024) ===
=== Command terminated with exit status 1 (Tue Jun 11 23:40:01 2024) ===