What kernel and headers I should to install in LMDE2?

Archived topics about LMDE 1 and LMDE 2
Locked
Turin_27

What kernel and headers I should to install in LMDE2?

Post by Turin_27 »

I'm using still the old 3.16 image of the kernel.

Doing a apt-cache search linux-image* I can see a lot of possible options. In a summary (removing the options that are not of the amd64 architecture, and also those with an older numbering, and also the debugging versions), still I have these:

linux-image-4.9.0-0.bpo.8-amd64 - Linux 4.9 for 64-bit PCs
linux-image-4.9.0-0.bpo.8-rt-amd64 - Linux 4.9 for 64-bit PCs, PREEMPT_RT
linux-image-4.9-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-4.9-rt-amd64 - Linux for 64-bit PCs (meta-package), PREEMPT_RT


"bpo" = backport (a software improved with patches of latest versions). In this case, why the last two kernels are not improved like the bpo versions?

"rt" is a patch, so, how I can know if I need to install this version patched?

The "meta-packege" versions are "linked" to the impreved and/or patched versions?


So, what should I do?

The inxi output:

Code: Select all

System:    Host: xxxxx Kernel: 3.16.0-7-amd64 x86_64 (64 bit gcc: 4.9.2) 
           Desktop: Cinnamon 2.4.7 (Gtk 3.14.5+4) Distro: LinuxMint 2 betsy 
Machine:   System: Gigabyte product: N/A
           Mobo: Gigabyte model: F2A68HM-H v: x.x Bios: American Megatrends v: FC date: 01/19/2016
CPU:       Dual core AMD A4-6300 APU with Radeon HD Graphics (-MCP-) cache: 2048 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm) bmips: 14773 
           Clock Speeds: 1: 1800 MHz 2: 1800 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Richland [Radeon HD 8370D] bus-ID: 00:01.0
           Display Server: X.Org 1.16.4 drivers: ati,radeon (unloaded: fbdev,vesa) Resolution: 1360x768@60.02hz
           GLX Renderer: Gallium 0.4 on AMD ARUBA GLX Version: 3.0 Mesa 10.3.2 Direct Rendering: Yes
Audio:     Card-1 Advanced Micro Devices [AMD] FCH Azalia Controller driver: snd_hda_intel bus-ID: 00:14.2 
           Card-2 Advanced Micro Devices [AMD/ATI] Trinity HDMI Audio Controller 
           driver: snd_hda_intel bus-ID: 00:01.1 
           Sound: Advanced Linux Sound Architecture v: k3.16.0-7-amd64
Network:   Card: Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
           driver: 8139too v: 0.9.28 port: e000 bus-ID: 01:06.0
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 500.1GB (3.5% used) ID-1: /dev/sda model: WDC_WD5000AAKX size: 500.1GB
Partition: ID-1: / size: 100G used: 17G (18%) fs: ext4 dev: /dev/sda5 
Sensors:   System Temperatures: cpu: 17.5C mobo: N/A gpu: 7.0 
           Fan Speeds (in rpm): cpu: N/A 
Repos:     Active apt sources in file: /etc/apt/sources.list.d/jessie-backports.list
           deb http://http.debian.net/debian jessie-backports main
           Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
           deb http://packages.linuxmint.com betsy main upstream import
           deb http://ftp.us.debian.org/debian jessie main contrib non-free
           deb http://ftp.us.debian.org/debian jessie-updates main contrib non-free
           deb http://security.debian.org jessie/updates main contrib non-free
           deb http://www.deb-multimedia.org jessie main non-free
           deb http://extra.linuxmint.com betsy main
           Active apt sources in file: /etc/apt/sources.list.d/steam.list
           deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
           deb-src [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam
Info:      Processes: 152 Uptime: 51 min Memory: 1478.9/5105.3MB Init: SysVinit runlevel: 2 Gcc sys: 4.9.2 
           Client: Shell (bash 4.3.301) inxi: 2.1.28 

As for the headers, I read this article and in theory, doing this comand "apt install linux-headers-$(uname -r)" I will to install all the headers that I need. Really this it's all?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
zorzi

Re: What kernel and headers I should to install in LMDE2?

Post by zorzi »

Hello,

That seems correct.

Just be aware that your current meta-packages "linux-image-amd64" and "linux-headers-amd64" are linked to kernel 3.16.

It means that you should not upgrade these two packages if you still want to receive kernel 3.16 automatic security updates.

Meanwhile, if you do not need 3.16 kernel anymore, just installing/upgrading these two metapackages from backports should do the job. And, thus, you will receive backports kernel "automatic" updates.
Turin_27

Re: What kernel and headers I should to install in LMDE2?

Post by Turin_27 »

zorzi wrote: Sun Dec 30, 2018 5:25 am Just be aware that your current meta-packages "linux-image-amd64" and "linux-headers-amd64" are linked to kernel 3.16.

It means that you should not upgrade these two packages if you still want to receive kernel 3.16 automatic security updates.
Hmmm... although at first I was not interested in the updates for 3.16 if I can jump to kernel 4.9, now I can see that this would to be a good option if the 4.9 fails.

But what I definitely want is to try to have a more current kernel. It's not clear to me which one I should install. Maybe the "bpo rt" version (linux-image-4.9.0-0.bpo.8-rt-amd64), since - from what I understand - it includes all the patches?

In another post, Fred explained to me that before installing a new kernel, I must add the Jessie backports to the list of sources.
Fred Barclay wrote: Sat Dec 29, 2018 3:34 pm Only kernel 3.16 is available in the primary repositories for Debian Jessie. You can add the "backports" repositories and then install kernel 4.9 from them (I used to do this when I used LMDE 2).
Instructions for adding backports are here. Make sure you install the linux kernel meta-package instead of specifying the exact package so that you'll continue to get updates. This should wo

Code: Select all

sudo su
echo "deb http://ftp.debian.org/debian jessie-backports main contrib non-free" >> /etc/apt/sources.list.d/jessie-backports.list
exit
sudo apt-get update
sudo apt-get install -t jessie-backports linux-image-amd46 linux-headers-amd64
Cheers!
Fred
I'm sorry if I get a little tangled up, I really find this complicated. Thank you very much for your help.
zorzi

Re: What kernel and headers I should to install in LMDE2?

Post by zorzi »

Turin_27 wrote: Wed Jan 02, 2019 1:55 am
zorzi wrote: Sun Dec 30, 2018 5:25 am Just be aware that your current meta-packages "linux-image-amd64" and "linux-headers-amd64" are linked to kernel 3.16.

It means that you should not upgrade these two packages if you still want to receive kernel 3.16 automatic security updates.
Hmmm... although at first I was not interested in the updates for 3.16 if I can jump to kernel 4.9, now I can see that this would to be a good option if the 4.9 fails.

But what I definitely want is to try to have a more current kernel. It's not clear to me which one I should install. Maybe the "bpo rt" version (linux-image-4.9.0-0.bpo.8-rt-amd64), since - from what I understand - it includes all the patches?

In another post, Fred explained to me that before installing a new kernel, I must add the Jessie backports to the list of sources.
Fred Barclay wrote: Sat Dec 29, 2018 3:34 pm Only kernel 3.16 is available in the primary repositories for Debian Jessie. You can add the "backports" repositories and then install kernel 4.9 from them (I used to do this when I used LMDE 2).
Instructions for adding backports are here. Make sure you install the linux kernel meta-package instead of specifying the exact package so that you'll continue to get updates. This should wo

Code: Select all

sudo su
echo "deb http://ftp.debian.org/debian jessie-backports main contrib non-free" >> /etc/apt/sources.list.d/jessie-backports.list
exit
sudo apt-get update
sudo apt-get install -t jessie-backports linux-image-amd46 linux-headers-amd64
Cheers!
Fred
I'm sorry if I get a little tangled up, I really find this complicated. Thank you very much for your help.
Yes, don't forget to add backports sources as indicated by Fred.

Fred's tuto is probably the simpliest way to proceed. You just have to notice that "linux-image-amd64" and "linux-headers-amd64" stable meta-packages will be replaced by backports ones (though you can easily revert later...). Anyway, 3.16 kernel won't be removed. So you will still have the boot choice between 3.19 and 4.9 kernels.

If you want to keep "linux-image-amd64" and "linux-headers-amd64" from stable. You may try to install "manually" following packages:

Code: Select all

sudo apt-get install -t jessie-backports linux-kbuild-4.9 linux-image-4.9.0-8-amd64 linux-headers-4.9.0-8-amd64 linux-headers-4.9.0-8-common
That should do the job.
Turin_27

Re: What kernel and headers I should to install in LMDE2?

Post by Turin_27 »

Well... I already followed the steps that Fred had recommend me.

But, some error messages appeared:

Code: Select all

/etc/kernel/header_postinst.d/dkms:
[i]Error! Bad return status for module build on kernel: 4.9.0-0.bpo.6-amd64 (x86_64)
Consult /var/lib/dkms/fglrx/15.201.1151/build/make.log for more information.
Error! Bad return status for module build on kernel: 4.9.0-0.bpo.6-amd64 (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.59/build/make.log for more information.
Error! Bad return status for module build on kernel: 4.9.0-0.bpo.6-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox-guest/4.3.36/build/make.log for more information.
Configurando linux-headers-amd64 (4.9+80+deb9u4~bpo8+1) ...
Configurando linux-image-4.9.0-0.bpo.6-amd64 (4.9.88-1+deb9u1~bpo8+1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-3.16.0-7-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-3.16.0-7-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-4.9.0-0.bpo.6-amd64
I: /initrd.img is now a symlink to boot/initrd.img-4.9.0-0.bpo.6-amd64
/etc/kernel/postinst.d/dkms:
Error! Bad return status for module build on kernel: 4.9.0-0.bpo.6-amd64 (x86_64)
Consult /var/lib/dkms/fglrx/15.201.1151/build/make.log for more information.
Error! Bad return status for module build on kernel: 4.9.0-0.bpo.6-amd64 (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.59/build/make.log for more information.
Error! Bad return status for module build on kernel: 4.9.0-0.bpo.6-amd64 (x86_64)[/i]
That is the text of all process (I have translate the messages from the Spanish to the English, so they might look a little unusual):

Code: Select all

The following extra packages will be installed:
  initramfs-tools linux-compiler-gcc-4.9-x86 linux-headers-4.9.0-0.bpo.6-amd64 linux-headers-4.9.0-0.bpo.6-common linux-image-4.9.0-0.bpo.6-amd64 linux-kbuild-4.9
Suggested Packages:
  linux-doc-4.9 debian-kernel-handbook
The following NEW packages will be installed:
  linux-headers-4.9.0-0.bpo.6-amd64 linux-headers-4.9.0-0.bpo.6-common linux-image-4.9.0-0.bpo.6-amd64 linux-kbuild-4.9
The following packages will be updated:
  initramfs-tools linux-compiler-gcc-4.9-x86 linux-headers-amd64 linux-image-amd64
4 actualizados, 4 nuevos se instalarán, 0 para eliminar y 399 no actualizados.
You need to download 48.3 MB of files.
250 MB of additional disk space will be used after this operation.
Do you want to continue? [S/n] S
Des:1 http://ftp.us.debian.org/debian/ jessie/main initramfs-tools all 0.120+deb8u3 [96,7 kB]
Des:2 http://ftp.debian.org/debian/ jessie-backports/main linux-compiler-gcc-4.9-x86 amd64 4.9.88-1+deb9u1~bpo8+1 [539 kB]
Des:3 http://ftp.debian.org/debian/ jessie-backports/main linux-headers-4.9.0-0.bpo.6-common all 4.9.88-1+deb9u1~bpo8+1 [7.562 kB]
Des:4 http://ftp.debian.org/debian/ jessie-backports/main linux-kbuild-4.9 amd64 4.9.88-1+deb9u1~bpo8+1 [735 kB]                                                       
Des:5 http://ftp.debian.org/debian/ jessie-backports/main linux-headers-4.9.0-0.bpo.6-amd64 amd64 4.9.88-1+deb9u1~bpo8+1 [466 kB]                                      
Des:6 http://ftp.debian.org/debian/ jessie-backports/main linux-headers-amd64 amd64 4.9+80+deb9u4~bpo8+1 [6.296 B]                                                     
Des:7 http://ftp.debian.org/debian/ jessie-backports/main linux-image-4.9.0-0.bpo.6-amd64 amd64 4.9.88-1+deb9u1~bpo8+1 [38,9 MB]                                       
Des:8 http://ftp.debian.org/debian/ jessie-backports/main linux-image-amd64 amd64 4.9+80+deb9u4~bpo8+1 [7.332 B]                                                       
Downloaded 48,3 MB en 1min 19s (606 kB/s)                                                                                                                             
(Leyendo la base de datos ... 169217 ficheros o directorios instalados actualmente.)
Preparing to unpack .../initramfs-tools_0.120+deb8u3_all.deb ...
Unpacking initramfs-tools (0.120+deb8u3) sobre (0.119) ...
Preparing to unpack .../linux-compiler-gcc-4.9-x86_4.9.88-1+deb9u1~bpo8+1_amd64.deb ...
Unpacking linux-compiler-gcc-4.9-x86 (4.9.88-1+deb9u1~bpo8+1) sobre (3.16.59-1) ...
Seleccionando el paquete linux-headers-4.9.0-0.bpo.6-common previamente no seleccionado.
Preparing to unpack .../linux-headers-4.9.0-0.bpo.6-common_4.9.88-1+deb9u1~bpo8+1_all.deb ...
Unpacking linux-headers-4.9.0-0.bpo.6-common (4.9.88-1+deb9u1~bpo8+1) ...
Seleccionando el paquete linux-kbuild-4.9 previamente no seleccionado.
Preparing to unpack .../linux-kbuild-4.9_4.9.88-1+deb9u1~bpo8+1_amd64.deb ...
Unpacking linux-kbuild-4.9 (4.9.88-1+deb9u1~bpo8+1) ...
Seleccionando el paquete linux-headers-4.9.0-0.bpo.6-amd64 previamente no seleccionado.
Preparing to unpack .../linux-headers-4.9.0-0.bpo.6-amd64_4.9.88-1+deb9u1~bpo8+1_amd64.deb ...
Unpacking linux-headers-4.9.0-0.bpo.6-amd64 (4.9.88-1+deb9u1~bpo8+1) ...
Preparing to unpack .../linux-headers-amd64_4.9+80+deb9u4~bpo8+1_amd64.deb ...
Unpacking linux-headers-amd64 (4.9+80+deb9u4~bpo8+1) sobre (3.16+63+deb8u3) ...
Seleccionando el paquete linux-image-4.9.0-0.bpo.6-amd64 previamente no seleccionado.
Preparing to unpack .../linux-image-4.9.0-0.bpo.6-amd64_4.9.88-1+deb9u1~bpo8+1_amd64.deb ...
Unpacking linux-image-4.9.0-0.bpo.6-amd64 (4.9.88-1+deb9u1~bpo8+1) ...
Preparing to unpack .../linux-image-amd64_4.9+80+deb9u4~bpo8+1_amd64.deb ...
Unpacking linux-image-amd64 (4.9+80+deb9u4~bpo8+1) sobre (3.16+63+deb8u3) ...
Procesando disparadores para man-db (2.7.0.2-5) ...
Procesando disparadores para doc-base (0.10.6) ...
Processing 1 changed doc-base file...
Registrando documentos con scrollkeeper...
Configuring initramfs-tools (0.120+deb8u3) ...
update-initramfs: deferring update (trigger activated)
Configuring linux-compiler-gcc-4.9-x86 (4.9.88-1+deb9u1~bpo8+1) ...
Configuring linux-headers-4.9.0-0.bpo.6-common (4.9.88-1+deb9u1~bpo8+1) ...
Configuring linux-kbuild-4.9 (4.9.88-1+deb9u1~bpo8+1) ...
Configuring linux-headers-4.9.0-0.bpo.6-amd64 (4.9.88-1+deb9u1~bpo8+1) ...
/etc/kernel/header_postinst.d/dkms:
Error! Bad return status for module build on kernel: 4.9.0-0.bpo.6-amd64 (x86_64)
Consult /var/lib/dkms/fglrx/15.201.1151/build/make.log for more information.
Error! Bad return status for module build on kernel: 4.9.0-0.bpo.6-amd64 (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.59/build/make.log for more information.
Error! Bad return status for module build on kernel: 4.9.0-0.bpo.6-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox-guest/4.3.36/build/make.log for more information.
Configuring linux-headers-amd64 (4.9+80+deb9u4~bpo8+1) ...
Configuring linux-image-4.9.0-0.bpo.6-amd64 (4.9.88-1+deb9u1~bpo8+1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-3.16.0-7-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-3.16.0-7-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-4.9.0-0.bpo.6-amd64
I: /initrd.img is now a symlink to boot/initrd.img-4.9.0-0.bpo.6-amd64
/etc/kernel/postinst.d/dkms:
Error! Bad return status for module build on kernel: 4.9.0-0.bpo.6-amd64 (x86_64)
Consult /var/lib/dkms/fglrx/15.201.1151/build/make.log for more information.
Error! Bad return status for module build on kernel: 4.9.0-0.bpo.6-amd64 (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.59/build/make.log for more information.
Error! Bad return status for module build on kernel: 4.9.0-0.bpo.6-amd64 (x86_64)
Consult /var/lib/dkms/virtualbox-guest/4.3.36/build/make.log for more information.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.9.0-0.bpo.6-amd64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.9.0-0.bpo.6-amd64
Found initrd image: /boot/initrd.img-4.9.0-0.bpo.6-amd64
Found linux image: /boot/vmlinuz-3.16.0-7-amd64
Found initrd image: /boot/initrd.img-3.16.0-7-amd64
Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Found initrd image: /boot/initrd.img-3.16.0-4-amd64
Found memtest86+ image: /boot/memtest86+.bin
Found memtest86+ multiboot image: /boot/memtest86+_multiboot.bin
  No volume groups found
Found LMDE 3 Cindy (3) en /dev/sda6
Found Windows 7 (loader) en /dev/sdb1
Found LMDE 2 Betsy (2) en /dev/sdb3
done
Configuring linux-image-amd64 (4.9+80+deb9u4~bpo8+1) ...
Processing triggers for initramfs-tools (0.120+deb8u3) ...
update-initramfs: Generating /boot/initrd.img-4.9.0-0.bpo.6-amd64
I don't know what happened, but the 4.9 kernel appeared in the Update Manager, so something must have gone right, despite multiple error messages. Edit: after a reboot, Cinnamon enter in a loop of fails, and don't matter how many times I restarted it, always fails. I need to unistall the Catalyst and reinstall it?

By the way, why is it necessary to add the non free backports before installing the kernel? What happens if you install it directly from the repositories? Before writing this post, I had installed a 4.9 kernel from Synaptic -in another LMDE2 system- to try and there were no noticeable errors (I couldn't install the Catalyst driver, but then I knew I was doing something so that it didn't usually work -not even with the 3.16 kernel). Of course, I understand that if I don't add the backport, the installed kernel won't update, but if I install it later, what would be the problem?
Last edited by Turin_27 on Sun Jan 06, 2019 8:38 am, edited 2 times in total.
zorzi

Re: What kernel and headers I should to install in LMDE2?

Post by zorzi »

I need to unistall the Catalyst and reinstall it?
Yes, proprietary driver may be the cause.

Can you still boot on kernel 3.16 ?
Turin_27

Re: What kernel and headers I should to install in LMDE2?

Post by Turin_27 »

Yeah.

I already boot the 3.16 kernel and remove the 4.9 kernel, and the Catalyst. I use the system a few hours as long while I was on other business and is perfectly stable with the 3.16.

Now I go to install again the 4.9 and then the Catalyst.
zorzi

Re: What kernel and headers I should to install in LMDE2?

Post by zorzi »

Turin_27 wrote: Sun Jan 06, 2019 8:33 am Yeah.

I already boot the 3.16 kernel and remove the 4.9 kernel, and the Catalyst. I use the system a few hours as long while I was on other business and is perfectly stable with the 3.16.

Now I go to install again the 4.9 and then the Catalyst.
Ok, you should proceed step-by-step, and check before if 4.9 kernel works fine.

How did you install Catalyst ? Do you really need it ?
Turin_27

Re: What kernel and headers I should to install in LMDE2?

Post by Turin_27 »

zorzi wrote: Sun Jan 06, 2019 10:40 am Ok, you should proceed step-by-step, and check before if 4.9 kernel works fine.
How can I be sure about that the kernel really goes fine?

zorzi wrote: Sun Jan 06, 2019 10:40 am How did you install Catalyst ? Do you really need it ?
I execute the installer... ./namefile.run

Then, I install it with the standard parameters, and it's all. In other way don't work. Without the driver I can't play the Insurgency in Steam. In fact, I stay three years without a grafic driver, but when I did want to play this game, I did need to install a driver. The open source version has given me some problems, the privative version work fine... I think, but at least the Insurgency run acceptably well.
zorzi

Re: What kernel and headers I should to install in LMDE2?

Post by zorzi »

Well, kernel upgrades are often problematic when using graphic card proprietary drivers.

But in my memories, catalyst driver was available from the Debian Jessie repos. Maybe this version is quite old for your harware ?

https://wiki.debian.org/ATIProprietary
Turin_27

Re: What kernel and headers I should to install in LMDE2?

Post by Turin_27 »

I'm sorry I was absent. I was never really able to install a 4+ kernel, either on the test system I had been using... or on my regular system.

But the fact is that I've been having a long series of problems related to 32-bit libraries, which have kept me busy for more than two weeks. I don't know what has happened, the fact is that I can't install anything of 32-bit (which I need for Steam to work, which before I did). There are broken dependencies. However, no repair command that I had tested (and I really tested many) solved it. Neither did Aptitude. Synaptic doesn't detect it (as if there was nothing broken, doesn't it detect anything 32-bit?). Trying to follow the thread of unfulfilled dependencies, based on manual testing, I came to the conclusion that it is the lack of libgcc1:i386 that affects the system, but what happens is that installing it breaks libgcc1 (amd64).

It's very difficult to know what the problem is when you're working on a system without official support, so I decided to switch to LMDE3. Thanks for the help, it will be useful anyway.
zorzi

Re: What kernel and headers I should to install in LMDE2?

Post by zorzi »

You're probably right. In these circumstances, install LMDE3 may be the wisest thing to do.
Locked

Return to “LMDE Archive”