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%] [####################..................................................................................]
grep -Fq ncpa_listener
Based on some other threads in this forum, I tried the following troubleshooting steps:
# apt install --reinstall ncpa
The output and result were identical; got stuck and had to kill processes again.
Some other commands and outputs:
# dpkg -s ncpa
Code: Select all
Package: ncpa
Status: purge reinstreq half-installed
Priority: extra
Section: alien
Architecture: amd64
Version: 3.0.1-latest-1
Code: Select all
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)
# dpkg -i --force-overwrite /var/cache/apt/archives/ncpa_3.0.1-latest-1_amd64.deb
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
# apt remove --purge ncpa
Code: Select all
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) ...
# apt install ncpa
Code: Select all
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