Glam Prestige Journal

Bright entertainment trends with youth appeal.

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-utils
which 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-helpers

and then retry running

sudo apt-get update
sudo apt-get install -f
sudo dpkg --configure -a
5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy