Archive for the ‘Linux Solution’ Category
Donnerstag, Oktober 22nd, 2026
root@pve-tailcat-02:~# apt-get updates -y
root@pve-tailcat-02:~# apt-get install unattended-upgrades
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
unattended-upgrades is already the newest version (2.12ubuntu9).
Solving dependencies… Done
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
root@pve-tailcat-02:~#
root@pve-tailcat-02:~# apt-get install needrestart
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
needrestart is already the newest version (3.11-1ubuntu2).
Solving dependencies… Done
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
root@pve-tailcat-02:~#
root@pve-tailcat-02:~# vi /etc/needrestart/needrestart.conf
$nrconf{restart} = ‚a‘;
root@pve-tailcat-02:~#
root@pve-tailcat-02:~# systemctl edit apt-daily.timer
[Timer]
OnCalendar=
OnCalendar=hourly
RandomizedDelaySec=10m
Successfully installed edited file ‚/etc/systemd/system/apt-daily.timer.d/override.conf‘.
root@pve-tailcat-02:~#
root@pve-tailcat-02:~# dpkg-reconfigure -plow unattended-upgrades
root@pve-tailcat-02:~#
root@pve-tailcat-02:~# apt-config dump APT::Periodic
APT::Periodic „“;
APT::Periodic::Update-Package-Lists „1“;
APT::Periodic::Unattended-Upgrade „1“;
root@pve-tailcat-02:~#
root@pve-tailcat-02:/var/log# systemctl status unattended-upgrades.service
● unattended-upgrades.service – Unattended Upgrades Shutdown
Loaded: loaded (/usr/lib/systemd/system/unattended-upgrades.service; enabled; preset: enabled)
Active: active (running) since Thu 2026-10-22 12:54:29 CEST; 1h 27min ago
Invocation: 19d7cf72aeb64c0ebf423e9817ff841f
Docs: man:unattended-upgrade(8)
Main PID: 8797 (unattended-upgr)
Tasks: 2 (limit: 7681)
Memory: 14.6M (peak: 14.9M)
CPU: 207ms
CGroup: /system.slice/unattended-upgrades.service
└─8797 /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown –wait-for-signal
root@pve-tailcat-02:~#
root@pve-tailcat-02:~# unattended-upgrades -d
upgrade result: True No packages found that can be upgraded unattended and no pending auto-removals
Extracting content from /var/log/unattended-upgrades/unattended-upgrades-dpkg.log since 2026-10-22 14:29:39
root@pve-tailcat-02:~#
root@pve-tailcat-02:~# apt list –upgradable
root@pve-tailcat-02:~#
root@pve-tailcat-02:~# less /var/log/dpkg.log
…
2026-10-23 06:57:51 upgrade zlib1g:amd64 1:1.3.dfsg+really1.3.1-1ubuntu3.1 1:1.3.dfsg+really1.3.1-1ubuntu3.2
2026-10-23 06:57:51 status triggers-pending libc-bin:amd64 2.43-2ubuntu2.4
2026-10-23 06:57:51 status half-configured zlib1g:amd64 1:1.3.dfsg+really1.3.1-1ubuntu3.1
2026-10-23 06:57:51 status unpacked zlib1g:amd64 1:1.3.dfsg+really1.3.1-1ubuntu3.1
2026-10-23 06:57:51 status half-installed zlib1g:amd64 1:1.3.dfsg+really1.3.1-1ubuntu3.1
2026-10-23 06:57:51 status unpacked zlib1g:amd64 1:1.3.dfsg+really1.3.1-1ubuntu3.2
2026-10-23 06:57:51 startup packages configure
2026-10-23 06:57:51 configure zlib1g:amd64 1:1.3.dfsg+really1.3.1-1ubuntu3.2 <none>
2026-10-23 06:57:51 status unpacked zlib1g:amd64 1:1.3.dfsg+really1.3.1-1ubuntu3.2
2026-10-23 06:57:51 status half-configured zlib1g:amd64 1:1.3.dfsg+really1.3.1-1ubuntu3.2
2026-10-23 06:57:51 status installed zlib1g:amd64 1:1.3.dfsg+really1.3.1-1ubuntu3.2
2026-10-23 06:57:51 startup packages configure
2026-10-23 06:57:51 trigproc libc-bin:amd64 2.43-2ubuntu2.4 <none>
2026-10-23 06:57:51 status half-configured libc-bin:amd64 2.43-2ubuntu2.4
2026-10-23 06:57:51 status installed libc-bin:amd64 2.43-2ubuntu2.4
root@pve-tailcat-02:~#
root@pve-tailcat-02:~# grep -A 2 „Commandline:.*upgrade“ /var/log/apt/history.log | tail -n 3
Commandline: /usr/bin/unattended-upgrade
Upgrade: zlib1g:amd64 (1:1.3.dfsg+really1.3.1-1ubuntu3.1, 1:1.3.dfsg+really1.3.1-1ubuntu3.2)
End-Date: 2026-10-23 06:57:51
root@pve-tailcat-02:~#
root@pve-tailcat-02:~# vi /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
Unpacking zlib1g:amd64 (1:1.3.dfsg+really1.3.1-1ubuntu3.2) over (1:1.3.dfsg+really1.3.1-1ubuntu3.1) …^M
Setting up zlib1g:amd64 (1:1.3.dfsg+really1.3.1-1ubuntu3.2) …^M
Processing triggers for libc-bin (2.43-2ubuntu2.4) …^M
Disabling Ubuntu mode, explicit restart mode configured
Restarting services…
/etc/needrestart/restart.d/systemd-manager
systemctl restart rsyslog.service ssh.service systemd-journald.service systemd-networkd.service systemd-resolved.service
Service restarts being deferred:
systemctl restart apt-daily-upgrade.service
systemctl restart networkd-dispatcher.service
systemctl restart systemd-logind.service
systemctl restart unattended-upgrades.service
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.
Log ended: 2026-10-23 06:57:53
root@pve-tailcat-02:~#
Posted in Administration, Linux Solution, Security Solution | No Comments »