-
Notifications
You must be signed in to change notification settings - Fork 0
ubuntu installation
MilesBai edited this page May 31, 2026
·
2 revisions
milesb@mbr:~$ sudo systemctl status unattended-upgrades.service
● unattended-upgrades.service - Unattended Upgrades Shutdown
Loaded: loaded (/lib/systemd/system/unattended-upgrades.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2026-05-30 18:08:20 NZST; 9min ago
Docs: man:unattended-upgrade(8)
Main PID: 913 (unattended-upgr)
Tasks: 2 (limit: 38232)
Memory: 10.7M
CPU: 64ms
CGroup: /system.slice/unattended-upgrades.service
└─913 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-sig>
May 30 18:08:20 mbr systemd[1]: Started Unattended Upgrades Shutdown.
milesb@mbr:~$
milesb@mbr:~$
milesb@mbr:~$ sudo systemctl disable unattended-upgrades.service
Synchronizing state of unattended-upgrades.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable unattended-upgrades
Removed /etc/systemd/system/multi-user.target.wants/unattended-upgrades.service.
milesb@mbr:~$ sudo systemctl stop unattended-upgrades.service
milesb@mbr:~$ cat /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";
milesb@mbr:~$ sudo systemctl status apt-daily.timer
● apt-daily.timer - Daily apt download activities
Loaded: loaded (/lib/systemd/system/apt-daily.timer; enabled; vendor preset: enabled)
Active: active (waiting) since Sat 2026-05-30 18:08:19 NZST; 15min ago
Trigger: Sun 2026-05-31 10:09:36 NZST; 15h left
Triggers: ● apt-daily.service
May 30 18:08:19 mbr systemd[1]: Started Daily apt download activities.
milesb@mbr:~$ sudo systemctl status apt-daily-upgrade.timer
● apt-daily-upgrade.timer - Daily apt upgrade and clean activities
Loaded: loaded (/lib/systemd/system/apt-daily-upgrade.timer; enabled; vendor preset: enabled)
Active: active (waiting) since Sat 2026-05-30 18:08:19 NZST; 15min ago
Trigger: Sun 2026-05-31 06:38:57 NZST; 12h left
Triggers: ● apt-daily-upgrade.service
May 30 18:08:19 mbr systemd[1]: Started Daily apt upgrade and clean activities.
milesb@mbr:~$ sudo systemctl disable apt-daily.timer
Removed /etc/systemd/system/timers.target.wants/apt-daily.timer.
milesb@mbr:~$ sudo systemctl stop apt-daily.timer
milesb@mbr:~$ sudo systemctl disable apt-daily-upgrade.timer
Removed /etc/systemd/system/timers.target.wants/apt-daily-upgrade.timer.
milesb@mbr:~$ sudo systemctl stop apt-daily-upgrade.timer
milesb@mbr:~$ 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
milesb@mbr:~$ sudo vi /etc/update-manager/release-upgrades
[sudo] password for milesb:
milesb@mbr:~$ 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=never
# Prerequisites
sudo apt update
sudo apt install ca-certificates gpg wget
# Add Kitware's signing key
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null \
| gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
# Add the repo (jammy = 22.04)
echo "deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main" \
| sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
sudo apt update
sudo apt install cmake
test page footer