Forum › Forums › Official Releases › antiX-21/22 “Grup Yorum” › [solved] CUPS server error when adding new printer
- This topic has 46 replies, 11 voices, and was last updated Sep 21-5:49 pm by caprea.
-
AuthorPosts
-
September 20, 2023 at 2:27 pm #117274
capreaModeratorPurging avahi-daemon wants to remove ipp-usb and libnss-mdns
But even if I do$ LANG=C sudo apt purge ipp-usb libnss-mdns avahi-daemon Reading package lists... Done Building dependency tree... Done Reading state information... Done The following packages were automatically installed and are no longer required: bind9-host bind9-libs libavahi-core7 libdaemon0 libfstrm0 libmaxminddb0 libprotobuf-c1 Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: avahi-daemon* ipp-usb* libnss-mdns* 0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded. After this operation, 295 kB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 322588 files and directories currently installed.) Removing avahi-daemon (0.8-9.0antix1) ... invoke-rc.d: unknown initscript, /etc/init.d/avahi-daemon not found. invoke-rc.d: dangling symlink: /etc/rc5.d/S03avahi-daemon dpkg: error processing package avahi-daemon (--remove): installed avahi-daemon package pre-removal script subprocess returned error exit status 1 dpkg: too many errors, stopping Errors were encountered while processing: avahi-daemon Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1)I think this is the problem
invoke-rc.d: unknown initscript, /etc/init.d/avahi-daemon not found.because on my antiX21 there is only /etc/init.d/avahi-daemon.dpkg-remove
September 20, 2023 at 2:31 pm #117275
anticapitalistaForum AdminDoes /etc/rc5.d/S03avahi-daemon exist?
If so, delete it and try againAdded change /etc/init.d/avahi-daemon.dpkg-remove to avahi-daemon
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
September 20, 2023 at 2:32 pm #117276PPC
MemberIs this better?
On antiX 23 sysv Full Live, I just ran antiX Updater (there was 60+ packages to update), it ran without me noticing any problem. After it, I ran the GUI that manages Syxv processes and avahi-deamon was marked as “checked” on columns 2-5
I could, then, start it from the terminal:
sudo service avahi-daemon startI checked with
service avahi-daemon statusand it was running.
I logged off and back on: the service did not auto-start.
P.
- This reply was modified 3 years ago by PPC.
September 20, 2023 at 2:42 pm #117278
capreaModeratorNo, doesn’t exist
Attachments:
September 20, 2023 at 2:46 pm #117280
anticapitalistaForum Adminls /etc/rc5d shows it does exist
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
September 20, 2023 at 2:47 pm #117281abc-nix
Memberchange /etc/init.d/avahi-daemon.dpkg-remove to avahi-daemon
This is the way. Rename it and then apt remove avahi-daemon again.
No, doesn’t exist
After renaming the init script, the symlink should be fixed (no longer “red” in the terminal). Then the autoremove script should properly work.
Edit: If you removed the avahi-daemon.dpkg-remove file, and apt remove still doesn’t work, remove all SXX-avahi-daemon and KXX-avahi-daemon files from all /etc/rc*.d folders and then remove.
sudo rm /etc/rc*.d/*avahi-daemon- This reply was modified 3 years ago by abc-nix.
- This reply was modified 3 years ago by abc-nix.
Corruption has two hands: the Right and the Left. Don't let them squeeze you.
September 20, 2023 at 2:51 pm #117283PPC
MemberThis is the way.
I fully agree 🙂
Edit: Sorry this was such a good “Mandalorian” quote that I could not resist attaching a pic (@anticapitalista- sorry for burning Forum resources on a whim).
- This reply was modified 3 years ago by PPC.
Attachments:
September 20, 2023 at 4:22 pm #117291
capreaModeratorAdded change /etc/init.d/avahi-daemon.dpkg-remove to avahi-daemon
I’m going to wait for it.
September 20, 2023 at 4:41 pm #117294
anticapitalistaForum AdminAdded change /etc/init.d/avahi-daemon.dpkg-remove to avahi-daemon
I’m going to wait for it.
Ha ha – I meant I added to my post. You will have to make the change manually
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
September 20, 2023 at 4:49 pm #117295
capreaModeratorYou will have to make the change manually
But does this mean everybody on antiX21 has to make the change manually or am I the only one with the file called /etc/init.d/avahi-daemon.dpkg-remove ?
- This reply was modified 3 years ago by caprea.
September 20, 2023 at 4:56 pm #117297
anticapitalistaForum AdminYou will have to make the change manually
But does this mean everybody on antiX21 has to make the change manually or am I the only one with the file called /etc/init.d/avahi-daemon.dpkg-remove ?
As far as I know, you are the first to report this on antiX-21.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
September 20, 2023 at 7:02 pm #117315
anticapitalistaForum Admin@caprea – I’ll probably have a new deb package that ‘fixes’ this in a day or so.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
September 20, 2023 at 8:21 pm #117318
capreaModeratorThanks anticapitalista, it’s probably not necessary. I already waisted your time.Might possible its only me,though I’m wondering how it happened that the name of the script has changed here on my system.If I had known it was only me, i wouldn’t have posted the problem.
September 21, 2023 at 6:41 am #117352
seriousnessMemberCaprea, you are not alone – see #113209 !
Debian removed the init script with the symlinks from package avahi-daemon. Therefore the script had to be renamed.
September 21, 2023 at 2:26 pm #117393
capreaModeratorThanks seriousness, so you have been the first one who reported it.
Therefore the script had to be renamed
Reminds somehow of sabotage.
-
AuthorPosts
- You must be logged in to reply to this topic.

