mhbell Posted April 16, 2019 Share Posted April 16, 2019 (edited) I need help installing a newer kernel in Debian stretch So I can have better graphics. I am not familiar with the backports So I must be doing something wrong. Here is what I've tried Using the debian method and the method for the backports. I need at least kernel 4.18.0 any help appreciated. Mel I Changed /etc/apt/sources.list to add non-free and backports deb http://deb.debian.org/debian-security/ stretch/updates main contrib non-free deb-src http://deb.debian.org/debian-security/ stretch/updates main contrib non-free deb http://deb.debian.org/debian stretch-updates main contrib non-free deb-src http://deb.debian.org/debian stretch-updates main contrib non-free deb http://ftp.debian.org/debian stretch-backports main Install New Linux Kernel Debian Stretch 9 using the debian way apt-cache search linux-image apt-get install (Whatever linux-image-That you Choose) I get a file not found Update kernel aptitude search linux-image apt-get -t stretch-backports upgrade aptitude search linux-image apt-get -t stretch-backports install linux-image-(Whatever I choose to install). reboot Same here I get a file not found or no such file dpkg --get-selections | grep linux-image Edited April 16, 2019 by mhbell Quote Link to comment Share on other sites More sharing options...
securitybreach Posted April 16, 2019 Share Posted April 16, 2019 I'm on mobile but this should help https://wiki.debian.org/HowToUpgradeKernel Quote Link to comment Share on other sites More sharing options...
mhbell Posted April 16, 2019 Author Share Posted April 16, 2019 I'm on mobile but this should help https://wiki.debian....ToUpgradeKernel I have already visited the wiki and this is what I got and posted above. Install New Linux Kernel Debian Stretch 9 using the debian way apt-cache search linux-image apt-get install (Whatever linux-image-That you Choose) I get a file not found 9 Quote Link to comment Share on other sites More sharing options...
securitybreach Posted April 16, 2019 Share Posted April 16, 2019 What does your /etc/apt/sources.lst look like? Quote Link to comment Share on other sites More sharing options...
mhbell Posted April 16, 2019 Author Share Posted April 16, 2019 What does your /etc/apt/sources.lst look like? # deb cdrom:[Official Debian GNU/Linux Live 9.8.0 cinnamon 2019-02-16T13:21]/ stretch main # deb cdrom:[Official Debian GNU/Linux Live 9.8.0 cinnamon 2019-02-16T13:21]/ stretch main deb http://mirrors.xmission.com/debian/ stretch main non-free contrib deb-src http://mirrors.xmission.com/debian/ stretch main non-free contrib deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free deb-src http://security.debian.org/debian-security/ stretch/updates main contrib non-free # stretch-updates, previously known as 'volatile' deb http://mirrors.xmission.com/debian/ stretch-updates main contrib non-free deb-src http://mirrors.xmission.com/debian/ stretch-updates main contrib non-free # added backports to list deb http://ftp.de.debian.org/debian stretch-backports main # added the below from forum deb http://deb.debian.org/debian-security/ stretch/updates main contrib non-free deb-src http://deb.debian.org/debian-security/ stretch/updates main contrib non-free deb http://deb.debian.org/debian stretch-updates main contrib non-free deb-src http://deb.debian.org/debian stretch-updates main contrib non-free deb http://ftp.debian.org/debian stretch-backports main Quote Link to comment Share on other sites More sharing options...
securitybreach Posted April 16, 2019 Share Posted April 16, 2019 That looks fine but do this. First back up the sources.lst and then follow this: http://jensd.be/818/linux/install-a-newer-kernel-in-debian-9-stretch-stable Quote Link to comment Share on other sites More sharing options...
mhbell Posted April 17, 2019 Author Share Posted April 17, 2019 That looks fine but do this. First back up the sources.lst and then follow this: http://jensd.be/818/...-stretch-stable I did that but still no joy. It did say that I need 4.19.28.1 or something like that but it could not find it. maybe I'm using the wrong syntax. Guess I will have to wait until the next debian version comes out. I understand that it will have a 5.0--- kernel I only hope that debian will finally support the ryzen cpu's. Mel Quote Link to comment Share on other sites More sharing options...
securitybreach Posted April 17, 2019 Share Posted April 17, 2019 I know that it is possible as I was running 5.0 on my debian vm before blowing it away. I did have to compile it but it works: https://www.cyberciti.biz/linux-news/linux-kernel-5-0-released-how-to-install/ Quote Link to comment Share on other sites More sharing options...
sunrat Posted April 17, 2019 Share Posted April 17, 2019 You may have forgotten to update, and for backports you need to specify the repo as you already did with the -t switch. So: apt update apt install -t stretch-backports linux-image-<whatever> There is also a metapackage called linux-image-amd64 which should automatically upgrade your kernel to the most recent each time a new one is released when you run upgrade. If you want that: apt install -t stretch-backports linux-image-amd64 Debian doesn't have 5.0 kernels yet, even in Sid and experimental. I'm running siduction's latest which is 5.07. If you absolutely need a 5.0 kernel, I highly recommend the Liquorix one which you can get from Liquorix repo or MX also has them in their "test" repo. They are compatible with Stretch. 1 Quote Link to comment Share on other sites More sharing options...
securitybreach Posted April 17, 2019 Share Posted April 17, 2019 You may have forgotten to update, and for backports you need to specify the repo as you already did with the -t switch. So: apt update apt install -t stretch-backports linux-image-<whatever> There is also a metapackage called linux-image-amd64 which should automatically upgrade your kernel to the most recent each time a new one is released when you run upgrade. If you want that: apt install -t stretch-backports linux-image-amd64 There you go Quote Link to comment Share on other sites More sharing options...
sunrat Posted April 17, 2019 Share Posted April 17, 2019 Debian Buster probably not have a 5.0.x kernel, most likely it will have a 4.19 kernel like the one in backports (and testing) currently. I know that it is possible as I was running 5.0 on my debian vm before blowing it away. I did have to compile it but it works: https://www.cybercit...how-to-install/ I never compiled a kernel, never want to! 1 Quote Link to comment Share on other sites More sharing options...
securitybreach Posted April 17, 2019 Share Posted April 17, 2019 It's not that bad Quote Link to comment Share on other sites More sharing options...
mhbell Posted April 17, 2019 Author Share Posted April 17, 2019 I know that it is possible as I was running 5.0 on my debian vm before blowing it away. I did have to compile it but it works: https://www.cybercit...how-to-install/ Following the directions I get to the part to makemake menuconfig the menu config and I get failed errors. So Debian must not have all of the tools needed to do this. I had to install ncurses-dev the first time to make it run the second time is when I got the failed. I agree with SunRat. LoL! Mel Quote Link to comment Share on other sites More sharing options...
sunrat Posted April 18, 2019 Share Posted April 18, 2019 Mel, did you try what I posted in post #9? Compiling a kernel is way overkill for what you need. Backports should work fine, or Liquorix if you absolutely need 5.0 kernel. Liquorix installation instructions on this page: https://liquorix.net/ Just 2 simple commands which you can copy/paste (if you use sudo). Just look under "Debian Prerequisites:" and "64-bit:". Quote Link to comment Share on other sites More sharing options...
mhbell Posted April 18, 2019 Author Share Posted April 18, 2019 Mel, did you try what I posted in post #9? Compiling a kernel is way overkill for what you need. Backports should work fine, or Liquorix if you absolutely need 5.0 kernel. Liquorix installation instructions on this page: https://liquorix.net/ Just 2 simple commands which you can copy/paste (if you use sudo). Just look under "Debian Prerequisites:" and "64-bit:". I tried the above and it did not work. I wonder if it is because I am using debian cinnamon instead of plain debian stretch. or maybe because of my Ryzen 2200G cpu. Quote Link to comment Share on other sites More sharing options...
securitybreach Posted April 18, 2019 Share Posted April 18, 2019 Mel, did you try what I posted in post #9? Compiling a kernel is way overkill for what you need. Backports should work fine, or Liquorix if you absolutely need 5.0 kernel Well you know me, I tend to take the long route sometimes. Quote Link to comment Share on other sites More sharing options...
sunrat Posted April 18, 2019 Share Posted April 18, 2019 I tried the above and it did not work. I wonder if it is because I am using debian cinnamon instead of plain debian stretch. or maybe because of my Ryzen 2200G cpu. How do you mean "did not work"? Wouldn't install? Couldn't boot after install? If you post whatever error messages were shown we can work through it. I've had easy installs and good experiences with both backports and Liquorix. Quote Link to comment Share on other sites More sharing options...
mhbell Posted April 18, 2019 Author Share Posted April 18, 2019 I tried the above and it did not work. I wonder if it is because I am using debian cinnamon instead of plain debian stretch. or maybe because of my Ryzen 2200G cpu. How do you mean "did not work"? Wouldn't install? Couldn't boot after install? If you post whatever error messages were shown we can work through it. I've had easy installs and good experiences with both backports and Liquorix. It would not install. I finally got a kernel by using the auto update latest apt install -t stretch-backports linux-image-amd64 but it made everything on the screen to big. So I purged it. it installed 19.0.0 and in a earlier caution it said that was the wrong one and that 19.0.28 xxxx was the one to get. Quote Link to comment Share on other sites More sharing options...
mhbell Posted April 18, 2019 Author Share Posted April 18, 2019 Thanks sunrat for all of your help it is appreciated. I have installed a new bios firmware for my asus motherboard and ryzen 2200G cpu. I will reinstall debian cinnamon and see if anything has changed, The suggested kernel for my hardware is 4.19.28, but could not find it in the backports. That is the kernel I am running in Mint and it is working fine so far. with the new Bios firmware I will try the Liquorix again. will keep the forum posted. This thread is getting long may repost results in a new post. Mel Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.