Jump to content

Need Help Installing newer Kernel Debian Stretch


mhbell

Recommended Posts

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 by mhbell
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

securitybreach

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 :thumbsup:

Link to comment
Share on other sites

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!

cautionary.png

  • Like 1
Link to comment
Share on other sites

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 make

make 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

Link to comment
Share on other sites

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:".

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

securitybreach

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...