How do I (upgrade|downgrade) the installed linux kernel?

Forum Forums New users New Users and General Questions How do I (upgrade|downgrade) the installed linux kernel?

  • This topic has 50 replies, 11 voices, and was last updated Feb 23-3:18 pm by ile.
Viewing 15 posts - 31 through 45 (of 51 total)
  • Author
    Posts
  • #6706
    Forum Admin
    anticapitalista
      Helpful
      Up
      0
      ::

      Where might the antix kernel source be downloaded? (working addition).
      Looked on github, but didn’t see it in the 128 listed projects:)

      antiX kernels and sources

      Philosophers have interpreted the world in many ways; the point is to change it.

      antiX with runit - leaner and meaner.

      #6707
      Forum Admin
      rokytnji
        Helpful
        Up
        0
        ::

        You mean 4.9.75 kernel works better than 4.10.5 one?

        Yes.

        • This reply was modified 5 years, 2 months ago by rokytnji.

        Sometimes I drive a crooked road to get my mind straight.
        Not all who Wander are Lost.
        I'm not outa place. I'm from outer space.

        Linux Registered User # 475019
        How to Search for AntiX solutions to your problems

        #6713
        Member
        sleekmason
          Helpful
          Up
          0
          ::

          Where might the antix kernel source be downloaded? (working addition).
          Looked on github, but didn’t see it in the 128 listed projects:)

          antiX kernels and sources

          Absolutely awesome! Thank you.

          #6722
          Member
          andfree
            Helpful
            Up
            0
            ::

            I run the 4.9.75 kernel. (…) It works better picking up my usb 3.0 express card addon gear on this IBM T430.

            Well, I installed the 4.9.75-antix.2-486-smp kernel from Synaptic. During the installation, it gave me the error below but, at the end, the installation seems to have been successfully completed.

            Error! echo
            Your kernel headers for kernel 4.9.75-antix.2-486-smp cannot be found at
            /lib/modules/4.9.75-antix.2-486-smp/build or /lib/modules/4.9.75-antix.2-486-smp/source.

            I rebooted into this kernel and it seems to work fine. I don’t know if I use something that needs rebuilding, but I made an effort. I used geany to create this script named “rebuild-dkms” in my home folder:

            #!/bin/bash
            
            #script to rebuild dkms modules installed from deb packages
            #dolphin oracle, March 2017
            
            for i in $(dpkg-query -l |grep "\-dkms" |awk '{print $2'}); do
            dpkg-reconfigure $i |tee -a /var/log/rebuild-dkms.log
            done

            I clicked the Exec Permission for the Owner. But in every effort of mine to run it, it gave me a “command not found” output.

            $ sudo /rebuild-dkms
            sudo: /rebuild-dkms: command not found
            yyy@antix1:~
            $ sudo rebuild-dkms
            sudo: rebuild-dkms: command not found
            yyy@antix1:~
            $ rebuild-dkms
            bash: rebuild-dkms: command not found
            #6723
            Forum Admin
            anticapitalista
              Helpful
              Up
              0
              ::

              Did you install the headers?

              Philosophers have interpreted the world in many ways; the point is to change it.

              antiX with runit - leaner and meaner.

              #6724
              Member
              andfree
                Helpful
                Up
                0
                ::

                Did you install the headers?

                Ahem. No, I didn’t. Sorry, it’s obvious that this caused the error during the installation of the kernel.
                But I suppose it doesn’t have to do with the “command not found” output in my efforts to run the rebuild-dkms script.

                #6726
                Forum Admin
                anticapitalista
                  Helpful
                  Up
                  0
                  ::

                  If you don’t have the headers, then how can the script rebuild the modules?

                  Philosophers have interpreted the world in many ways; the point is to change it.

                  antiX with runit - leaner and meaner.

                  #6729
                  Member
                  andfree
                    Helpful
                    Up
                    0
                    ::

                    I wrote my previous post hurriedly and I didn’t make clear that the “command not found” appears even after having installed the headers (I don’t know if I should have installed them simultaneously with the kernel). Moreover, the “command not found” appeared to me in the past with other script, too (streamyt).

                    #6730
                    Member
                    andfree
                      Helpful
                      Up
                      0
                      ::

                      I’ve just installed the 4.9.75 kernel simultaneously with its headers to the other laptop. The script gives me the same “command not found” output.

                      • This reply was modified 5 years, 2 months ago by andfree.
                      #6732
                      Moderator
                      caprea
                        Helpful
                        Up
                        0
                        ::

                        You missed a little point
                        sudo ./rebuild-dkms

                        #6733
                        Anonymous
                          Helpful
                          Up
                          0
                          ::

                          used geany to create this script named “rebuild-dkms” in my home folder
                          ^—v
                          bash: rebuild-dkms: command not found

                          Hmm, maybe you just forgot to set the newly-created script executable?
                          try:

                          chmod +x ~/rebuild-dkms
                          sudo ~/rebuild-dkms

                          #6736
                          Member
                          sleekmason
                            Helpful
                            Up
                            0
                            ::

                            Type directly into a root terminal. (Instead of a script). Copy and paste using lxterminal.
                            for i in $(dpkg-query -l |grep "\-dkms" |awk '{print $2'}); do dpkg-reconfigure $i |tee -a /var/log/rebuild-dkms.log; done

                            #6737
                            Member
                            andfree
                              Helpful
                              Up
                              0
                              ::

                              You missed a little point
                              sudo ./rebuild-dkms

                              That’s it. The correct command worked for both two laptops. Sorry for my carelessness.

                              Rebuilding gave me an error in the one laptop:

                              Loading new virtualbox-guest-5.2.4 DKMS files...
                              Building for 4.9.75-antix.2-486-smp
                              Building initial module for 4.9.75-antix.2-486-smp
                              Error! Bad return status for module build on kernel: 4.9.75-antix.2-486-smp (i686)
                              Consult /var/lib/dkms/virtualbox-guest/5.2.4/build/make.log for more information.

                              I feel like having filled the topic with garbage. I’ll try to sum it up correctly. After having installed a kernel and the corresponding headers via Synaptic, I run “sudo update-grub” and then reboot to the fresh installed kernel via the advanced options of Grub. I can uninstall kernels I don’t want to use and their corresponding headers via Synaptic. Finally, I use a script to rebuild my dkms modules. To make the script, I copy this to a blank file in my home folder:

                              #!/bin/bash
                              
                              #script to rebuild dkms modules installed from deb packages
                              #dolphin oracle, March 2017
                              
                              for i in $(dpkg-query -l |grep “\-dkms” |awk ‘{print $2’}); do
                              dpkg-reconfigure $i |tee -a /var/log/rebuild-dkms.log
                              done
                              

                              I rename it as “rebuild-dkms” and right-click on it to see the properties and make it executable, if it’s not. The script is ready. I open a terminal and run:

                              sudo ./rebuild-dkms

                              Many thanks to all of you for your help.

                              • This reply was modified 5 years, 2 months ago by andfree.
                              #6741
                              Moderator
                              caprea
                                Helpful
                                Up
                                0
                                ::

                                So you did the same on two laptops and on one the virtualbox-dkms built and on the other not?
                                Which version of antiX is on the one, where it doesn’t build ?

                                • This reply was modified 5 years, 2 months ago by caprea.
                                #6743
                                Member
                                andfree
                                  Helpful
                                  Up
                                  0
                                  ::

                                  DELETE

                                  • This reply was modified 5 years, 2 months ago by andfree. Reason: sent unfinished
                                Viewing 15 posts - 31 through 45 (of 51 total)
                                • You must be logged in to reply to this topic.