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.
-
AuthorPosts
-
February 18, 2018 at 7:03 am #6706Forum Admin
anticapitalista
::Where might the antix kernel source be downloaded? (working addition).
Looked on github, but didn’t see it in the 128 listed projects:)Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
February 18, 2018 at 7:38 am #6707Forum Admin
rokytnji
::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 problemsFebruary 18, 2018 at 9:58 am #6713Member
sleekmason
::Where might the antix kernel source be downloaded? (working addition).
Looked on github, but didn’t see it in the 128 listed projects:)Absolutely awesome! Thank you.
February 19, 2018 at 12:13 am #6722Memberandfree
::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 doneI 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 foundFebruary 19, 2018 at 2:37 am #6723Forum Admin
anticapitalista
::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.
February 19, 2018 at 5:44 am #6724Memberandfree
::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.February 19, 2018 at 7:29 am #6726Forum Admin
anticapitalista
::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.
February 19, 2018 at 10:32 am #6729Memberandfree
::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).
February 19, 2018 at 10:57 am #6730Memberandfree
::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.
February 19, 2018 at 11:27 am #6732Moderator
caprea
February 19, 2018 at 12:06 pm #6733Anonymous
::used geany to create this script named “rebuild-dkms” in my home folder
^—v
bash: rebuild-dkms: command not foundHmm, maybe you just forgot to set the newly-created script executable?
try:chmod +x ~/rebuild-dkms
sudo ~/rebuild-dkmsFebruary 19, 2018 at 3:07 pm #6736Member
sleekmason
::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; doneFebruary 19, 2018 at 3:30 pm #6737Memberandfree
::You missed a little point
sudo ./rebuild-dkmsThat’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 doneI 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-dkmsMany thanks to all of you for your help.
- This reply was modified 5 years, 2 months ago by andfree.
February 19, 2018 at 7:47 pm #6741Moderator
caprea
::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.
February 20, 2018 at 12:16 am #6743Memberandfree
::DELETE
- This reply was modified 5 years, 2 months ago by andfree. Reason: sent unfinished
-
AuthorPosts
- You must be logged in to reply to this topic.