[solved] CUPS server error when adding new printer

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.
Viewing 15 posts - 31 through 45 (of 47 total)
  • Author
    Posts
  • #117274
    caprea
    Moderator

      Purging 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

      #117275
      anticapitalista
      Forum Admin

        Does /etc/rc5.d/S03avahi-daemon exist?
        If so, delete it and try again

        Added 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.

        #117276
        PPC
        Member

          Is 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 start

          I checked with
          service avahi-daemon status

          and 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.
          #117278
          caprea
          Moderator

            No, doesn’t exist

            Attachments:
            #117280
            anticapitalista
            Forum Admin

              ls /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.

              #117281
              abc-nix
              Member

                change /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.

                #117283
                PPC
                Member

                  This 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.
                  #117291
                  caprea
                  Moderator

                    Added change /etc/init.d/avahi-daemon.dpkg-remove to avahi-daemon

                    I’m going to wait for it.

                    #117294
                    anticapitalista
                    Forum Admin

                      Added 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.

                      #117295
                      caprea
                      Moderator

                        You 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.
                        #117297
                        anticapitalista
                        Forum Admin

                          You 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.

                          #117315
                          anticapitalista
                          Forum 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.

                            #117318
                            caprea
                            Moderator

                              Thanks 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.

                              #117352
                              seriousness
                              Member

                                Caprea, 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.

                                #117393
                                caprea
                                Moderator

                                  Thanks seriousness, so you have been the first one who reported it.

                                  Therefore the script had to be renamed

                                  Reminds somehow of sabotage.

                                Viewing 15 posts - 31 through 45 (of 47 total)
                                • You must be logged in to reply to this topic.