You are not logged in.

#1 2016-02-07 09:26:56

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

How to install a newer kernel version in BunsenLabs

Newer kernel versions may be needed for hardware produced after the Debian stretch repositories were "frozen" in May 2016.

The stretch-backports repository has newer packages that are compiled in a stretch chroot and use stretch dependencies and are thus "safe" to install, notwithstanding any new bugs that may be present in the newer packages.

See http://backports.debian.org/

To take advantage of these packages, add the repository to /etc/apt/sources.list

sudo tee -a /etc/apt/sources.list <<< "deb http://httpredir.debian.org/debian stretch-backports main contrib non-free"

Then update the APT package database:

sudo apt-get update

Then install the kernel metapackage (this will always link to the newest kernel version available and so will be updated):

sudo apt-get install -t stretch-backports linux-image-amd64 linux-base

Then reboot, the new kernel will be set as the default boot option in the GRUB menu.

In case of any problems, the old kernel version can still be selected from the "Advanced Options" section of the GRUB menu.

For any non-amd64 architectures, use this command to list all available kernel versions:

apt search linux-image

Then install the latest version explicitly with the stretch-backports repository targeted.

Last edited by Head_on_a_Stick (2018-06-06 06:04:02)


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#2 2016-02-19 09:35:00

bonbonboi
Member
Registered: 2016-02-18
Posts: 48

Re: How to install a newer kernel version in BunsenLabs

Nice Thanks for that

Offline

#3 2016-02-24 03:55:17

ryanjosephmiller
New Member
Registered: 2016-02-22
Posts: 2

Re: How to install a newer kernel version in BunsenLabs

This worked for me too- the new kernal fixed a few things on my mid-2014 MacBook Pro. However, hosed up my wireless, and I can't seem to fix it:

I initially had configured following:

https://wiki.debian.org/wl

My macbook has the Broadcom BCM4360

$ lspci | grep BCM
03:00.0 Network controller: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter (rev 03)

It was working great before the kernal upgrade, but failed to work after reboot. I removed the broadcom-sta-dkms package and autoremoved affiliated dependancies, and tried to re-install, but no luck.

$ sudo modprobe wl
modprobe: FATAL: Module wl not found.

Any ideas for me? I'm an old fan of #!, and was so happy to see this project, I just had to throw it on my macbook to check it out! Thanks for all the marvelous work!

Offline

#4 2016-02-24 07:40:46

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: How to install a newer kernel version in BunsenLabs

ryanjosephmiller wrote:

Any ideas for me?

You will need to rebuild the wl module for your new kernel.

First, make sure that the Debian jessie-backports line has the "non-free" component included -- I changed the OP recently so check with my guide above. Add the component if it is not present.

Then install the broadcom-sta-dkms package and the kernel headers from jessie-backports:

sudo apt-get update
sudo apt-get install -t jessie-backports linux-headers-amd64 broadcom-sta-dkms

This should then build the new modules.

https://wiki.debian.org/wl#Installation


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#5 2016-02-24 13:15:31

ryanjosephmiller
New Member
Registered: 2016-02-22
Posts: 2

Re: How to install a newer kernel version in BunsenLabs

Spectacular- Thanks! Specifying jessie-backports did the trick!

Absolutely thrilled to see the BL project!

For those others who may be interested in running BL on a relatively recent MacBook Pro- this kernel upgrade is key. Some other helpful tips:

https://wiki.archlinux.org/index.php/MacBookPro11,x

I couldn't find much specific to this generation on the Debian wiki, so it was the archwiki page above that had me hoping a newer kernel might help with some of the issues I was having (suspend for example), and I came upon this BL thread. Thanks Head_on_a_Stick!

Offline

#6 2016-04-28 17:03:54

ghorvath
Member
Registered: 2015-10-01
Posts: 130

Re: How to install a newer kernel version in BunsenLabs

Head_on_a_Stick wrote:
sudo apt-get install -t jessie-backports linux-image-amd64

I prefer to install the kernel version explicitly, not to mess with the _stable_ (non backported 3.16) kernel that came with debian jessie/bl. That is, I use the following (this is the most current kernel):

sudo apt-get install -t jessie-backports linux-image-4.5.0-0.bpo.1-amd64

Then of course, one would not know automatically if a newer kernel version is available. So I have an upgrade-system script doing the following:

#!/bin/bash
nice -n 10 sudo apt-get update
nice -n 10 sudo apt-get dist-upgrade
nice -n 10 sudo apt-get autoremove
nice -n 10 sudo apt-get autoclean
KERNEL=$(uname -r)
DEPENDS="$(apt-cache rdepends linux-image-$KERNEL | grep 'linux-image-amd64')"
if [[ "$DEPENDS" == "" ]] ; then
  echo
  echo "!!! Probably new linux image is available for manual update !!!"
  echo
fi

This way I have the stable 3.16 kernel, and also have all earlier backported kernels, as well, in case a newer backported kernel does not work out. (It happened to me that e.g. moving from 4.1 to 4.2 messed up the video driver somehow, and I had to go back to the 4.1 kernel.)

Offline

#7 2016-07-03 13:16:14

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: How to install a newer kernel version in BunsenLabs

[Bump!]

Just bumping this thread to note that the jessie-backports kernel has moved on to the 4.6 series and now requires a backported version of the linux-base package.

If you find that the kernel version is being held back after running `apt-get upgrade` or if `aptitude upgrade` offers to remove the backported kernel versions then try installing the package explicitly:

sudo apt-get install -t jessie-backports linux-base

Then run `aptitude upgrade` again.

[/Bump!]


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#8 2016-07-03 18:22:50

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,120

Re: How to install a newer kernel version in BunsenLabs

sudo apt-get install -t jessie-backports linux-image-amd64 linux-base

OK, I have some thoughts, doubts and a question about that command.

I'm running:

  $ sys
System:    Host: bunsen Kernel: 3.16.0-4-amd64 x86_64 (64 bit) Desktop: Openbox 3.5.2
           Distro: BunsenLabs 8.5 bunsen-hydrogen

What would it do for my system?  Or maybe better said:  Why would I want to update the kernel?

Also I see:
I see:

linux-image-3.16.0-4-amd64/stable,now 3.16.7-ckt25-2+deb8u2 amd64 [installed,automatic]
  Linux 3.16 for 64-bit PCs
linux-image-4.5.0-2-grsec-amd64/jessie-backports 4.5.7-1+grsec201606222150+1~bpo8+1 amd64
  Linux 4.5 for 64-bit PCs, Grsecurity protection
linux-image-4.6.0-0.bpo.1-amd64/jessie-backports 4.6.1-1~bpo8+1 amd64
  Linux 4.6 for 64-bit PCs

... which of those would the command above get?

and ..... since I have an AMD CPU, NVIDIA GPU and NVIDIA Sound card (sound is builtin):

 03 Jul 16 @ 15:09:09 ~
  $ sys
System:    Host: bunsen Kernel: 3.16.0-4-amd64 x86_64 (64 bit) Desktop: Openbox 3.5.2
           Distro: BunsenLabs 8.5 bunsen-hydrogen
 
 03 Jul 16 @ 15:09:19 ~
  $ gra
Graphics:  Card: NVIDIA GT218 [GeForce 210] bus-ID: 02:00.0
           Display Server: X.Org 1.16.4 driver: nvidia Resolution: 1920x1080@60.00hz
           GLX Renderer: GeForce 210/PCIe/SSE2 GLX Version: 3.3.0 NVIDIA 340.93 Direct Rendering: Yes
 
 03 Jul 16 @ 15:09:25 ~
  $ aud
Audio:     Card-1 NVIDIA MCP61 High Definition Audio driver: snd_hda_intel bus-ID: 00:05.0 chip-ID: 10de:03f0
           Card-2 NVIDIA High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 02:00.1 chip-ID: 10de:0be3
           Sound: Advanced Linux Sound Architecture v: k3.16.0-4-amd64
 
 03 Jul 16 @ 15:09:28 ~
  $ 

What's this and should I install it?

nvidia-kernel-3.16.0-4-amd64/stable 340.96+1+1+3.16.7-ckt20-1 amd64
  NVIDIA binary kernel module for Linux 3.16.0-4-amd64

Sorry for being such a DUH!!


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#9 2016-07-03 20:31:19

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: How to install a newer kernel version in BunsenLabs

Sector11 wrote:

Why would I want to update the kernel?

I would only recommend switching to the jessie-backports kernel if there is a lack of hardware support or specific features [1] in the stock jessie kernel.

The problem with the backported kernel is that the latest version must always be used to prevent security vulnerabilities and if there are any regressions introduced by new features then this may render the system unusable; there may also be a greater risk of (unreported) security vulnerabilities due to the new features introduced over time.

which of those would the command above get?

The linux-image-amd64 package depends on the latest available kernel image so this would be 4.6 at the moment.

Check https://packages.debian.org/jessie-back … mage-amd64 for the latest version.

What's this and should I install it?

nvidia-kernel-3.16.0-4-amd64/stable 340.96+1+1+3.16.7-ckt20-1 amd64
  NVIDIA binary kernel module for Linux 3.16.0-4-amd64

That package ensures that the NVIDIA kernel modules are rebuilt automatically after a kernel upgrade thus preventing the dreaded "black screen with blinking cursor" problem that many users mistakenly interpret as a total system crash.

The package is a dependency of nvidia-driver and is only needed if you use those drivers.

Sorry for being such a DUH!!

Don't be silly, these are all very good questions smile

[1] I use the backported kernel for better support for my favoured btrfs filesystem and also for use with my nftables-based firewall.


“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#10 2016-07-03 21:51:05

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,120

Re: How to install a newer kernel version in BunsenLabs

^  Thank you.

I guess I'll stick with 3.16 - everything seems to be working.  (I kinda figured that anyway. The 'If it ain't broke, don't fix it' rule)

That command getting the most recent version would make sense.

Originally I got my nvidia drivers via smxi, have not used that in a long time ... it's strange that NONE of the nvidia stuff installed with inxi shows in my list.

  $ ser nvidia
alias ser = aptitude search
[nothing installed]

I should look at deleting the smxi install and installing the version from the repos.

EDIT:  Post originally stated 'inxi' where it now states 'smxi'


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

#11 2016-07-03 22:04:25

damo
....moderator....
Registered: 2015-08-20
Posts: 4,169

Re: How to install a newer kernel version in BunsenLabs

Sector11 wrote:

... it's strange that NONE of the nvidia stuff installed with inxi shows in my list.

  $ ser nvidia
alias ser = aptitude search
[nothing installed]

I should look at deleting the inxi install and installing the version from the repos.

If it isn't installed with apt-get/aptitude then the apt database won't be updated, so a search won't show it. I recently went with the Debian nvidia, so now it updates and automatically builds the kernel modules. (The current versions are now compatible with my graphics card, so no need for sgfxi atm wink )


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#12 2016-07-04 00:13:26

Sector11
Tpyo Knig
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,120

Re: How to install a newer kernel version in BunsenLabs

^ PM - so as not to go too far Off Topic.


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: s12 Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
Desktop: Openbox 3.5.2 dm: (startx) Distro: Debian GNU/Linux 8

Offline

Board footer

Powered by FluxBB