728x90
우분투 22.04에서 24.04로 업그레이드하는 방법
테스트 환경
우분투 버전 확인
$ lsb_release -d
Description: Ubuntu 22.04.2 LTS
모든 패키지를 최신 상태로 업데이트
- 업그레이드하기 전에 릴리스에 사용 가능한 모든 업데이트를 설치합니다.
$ do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
1. 현재 시스템 업데이트
apt full-upgrade : 모든 패키지를 최신 버전으로 업그레이드합니다.
sudo apt update
sudo apt full-upgrade -y
우분투 버전 확인
lsb_release -d
Description: Ubuntu 22.04.5 LTS
2. 사용하지 않는 패키지 정리
더 이상 필요하지 않은 패키지를 정리합니다.
sudo apt autoremove --purge -y
sudo apt clean
3. 시스템 재부팅
커널 업데이트가 포함되었거나 재부팅이 필요한 경우 재부팅합니다.
sudo reboot
4. 배포판 업그레이드 확인
LTS에서 LTS로 업그레이드하려면 update-manager-core가 설치되어 있어야 합니다.
update-manager-core 패키지 설치
sudo apt install -y update-manager-core
/etc/update-manager/release-upgrades 파일을 확인하여 Prompt=lts로 설정되어 있는지 확인
cat /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=lts
5. 우분투 업그레이드 실행
Ubuntu 24.04가 공식적으로 출시된 후 업그레이드 명령어를 실행합니다.
sudo do-release-upgrade
더보기
---
Checking for a new Ubuntu release
= Welcome to Ubuntu 24.04 LTS 'Noble Numbat' =
The Ubuntu team is proud to announce Ubuntu 24.04 LTS 'Noble Numbat'.
To see what's new in this release, visit:
https://wiki.ubuntu.com/NobleNumbat/ReleaseNotes
Ubuntu is a Linux distribution for your desktop or server, with a fast
and easy install, regular releases, a tight selection of excellent
applications installed by default, and almost any other software you
can imagine available through the network.
We hope you enjoy Ubuntu.
== Feedback and Helping ==
If you would like to help shape Ubuntu, take a look at the list of
ways you can participate at
http://www.ubuntu.com/community/participate/
Your comments, bug reports, patches and suggestions will help ensure
that our next release is the best release of Ubuntu ever. If you feel
that you have found a bug please read:
http://help.ubuntu.com/community/ReportingBugs
Then report bugs using apport in Ubuntu. For example:
ubuntu-bug linux
will open a bug report in Launchpad regarding the linux package.
If you have a question, or if you think you may have found a bug but
aren't sure, first try asking on the #ubuntu or #ubuntu-bugs IRC
channels on Libera.Chat, on the Ubuntu Users mailing list, or on the
Ubuntu forums:
http://help.ubuntu.com/community/InternetRelayChat
http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
http://www.ubuntuforums.org/
== More Information ==
You can find out more about Ubuntu on our website, IRC channel and wiki.
If you're new to Ubuntu, please visit:
http://www.ubuntu.com/
To sign up for future Ubuntu announcements, please subscribe to Ubuntu's
very low volume announcement list at:
http://lists.ubuntu.com/mailman/listinfo/ubuntu-announce
Continue [yN] y
Get:1 Upgrade tool signature [833 B]
Get:2 Upgrade tool [1,277 kB]
Fetched 1,278 kB in 0s (0 B/s)
authenticate 'noble.tar.gz' against 'noble.tar.gz.gpg'
extracting 'noble.tar.gz'
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
...
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
---
6. 업그레이드 확인
업그레이드 후 우분투 버전을 확인합니다.
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble
728x90
'리눅스' 카테고리의 다른 글
[draft] 우분투에서 nvm을 설치하고 이를 사용하여 여러 버전의 nodejs를 관리하는 방법 (0) | 2024.11.27 |
---|---|
[draft] 우분투에서 NodeSource를 사용하여 nodejs를 설치하고 관리하는 방법 (0) | 2024.11.25 |
[draft] 우분투에서 teleport를 설치하는 방법(3) (0) | 2024.11.24 |
[draft] fdisk 명령어를 사용하여 디스크의 파일 시스템을 재구성하는 방법 (0) | 2024.11.22 |
[draft] arp 명령어 (0) | 2024.11.21 |