Jump to content


Need Help Installing newer Kernel Debian Stretch

kernel debian

  • Please log in to reply
18 replies to this topic

#1 OFFLINE   mhbell

mhbell

    Posting Prodigy

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 2,274 posts

Posted 16 April 2019 - 04:31 PM

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, 16 April 2019 - 04:33 PM.

Registered Linux User #239772
Mint 18.1 Cinnimon, MX-16, Siduction LXQT, Debian Stretch, and Other Linux Distro's
https://pctechman.wordpress.com/

#2 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,709 posts

Posted 16 April 2019 - 04:55 PM

I'm on mobile but this should help https://wiki.debian....ToUpgradeKernel
Posted ImagePosted Image
Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#3 OFFLINE   mhbell

mhbell

    Posting Prodigy

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 2,274 posts

Posted 16 April 2019 - 05:15 PM

View Postsecuritybreach, on 16 April 2019 - 04:55 PM, said:

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.

Quote

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  

Registered Linux User #239772
Mint 18.1 Cinnimon, MX-16, Siduction LXQT, Debian Stretch, and Other Linux Distro's
https://pctechman.wordpress.com/

#4 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,709 posts

Posted 16 April 2019 - 05:15 PM

What does your /etc/apt/sources.lst look like?
Posted ImagePosted Image
Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#5 OFFLINE   mhbell

mhbell

    Posting Prodigy

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 2,274 posts

Posted 16 April 2019 - 06:41 PM

View Postsecuritybreach, on 16 April 2019 - 05:15 PM, said:

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.debi...ebian-security/ stretch/updates main contrib non-free
deb-src http://security.debi...ebian-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
Registered Linux User #239772
Mint 18.1 Cinnimon, MX-16, Siduction LXQT, Debian Stretch, and Other Linux Distro's
https://pctechman.wordpress.com/

#6 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,709 posts

Posted 16 April 2019 - 07:11 PM

That looks fine but do this. First back up the sources.lst and then follow this: http://jensd.be/818/...-stretch-stable
Posted ImagePosted Image
Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#7 OFFLINE   mhbell

mhbell

    Posting Prodigy

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 2,274 posts

Posted 16 April 2019 - 08:25 PM

View Postsecuritybreach, on 16 April 2019 - 07:11 PM, said:

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
Registered Linux User #239772
Mint 18.1 Cinnimon, MX-16, Siduction LXQT, Debian Stretch, and Other Linux Distro's
https://pctechman.wordpress.com/

#8 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,709 posts

Posted 16 April 2019 - 08:28 PM

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/
Posted ImagePosted Image
Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#9 OFFLINE   sunrat

sunrat

    Thread Kahuna

  • Forum Moderators
  • 5,969 posts

Posted 16 April 2019 - 08:29 PM

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.
registered Linux user number 324659  ||    The importance of Reading The *Fine* Manual! :D
Posted ImagePosted ImagePosted ImagePosted Image
For the things we have to learn before we can do them, we learn by doing them.

#10 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,709 posts

Posted 16 April 2019 - 08:30 PM

View Postsunrat, on 16 April 2019 - 08:29 PM, said:

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:
Posted ImagePosted Image
Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#11 OFFLINE   sunrat

sunrat

    Thread Kahuna

  • Forum Moderators
  • 5,969 posts

Posted 16 April 2019 - 08:42 PM

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.

View Postsecuritybreach, on 16 April 2019 - 08:28 PM, said:

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!
Posted Image
registered Linux user number 324659  ||    The importance of Reading The *Fine* Manual! :D
Posted ImagePosted ImagePosted ImagePosted Image
For the things we have to learn before we can do them, we learn by doing them.

#12 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,709 posts

Posted 16 April 2019 - 08:49 PM

It's not that bad B)
Posted ImagePosted Image
Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#13 OFFLINE   mhbell

mhbell

    Posting Prodigy

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 2,274 posts

Posted 16 April 2019 - 10:56 PM

View Postsecuritybreach, on 16 April 2019 - 08:28 PM, said:

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
Registered Linux User #239772
Mint 18.1 Cinnimon, MX-16, Siduction LXQT, Debian Stretch, and Other Linux Distro's
https://pctechman.wordpress.com/

#14 OFFLINE   sunrat

sunrat

    Thread Kahuna

  • Forum Moderators
  • 5,969 posts

Posted 17 April 2019 - 08:20 PM

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:".
registered Linux user number 324659  ||    The importance of Reading The *Fine* Manual! :D
Posted ImagePosted ImagePosted ImagePosted Image
For the things we have to learn before we can do them, we learn by doing them.

#15 OFFLINE   mhbell

mhbell

    Posting Prodigy

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 2,274 posts

Posted 17 April 2019 - 11:06 PM

View Postsunrat, on 17 April 2019 - 08:20 PM, said:

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.
Registered Linux User #239772
Mint 18.1 Cinnimon, MX-16, Siduction LXQT, Debian Stretch, and Other Linux Distro's
https://pctechman.wordpress.com/

#16 OFFLINE   securitybreach

securitybreach

    CLI Phreak

  • Forum Admins
  • 24,709 posts

Posted 17 April 2019 - 11:07 PM

View Postsunrat, on 17 April 2019 - 08:20 PM, said:

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.
Posted ImagePosted Image
Configs/PGP Key/comhack π

"Do you begin to see, then, what kind of world we are creating? It is the exact opposite of the stupid hedonistic Utopias that the old reformers imagined. A world of fear and treachery and torment, a world of trampling and being trampled upon, a world which will grow not less but more merciless as it refines itself. Progress in our world will be progress toward more pain." -George Orwell, 1984

#17 OFFLINE   sunrat

sunrat

    Thread Kahuna

  • Forum Moderators
  • 5,969 posts

Posted 17 April 2019 - 11:43 PM

View Postmhbell, on 17 April 2019 - 11:06 PM, said:

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.
registered Linux user number 324659  ||    The importance of Reading The *Fine* Manual! :D
Posted ImagePosted ImagePosted ImagePosted Image
For the things we have to learn before we can do them, we learn by doing them.

#18 OFFLINE   mhbell

mhbell

    Posting Prodigy

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 2,274 posts

Posted 17 April 2019 - 11:58 PM

View Postsunrat, on 17 April 2019 - 11:43 PM, said:

View Postmhbell, on 17 April 2019 - 11:06 PM, said:

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

Quote

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.
Registered Linux User #239772
Mint 18.1 Cinnimon, MX-16, Siduction LXQT, Debian Stretch, and Other Linux Distro's
https://pctechman.wordpress.com/

#19 OFFLINE   mhbell

mhbell

    Posting Prodigy

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 2,274 posts

Posted 18 April 2019 - 11:25 AM

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
Registered Linux User #239772
Mint 18.1 Cinnimon, MX-16, Siduction LXQT, Debian Stretch, and Other Linux Distro's
https://pctechman.wordpress.com/





Also tagged with one or more of these keywords: kernel, debian

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users