I have Xubuntu 21.04 64-bit. Every time I do "apt upgrade" I have error messages:
Setting up avahi-daemon (0.8-5ubuntu3.1) ...
invoke-rc.d: syntax error: unknown option "--skip-systemd-native"
dpkg: error processing package avahi-daemon (--configure): installed avahi-daemon package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of avahi-utils: avahi-utils depends on avahi-daemon (= 0.8-5ubuntu3.1); however: Package avahi-daemon is not configured yet.
dpkg: error processing package avahi-utils (--configure): dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing: avahi-daemon avahi-utils
E: Sub-process /usr/bin/dpkg returned an error code (1)Could you help me? Thanks.
I've tried this command to get more info:
sudo apt-get update; sudo apt-get install -f; sudo dpkg --configure -a
Hit:1 stable InRelease
Hit:2 stable InRelease
Hit:3 stable InRelease
Hit:4 stable InRelease
Hit:5 hirsute InRelease
Hit:6 hirsute-updates InRelease
Hit:7 hirsute-backports InRelease
Hit:8 stable InRelease
Get:9 hirsute-security InRelease [110 kB]
Hit:10 hirsute InRelease
Ign:12 disco InRelease
Hit:13 disco Release
Hit:14 apt/stable/ InRelease
Hit:11 llvm-toolchain-groovy-13 InRelease
Fetched 110 kB in 2s (58,5 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up avahi-daemon (0.8-5ubuntu3.1) ...
invoke-rc.d: syntax error: unknown option "--skip-systemd-native"
dpkg: error processing package avahi-daemon (--configure): installed avahi-daemon package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of avahi-utils: avahi-utils depends on avahi-daemon (= 0.8-5ubuntu3.1); however: Package avahi-daemon is not configured yet.
dpkg: error processing package avahi-utils (--configure): dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure. Errors were encountered while processing: avahi-daemon avahi-utils
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up avahi-daemon (0.8-5ubuntu3.1) ...
invoke-rc.d: syntax error: unknown option "--skip-systemd-native"
dpkg: error processing package avahi-daemon (--configure): installed avahi-daemon package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of avahi-utils: avahi-utils depends on avahi-daemon (= 0.8-5ubuntu3.1); however: Package avahi-daemon is not configured yet.
dpkg: error processing package avahi-utils (--configure): dependency problems - leaving unconfigured
Errors were encountered while processing: avahi-daemon avahi-utilswhich invoke-rc.d, dpkg -S $(which invoke-rc.d), apt-cache policy $(dpkg -S $(which invoke-rc.d) | awk -F: '{print $1}')
/usr/bin/dpkg
/usr/bin/apt-cache 2 1 Answer
You need to remove obsolete sysv-rc package and reinstall the corresponding package with invoke-rc.d inside it by
sudo dpkg -P --force-all sysv-rc
sudo apt-get install --reinstall init-system-helpersand then retry running
sudo apt-get update
sudo apt-get install -f
sudo dpkg --configure -a 5