Ubuntuにおける標準で利用しているソフトウェアパッケージは APT になります。 システムをアップグレードするのに下記コマンドをupdate , upgrade の順序で実行します。
システムのリスト最新化 #
リスト最新化コマンド
sudo apt updateリスト最新化(apt update) 実行例
kazu@ubuntu2604:~$ sudo apt update
[sudo: authenticate] Password:
Hit:1 http://security.ubuntu.com/ubuntu resolute-security InRelease
Hit:2 http://jp.archive.ubuntu.com/ubuntu resolute InRelease
Hit:3 http://jp.archive.ubuntu.com/ubuntu resolute-updates InRelease
Hit:4 http://jp.archive.ubuntu.com/ubuntu resolute-backports InRelease
35 packages can be upgraded. Run 'apt list --upgradable' to see them.
kazu@ubuntu2604:~$システム最新化 #
システム最新化コマンド
sudo apt -y upgrade- オプションの y で (Yes/No) の応答するときに全て、Yを自動で応答します。
システム最新化(apt upgrade) 実行例
kazu@ubuntu2604:~$ sudo apt -y upgrade
[sudo: authenticate] Password:
The following packages were automatically installed and are no longer required:
linux-headers-7.0.0-14 linux-modules-7.0.0-14-generic
linux-headers-7.0.0-14-generic linux-tools-7.0.0-14
linux-image-unsigned-7.0.0-14-generic linux-tools-7.0.0-14-generic
linux-main-modules-zfs-7.0.0-14-generic
Use 'sudo apt autoremove' to remove them.
Upgrading:
base-files linux-firmware-qualcomm-graphics
fwupd linux-firmware-qualcomm-misc
gir1.2-packagekitglib-1.0 linux-firmware-realtek
iproute2 motd-news-config
libfwupd3 packagekit
libgcrypt20 python3-distupgrade
libpackagekit-glib2-18 sg3-utils
libsgutils2-1.48 sg3-utils-udev
linux-firmware-amd-misc snapd
linux-firmware-broadcom-wireless ubuntu-kernel-accessories
linux-firmware-intel-graphics ubuntu-minimal
linux-firmware-intel-wireless ubuntu-release-upgrader-core
linux-firmware-marvell-wireless ubuntu-server
linux-firmware-mellanox-spectrum ubuntu-server-minimal
linux-firmware-netronome ubuntu-standard
linux-firmware-nvidia-graphics update-notifier-common
linux-firmware-qlogic
/snip/
Processing triggers for plymouth-theme-ubuntu-text (24.004.60+git20250831.4a3c171d-0ubuntu8)…
Processing triggers for dracut (110-11)…
update-initramfs: Generating /boot/initrd.img-7.0.0-28-generic
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
kazu@ubuntu2604:~$