SOLVED Problem Upgrading After Installing antiX 23

Forum Forums New users New Users and General Questions SOLVED Problem Upgrading After Installing antiX 23

  • This topic has 7 replies, 5 voices, and was last updated Nov 25-7:51 pm by White Chocolate.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #124066
    Member
    antixjim

      After installing antiX 23 I used “sudo apt update” and “sudo apt upgrade” to bring everything up to date.

      There was an error regarding 5.10.188-antix.1-486-smp. After doing some research, I ran “sudo apt-get install -f” to try to fix the problem and got the following error message.

      jim@antix:~
      $ sudo apt-get install -f
      [sudo] password for jim:
      Reading package lists… Done
      Building dependency tree… Done
      Reading state information… Done
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      1 not fully installed or removed.
      After this operation, 0 B of additional disk space will be used.
      Setting up rtl8821cu-dkms (5.12.0+git20230215-1~mx23+3) …
      Removing old rtl8821cu-5.12.0 DKMS files…
      Deleting module rtl8821cu-5.12.0 completely from the DKMS tree.
      Loading new rtl8821cu-5.12.0 DKMS files…
      Building for 5.10.188-antix.1-486-smp
      Building initial module for 5.10.188-antix.1-486-smp
      Error! Bad return status for module build on kernel: 5.10.188-antix.1-486-smp (i686)
      Consult /var/lib/dkms/rtl8821cu/5.12.0/build/make.log for more information.
      dpkg: error processing package rtl8821cu-dkms (–configure):
      installed rtl8821cu-dkms package post-installation script subprocess returned error exit status 10
      Errors were encountered while processing:
      rtl8821cu-dkms
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      jim@antix:~
      $

      I found /var/lib/dkms/rtl8821cu/5.12.0/build/make.log and it reads as follows:

      DKMS make.log for rtl8821cu-5.12.0 for kernel 5.10.188-antix.1-486-smp (i686)
      Mon Nov 20 04:01:44 PM PST 2023
      make ARCH=i686 CROSS_COMPILE= -C /lib/modules/5.10.188-antix.1-486-smp/build M=/var/lib/dkms/rtl8821cu/5.12.0/build modules
      make[1]: Entering directory ‘/usr/src/linux-headers-5.10.188-antix.1-486-smp’
      Makefile:703: arch/i686/Makefile: No such file or directory
      make[1]: *** No rule to make target ‘arch/i686/Makefile’. Stop.
      make[1]: Leaving directory ‘/usr/src/linux-headers-5.10.188-antix.1-486-smp’
      make: *** [Makefile:2501: modules] Error 2

      I received a similar error message (below) when I reinstalled aisleriod (using Symantic) because it did not showup in the Menu after the original installation:

      (Reading database … 157741 files and directories currently installed.)
      Preparing to unpack …/aisleriot_1%3a3.22.23-1_i386.deb …
      Unpacking aisleriot (1:3.22.23-1) over (1:3.22.23-1) …
      Setting up aisleriot (1:3.22.23-1) …
      Setting up rtl8821cu-dkms (5.12.0+git20230215-1~mx23+3) …
      Removing old rtl8821cu-5.12.0 DKMS files…
      /usr/sbin/dkms: line 2497: echo: write error: Broken pipe
      Deleting module rtl8821cu-5.12.0 completely from the DKMS tree.
      Loading new rtl8821cu-5.12.0 DKMS files…
      /usr/sbin/dkms: line 2497: echo: write error: Broken pipe
      Building for 5.10.188-antix.1-486-smp
      /usr/sbin/dkms: line 2497: echo: write error: Broken pipe
      Building initial module for 5.10.188-antix.1-486-smp
      /usr/sbin/dkms: line 2497: echo: write error: Broken pipe
      Error! Bad return status for module build on kernel: 5.10.188-antix.1-486-smp (i686)
      Consult /var/lib/dkms/rtl8821cu/5.12.0/build/make.log for more information.
      dpkg: error processing package rtl8821cu-dkms (–configure):
      installed rtl8821cu-dkms package post-installation script subprocess returned error exit status 10
      Processing triggers for desktop-file-utils (0.26-1) …
      Processing triggers for hicolor-icon-theme (0.17-2) …
      Processing triggers for libglib2.0-0:i386 (2.74.6-2) …
      Processing triggers for man-db (2.11.2-2) …
      Processing triggers for mailcap (3.70+nmu1) …
      Errors were encountered while processing:
      rtl8821cu-dkms
      Writing Menu: jwm
      Writing Menu: icewm
      Writing Menu: fluxbox
      E: Sub-process /usr/bin/dpkg returned an error code (1)
      A package failed to install. Trying to recover:
      Setting up rtl8821cu-dkms (5.12.0+git20230215-1~mx23+3) …
      Removing old rtl8821cu-5.12.0 DKMS files…
      /usr/sbin/dkms: line 2497: echo: write error: Broken pipe
      Deleting module rtl8821cu-5.12.0 completely from the DKMS tree.
      Loading new rtl8821cu-5.12.0 DKMS files…
      /usr/sbin/dkms: line 2497: echo: write error: Broken pipe
      Building for 5.10.188-antix.1-486-smp
      /usr/sbin/dkms: line 2497: echo: write error: Broken pipe
      Building initial module for 5.10.188-antix.1-486-smp
      /usr/sbin/dkms: line 2497: echo: write error: Broken pipe
      Error! Bad return status for module build on kernel: 5.10.188-antix.1-486-smp (i686)
      Consult /var/lib/dkms/rtl8821cu/5.12.0/build/make.log for more information.
      dpkg: error processing package rtl8821cu-dkms (–configure):
      installed rtl8821cu-dkms package post-installation script subprocess returned error exit status 10
      Errors were encountered while processing:
      rtl8821cu-dkms

      I the two porblems seem to be related because they both reference rt188sacu.dkms and are so similar, but I have no idea what to do.

      Is there a way to fix this? I hesitate to reinstall antiX 23 and rerun the update and upgrade routines, because I believe the same thing would happen again.

      • This topic was modified 1 week, 3 days ago by antixjim. Reason: Solved (I guess)
      • This topic was modified 1 week, 3 days ago by antixjim.
      #124068
      Member
      stevesr0
        Helpful
        Up
        0
        ::

        Hi antixjim,

        This seems like the problem in thread “help with error in any apt command” (https://www.antixforum.com/forums/topic/help-with-error-in-any-apt-command/#post-123530).

        The solution there was to remove the rtl8821cu-dkms package. (Assuming that it is not needed for your hardware.)

        #124069
        Member
        Robin
          Helpful
          Up
          1
          ::

          This is a meanwhile wellknown issue with the rtl8821cu kernel module (please search the forum for it), which is not compatible with the recent kernels; from the apt info output:

          $ apt-cache search rtl8821cu
          rtl8821cu-dkms - rtl8821cu driver in DKMS format, builds up to 5.17 kernels.

          Obviously you run a 5.10 or 5.12 kernel, so it is supposed to be fine. Nevertheless it refuses to be built. That’s what we call a bug, and hopefully it will be fixed by the developers of this module.

          Now it depends whether you actually need this very module for your hardware. Best for you if you don’t need it. If I’m not mistaken it is a kind of wireless device driver.

          In case your hardware doesn’t need it, just remove this very module from your system and everything will be fine:
          $ sudo apt-get purge rtl8821cu-dkms

          In case you actually need this very module for your hardware, we’ll have to search for another solution.


          edit: Stevser0 was typing faster than me 🙂 never mind, all I can say now is: sewn twice is better.

          Windows is like a submarine. Open a window and serious problems will start.

          #124073
          Member
          stevesr0
            Helpful
            Up
            0
            ::

            Hi Robin,

            I was faster, but your answer was better <g>.

            #124149
            Member
            antixjim
              Helpful
              Up
              0
              ::

              Thank you for your replies. Interestingly, when I tried “sudo apt-get purge rtl882cu-dkms” , the reply was “Error: Unable to locate package rtl882cu-dkms”.

              I then reran “sudo apt upgrade” and got the following:

              sudo apt upgrade
              Reading package lists… Done
              Building dependency tree… Done
              Reading state information… Done
              Calculating upgrade… Done
              0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
              1 not fully installed or removed.
              After this operation, 0 B of additional disk space will be used.
              Do you want to continue? [Y/n]
              Setting up rtl8821cu-dkms (5.12.0+git20230215-1~mx23+3) …
              Removing old rtl8821cu-5.12.0 DKMS files…
              Deleting module rtl8821cu-5.12.0 completely from the DKMS tree.
              Loading new rtl8821cu-5.12.0 DKMS files…
              Building for 5.10.188-antix.1-486-smp
              Building initial module for 5.10.188-antix.1-486-smp
              Error! Bad return status for module build on kernel: 5.10.188-antix.1-486-smp (i686)
              Consult /var/lib/dkms/rtl8821cu/5.12.0/build/make.log for more information.
              dpkg: error processing package rtl8821cu-dkms (–configure):
              installed rtl8821cu-dkms package post-installation script subprocess returned error exit status 10
              Errors were encountered while processing:
              rtl8821cu-dkms
              E: Sub-process /usr/bin/dpkg returned an error code (1)

              The key seems to be the line that says: “1 not fully installed or removed.” The last time this happened (with a different package), Synaptic also showed a package not completely installed or removed and I was able to fix the problem there, but Synaptic is not showing anything like that now.

              I also tried “sudo apt-get -s purge *-dkms” but that also returned with a message that no *.dkms packages were found.

              Finally I tried installing directly using “sudo apt install rtl882cu-dkms” and got the following:

              sudo apt install rtl882cu-dkms
              Reading package lists… Done
              Building dependency tree… Done
              Reading state information… Done
              E: Unable to locate package rtl882cu-dkms

              I am thinking at this point that “sudo apt update” is trying to install a package that does not exist in the repositories that it checked and is stuck thinking it is not fully installed and keeps trying to complete the installation, but this cannot be done.

              Everything seems to be working properly without rtl882cu-dkms, so I guess I can ignore this until the point release (23.1) comes out. Hopefully this will not happen then.

              Thanks for replying.

              #124156
              Member
              abc-nix
                Helpful
                Up
                1
                ::

                You are missing one.

                rtl882cu-dkms

                rtl8821cu-dkms

                Spot the difference. You are missing 1.

                #124165
                Member
                antixjim
                  Helpful
                  Up
                  0
                  ::

                  Thank you for correcting me. I found rtl8821cu-dkms this time in Symantic and did a complete uninstalltion including configuration files and it looks like it is gone now.

                  It its uninstallation causes a problem I guess I will have to deal with that some how.

                  #124472
                  Member
                  White Chocolate
                    Helpful
                    Up
                    0
                    ::

                    Thanks to everyone as this helps me out as I just ran into this same issue today myself…

                  Viewing 8 posts - 1 through 8 (of 8 total)
                  • You must be logged in to reply to this topic.