I'm running this build of Debian 10:
4.19.0-24-amd64 #1 SMP Debian 4.19.282-1 (2023-04-29) x86_64 GNU/Linux
We were running 'apt upgrade' and NCPA got stuck indefinitely:
CODE: SELECT ALL
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
ncpa
1 upgraded, 0 newly installed, 0 to remove and 56 not upgraded.
1 not fully installed or removed.
Need to get 26.2 MB of archives.
After this operation, 75.7 MB of additional disk space will be used.
Get:1 https://repo.nagios.com/deb/buster ncpa 3.0.1-latest-1 [26.2 MB]
Fetched 26.2 MB in 3s (7,678 kB/s)
Reading changelogs... Done
(Reading database ... 174392 files and directories currently installed.)
Preparing to unpack .../ncpa_3.0.1-latest-1_amd64.deb ...
Try to stop services with systemctl
Try to stop services with service
Progress: [ 20%] [####################..................................................................................]
No change after 24 hours, so I killed the apt process as well as the following command which also seemed stuck: grep -Fq ncpa_listener
Based on some other threads in this forum, I tried the following troubleshooting steps:
CODE: SELECT ALL
apt install --reinstall ncpa
The output and result were identical; got stuck and had to kill processes again.
Some other commands and outputs:
CODE: SELECT ALL
dpkg -s ncpa
Package: ncpa
Status: purge reinstreq half-installed
Priority: extra
Section: alien
Architecture: amd64
Version: 3.0.1-latest-1
CODE: SELECT ALL
dpkg -C ncpa
The following packages are in a mess due to serious problems during
installation. They must be reinstalled for them (and any packages
that depend on them) to function properly:
ncpa (no description available)
The following packages are missing the list control file in the
database, they need to be reinstalled:
ncpa (no description available)
The following packages are missing the md5sums control file in the
database, they need to be reinstalled:
ncpa (no description available)
The following one got me stuck yet again:
CODE: SELECT ALL
(Reading database ... 174392 files and directories currently installed.)
Preparing to unpack .../ncpa_3.0.1-latest-1_amd64.deb ...
Try to stop services with systemctl
Try to stop services with service
Next I removed and purged the package:
CODE: SELECT ALL
apt remove --purge ncpa
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
ncpa
0 upgraded, 0 newly installed, 1 to remove and 56 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 174391 files and directories currently installed.)
Removing ncpa (3.0.1-latest-1) ...
Then I tried to install the package again and I'm back at the start with the same issue:
CODE: SELECT ALL
apt install ncpa
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
ncpa
0 upgraded, 1 newly installed, 0 to remove and 56 not upgraded.
Need to get 26.2 MB of archives.
After this operation, 75.7 MB of additional disk space will be used.
Get:1 https://repo.nagios.com/deb/buster ncpa 3.0.1-latest-1 [26.2 MB]
Fetched 26.2 MB in 4s (6,371 kB/s)
Selecting previously unselected package ncpa.
(Reading database ... 174392 files and directories currently installed.)
Preparing to unpack .../ncpa_3.0.1-latest-1_amd64.deb ...
Try to stop services with systemctl
Try to stop services with service
No matter what, it seems like the package installer is trying to find and kill the ncpa_listener process, which is not running, and remains grepping indefinitely.
https://support.nagios.com/forum/viewtopic.php?t=70257&sid=66566726ea2e717726d954ab1e0ee3c4