Ubuntu22.04LTS 처음 설치 후 작업

내가 주로 사용하는 프로그램들이 공식 지원하는 Ubuntu 버전이 22.04LTS여서 설치하였습니다. 서버 설치는 내용을 입력하기 어려워서 생략합니다. /파티션을 100기가로 자동으로 설치하는 것만 제외하고 모든 사항을 추천하는대로 설치하였습니다.

Welcome to Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-144-generic x86_64)

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

 System information as of Mon Jul 28 06:47:08 PM UTC 2025

  System load:  0.2                Temperature:           70.5 C
  Usage of /:   1.5% of 465.38GB   Processes:             183
  Memory usage: 1%                 Users logged in:       0
  Swap usage:   0%                 IPv4 address for eno1: 121.176.141.45


Expanded Security Maintenance for Applications is not enabled.

51 updates can be applied immediately.
To see these additional updates run: apt list --upgradable

Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status

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


Last login: Mon Jul 28 18:47:09 2025

처음 ssh로 로그인 하면 위와 같은 화면을 볼 수 있다.

sudo apt-get install update&&dist-upgrade

예전에 사용하던 명령어인데, 시스템이 불안정해질 수 있다고 해서 지금은 사용하지 않는다. 한번인가 패키지가 꼬여서 현재는 aptitude를 사용한다.

sudo apt-get install aptitude -y
sudo apt-get install aptitude -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  aptitude-common bzip2 libboost-iostreams1.74.0 libcwidget4
  libdpkg-perl libfile-fcntllock-perl libsigc++-2.0-0v5
  libxapian30
Suggested packages:
  apt-xapian-index aptitude-doc-en | aptitude-doc debtags
  tasksel bzip2-doc libcwidget-dev debian-keyring gcc
  | c-compiler bzr xapian-tools
The following NEW packages will be installed:
  aptitude aptitude-common bzip2 libboost-iostreams1.74.0
  libcwidget4 libdpkg-perl libfile-fcntllock-perl
  libsigc++-2.0-0v5 libxapian30
0 upgraded, 9 newly installed, 0 to remove and 50 not upgraded.
Need to get 4389 kB of archives.
After this operation, 22.2 MB of additional disk space will be used.
...생략

aptitude에 필요한 프로그램 설치

vi update.sh
sudo aptitude update && sudo aptitude full-upgrade -y

-y 옵션은 사용자의 입력 없이 모든 질문에 '예(yes)'로 자동 응답한다.

The following NEW packages will be installed:
  python3-packaging{a} 
The following packages will be upgraded:
  apt apt-utils cloud-init cryptsetup cryptsetup-bin 
  cryptsetup-initramfs distro-info-data dmeventd dmidecode 
  dmsetup ethtool gir1.2-packagekitglib-1.0 initramfs-tools 
  initramfs-tools-bin initramfs-tools-core landscape-common 
  libapt-pkg6.0 libcryptsetup12 libdevmapper-event1.02.1 
  libdevmapper1.02.1 libldap-2.5-0 libldap-common 
  liblvm2cmd2.03 libmbim-glib4 libmbim-proxy libmm-glib0 
  libopeniscsiusr libpackagekit-glib2-18 libpcap0.8 
  libseccomp2 linux-base lvm2 modemmanager open-iscsi 
  packagekit packagekit-tools pci.ids pollinate 
  python3-update-manager snapd sosreport 
  ubuntu-advantage-tools ubuntu-minimal ubuntu-pro-client 
  ubuntu-pro-client-l10n ubuntu-server 
  ubuntu-server-minimal ubuntu-standard update-manager-core 
  xfsprogs 
50 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
...생략

업데이트 및 관련된 필요한 프로그램 설치, 중간에 재시동 서비스를 선택하라는 창이 나오는데, 나는 다 선택해서 모든 서비스를 선택하였다.

sudo timedatectl set-timezone Asia/Seoul
sudo timedatectl set-ntp true
timedatectl

결과
               Local time: Tue 2025-07-29 00:27:33 KST
           Universal time: Mon 2025-07-28 15:27:33 UTC
                 RTC time: Mon 2025-07-28 15:27:33
                Time zone: Asia/Seoul (KST, +0900)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no