While running the latest kernelcare update from 2.32 to 2.34 on our Ubuntu 18.04 boxes the update fails because it cannot find a libcare.socket service and cannot start it.
A subsequent update of the kernelcare package will enable and start this service, but apt still shows warnings.
It seems there might be some order issue in the postinst of the .deb package
A subsequent update of the kernelcare package will enable and start this service, but apt still shows warnings.
Code:
root@web01:~# apt update Hit:1 http://********.nl/ubuntu bionic InRelease Hit:2 http://********.nl/ubuntu bionic-updates InRelease Hit:3 http://********.nl/ubuntu bionic-backports InRelease Hit:4 http://********.nl/ubuntu bionic-security InRelease Hit:5 http://********.nl bionic InRelease Hit:6 [URL]https://repo.cloudlinux.com/kernelcare-debian/9[/URL] stable InRelease Reading package lists... Done Building dependency tree Reading state information... Done 37 packages can be upgraded. Run apt list --upgradable to see them. root@web01:~# /usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" install kernelcare Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be upgraded: kernelcare 1 upgraded, 0 newly installed, 0 to remove and 36 not upgraded. Need to get 148 kB of archives. After this operation, 842 kB of additional disk space will be used. Get:1 [URL]https://repo.cloudlinux.com/kernelcare-debian/9[/URL] stable/main amd64 kernelcare amd64 2.34-1 [148 kB] Fetched 148 kB in 1s (143 kB/s) (Reading database ... 728608 files and directories currently installed.) Preparing to unpack .../kernelcare_2.34-1_amd64.deb ... Unpacking kernelcare (2.34-1) over (2.32-1) ... Setting up kernelcare (2.34-1) ... Failed to start libcare.socket: Unit libcare.socket not found. dpkg: error processing package kernelcare (--configure): installed kernelcare package post-installation script subprocess returned error exit status 5 Processing triggers for ureadahead (0.100.0-21) ... Processing triggers for systemd (237-3ubuntu10.42) ... Errors were encountered while processing: kernelcare E: Sub-process /usr/bin/dpkg returned an error code (1) root@web01:~# echo $? 100 root@web01:~# dpkg -l | grep -i kernelcare iF kernelcare 2.34-1 amd64 Tools for KernelCare root@web01:~# systemctl status libcare.socket ◠libcare.socket - LibCare patch server Loaded: loaded (/usr/lib/systemd/system/libcare.socket; disabled; vendor preset: enabled) Active: inactive (dead) Listen: /run/libcare/libcare.sock (Stream) root@web01:~# /usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" install kernelcare Reading package lists... Done Building dependency tree Reading state information... Done kernelcare is already the newest version (2.34-1). 0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up kernelcare (2.34-1) ... Created symlink /etc/systemd/system/sockets.target.wants/libcare.socket → /usr/lib/systemd/system/libcare.socket. W: APT had planned for dpkg to do more than it reported back (0 vs 4). Affected packages: kernelcare:amd64 root@web01:~# dpkg -l | grep -i kernelcare ii kernelcare 2.34-1 amd64 Tools for KernelCare root@web01:~# systemctl status libcare.socket ◠libcare.socket - LibCare patch server Loaded: loaded (/usr/lib/systemd/system/libcare.socket; enabled; vendor preset: enabled) Active: active (listening) since Thu 2020-10-08 10:59:39 CEST; 23min ago Listen: /run/libcare/libcare.sock (Stream) Tasks: 0 (limit: 4915) CGroup: /system.slice/libcare.socket
Comment