Package: fping
Version: 4.2-3
Severity: normal

Setting up fping (4.2-3) ...
Failed to set capabilities on file `/usr/bin/fping' (Operation not supported)
The value of the capability argument is not permitted for a file. Or the file 
is not a regular (non-symlink) file
WARNING: 'setcap cap_net_raw+ep /usr/bin/fping' failed.
/usr/bin/fping is already setuid root. Not trying to fix anything.
WARNING: Making /usr/bin/fping setuid instead. Use dpkg-statoverride(1) to 
change that if you're unhappy with it.
dpkg-statoverride: error: an override for '/usr/bin/fping' already exists; 
aborting
dpkg: error processing package fping (--configure):
 installed fping package post-installation script subprocess returned error 
exit status 2
Errors were encountered while processing:
 fping
E: Sub-process /usr/bin/dpkg returned an error code (1)

The script first says "Not trying to fix anything" and then goes on
and tries to fix something.

The problem is that there is an "else" missing:

--- fping.postinst.orig 2020-08-10 14:41:18.835956683 +0200
+++ fping.postinst      2020-08-10 12:20:13.191669951 +0200
@@ -14,9 +14,10 @@
                     else
                         echo "A local statoverride for /usr/bin/fping already 
exists. Not trying to fix anything." 1>&2
                     fi
+               else
+                    echo "WARNING: Making /usr/bin/fping setuid instead. Use 
dpkg-statoverride(1) to change that if you're unhappy with it." 1>&2
+                    dpkg-statoverride --update --add root root 4755 
/usr/bin/fping
                 fi
-                echo "WARNING: Making /usr/bin/fping setuid instead. Use 
dpkg-statoverride(1) to change that if you're unhappy with it." 1>&2
-                dpkg-statoverride --update --add root root 4755 /usr/bin/fping
             fi
         fi
     ;;


-- Package-specific info:
-rwxr-xr-x 1 root root 48032 Apr 27 15:37 /usr/bin/fping
lrwxrwxrwx 1 root root     5 Apr 27 15:37 /usr/bin/fping6 -> fping

-- System Information:
Debian Release: bullseye/sid
  APT prefers oldoldstable
  APT policy: (500, 'oldoldstable'), (500, 'unstable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.5.0-2-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: sysvinit (via /sbin/init)

Versions of packages fping depends on:
ii  libc6        2.30-4
ii  libcap2-bin  1:2.33-1
ii  netbase      6.1

fping recommends no packages.

fping suggests no packages.

-- no debconf information

Reply via email to