Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Problem when updating the kernel [SOLVED]

Linux Kernel, Network, and Services configuration.
Message
Author
User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Problem when updating the kernel [SOLVED]

#31 Post by stevepusser »

Scorpion wrote:
(see the Liquorix forum for install instructions)
I'm not sure of what instructions follow.
I recompiled some kernels I can use fakeroot make-kpkg and install the .deb right?
This thread on the Liquorix forums: https://techpatterns.com/forums/about2615.html

The Liquorix developer made it a sticky second from the top!
MX Linux packager and developer

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Problem when updating the kernel [SOLVED]

#32 Post by Scorpion »

i installed it but if I want to recompile it:

Code: Select all

make-kpkg --append-to-version -scorpion --revision 1 --initrd kernel-image 
[...]
  CC      arch/x86/boot/compressed/string.o
  CC      arch/x86/boot/compressed/cmdline.o
  CC      arch/x86/boot/compressed/error.o
  OBJCOPY arch/x86/boot/compressed/vmlinux.bin
  LZ4     arch/x86/boot/compressed/vmlinux.bin.lz4
/bin/sh: 1: lz4c: not found
arch/x86/boot/compressed/Makefile:144: recipe for target 'arch/x86/boot/compressed/vmlinux.bin.lz4' failed
make[3]: *** [arch/x86/boot/compressed/vmlinux.bin.lz4] Error 1
arch/x86/boot/Makefile:112: recipe for target 'arch/x86/boot/compressed/vmlinux' failed
make[2]: *** [arch/x86/boot/compressed/vmlinux] Error 2
arch/x86/Makefile:284: recipe for target 'bzImage' failed
make[1]: *** [bzImage] Error 2
make[1]: Leaving directory '/root/snap/kernel/liquorix/linux-4.19'
debian/ruleset/targets/common.mk:295: recipe for target 'debian/stamp/build/kernel' failed
make: *** [debian/stamp/build/kernel] Error 2

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Problem when updating the kernel [SOLVED]

#33 Post by Head_on_a_Stick »

Scorpion wrote:

Code: Select all

/bin/sh: 1: lz4c: not found

Code: Select all

# apt install liblz4-tool
deadbang

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Problem when updating the kernel [SOLVED]

#34 Post by stevepusser »

What make the kernel "Liquorix" are the patches, which are applied in the Debian package building process.

If you're not applying those manually, you're just doing the vanilla kernel. I would suggest you look at my guide to using the OBS to rebuild your modified Liquorix kernel from the sources in the how-to section here. The kernel's config file in in /debian/config as "config".

You can also rebuild your modified Liquorix kernel packages on your own machine if you want, but then you have to learn how to build packages...maybe the "apt-get source <package>", "apt-get build-dep <package>", etc. procedure will work with the OBS if you add the deb-src line, though.
MX Linux packager and developer

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Problem when updating the kernel [SOLVED]

#35 Post by Scorpion »

I am keeping to update and upgrade.
The 5.0.0-3.1-liquorix-amd64 kernel failed to load modules.
Also the 4.19 from backports failed to load modules, I am using the liquorix.
I am very ok with all the 4.20 liquorix kernel.
Is the 4.20.0-5.1-liquorix-amd64 more recent than the 4.20.0-15.1-liquorix-amd64?

But how can I select the default kernel?
The one in the "Debian GNU/Linux".

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Problem when updating the kernel [SOLVED]

#36 Post by Head_on_a_Stick »

Scorpion wrote:I am very ok with the 4.20.0-5.1-liquorix-amd64. Is this more recent than the 4.20.0-15.1-liquorix-amd64?
No. The clue is in the numbers :mrgreen:

What does "failed to load modules" mean? What happens when you try to boot the newer kernels, exactly?
Scorpion wrote:But how can I select the default kernel? The one in the "Debian GNU/Linux".
Check the "Advanced Options" sub-menu in GRUB.
deadbang

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Problem when updating the kernel [SOLVED]

#37 Post by Scorpion »

15>5 right
What does "failed to load modules" mean? What happens when you try to boot the newer kernels, exactly?
The problem of this post, black screen with nothing.
With the tty2 I checked gdm3 was running.
Must be nvidia modules, I am using driver and cuda.
Without the driver it should work fine.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Problem when updating the kernel [SOLVED]

#38 Post by Head_on_a_Stick »

Scorpion wrote:Must be nvidia modules
You need to rebuild the NVIDIA drivers for each new kernel version.

The Debian nvidia-driver package includes hooks to do this automatically, have you installed directly from NVIDIA instead?
deadbang

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Problem when updating the kernel [SOLVED]

#39 Post by Scorpion »

I installed the drivers from the debian package.
All the 4.20 liquorix works, as the 4.18 from backports.

User avatar
sunrat
Administrator
Administrator
Posts: 6470
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 117 times
Been thanked: 474 times

Re: Problem when updating the kernel [SOLVED]

#40 Post by sunrat »

Kernel 5.0 needs Nvidia 418.43 drivers. It's only in experimental so far. Try at your own peril and definitely not in Stretch, but I suggest you stick to an older kernel if you need Nvidia.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Problem when updating the kernel [SOLVED]

#41 Post by Scorpion »

sunrat wrote:Kernel 5.0 needs Nvidia 418.43 drivers. It's only in experimental so far. Try at your own peril and definitely not in Stretch, but I suggest you stick to an older kernel if you need Nvidia.
I don' t need the 5.0, I am very ok with the 4.20 liquorix kernel that is not old.

But the 4.19 from backports also failed.
I just wanted to report this, since I am using the 4.20 liquorix.

How can I change the default kernel?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Problem when updating the kernel [SOLVED]

#42 Post by Head_on_a_Stick »

Scorpion wrote:How can I change the default kernel?
Change the GRUB_DEFAULT value in /etc/default/grub then run update-grub (as root).

Instructions here: https://www.gnu.org/software/grub/manua ... figuration
deadbang

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Problem when updating the kernel [SOLVED]

#43 Post by stevepusser »

Is the 4.20.0-5.1-liquorix-amd64 more recent than the 4.20.0-15.1-liquorix-amd64?
No, it's older, but that -5.1 version isn't even in my repo any longer. https://build.opensuse.org/package/bina ... Debian_9.0

Are you building the kernels yourself, or using the ones from my OBS repo? Did you add the repo, or are installing the debs manually?
Are you also installing the header package(s)?

The stock Stretch updated 490.87-8 Nvidia drivers built OK on 4.20 Liquorix kernels for me. I backported the 410.104 drivers from Buster for the 5.0 kernel for the MX test repo, and it's working for me with Bumblebee:

Code: Select all

optirun inxi -G
Graphics:  Device-1: Intel driver: i915 v: kernel 
           Device-2: NVIDIA driver: nvidia v: 410.104 
           Display: x11 server: X.Org 1.19.2 driver: intel resolution: 1920x1080~60Hz 
           OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 410.104 

Code: Select all

uname -a
Linux mx 5.0.0-3.1-liquorix-amd64 #1 ZEN SMP PREEMPT liquorix 5.0-2~mx17+1 (2019-03-22) x86_64 GNU/Linux
I think the Nvidia driver needs more backports than normal to build, so I think I'll put it in the new-hardware-support OBS repo, which already has those. Like in Buster, it also only supports 64-bit, though there's also a legacy 390xx 390.116 driver that still supports 32-bit and ARM architectures.
MX Linux packager and developer

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Problem when updating the kernel [SOLVED]

#44 Post by Scorpion »

Currently the default is 0.
I move a 4.20 liquorix kernel to the top so by default it boots with that.
I also set the menu to stay 5 sec, so I can choose.

Can I change the kernel of the former 0: "Debian GNU/Linux".
Every time that the kernel is updated is also updated in that entry.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Problem when updating the kernel [SOLVED]

#45 Post by stevepusser »

Scorpion wrote:Currently the default is 0.
I move a 4.20 liquorix kernel to the top so by default it boots with that.
I also set the menu to stay 5 sec, so I can choose.

Can I change the kernel of the former 0: "Debian GNU/Linux".
Every time that the kernel is updated is also updated in that entry.
You get rid of it by uninstalling that kernel.
MX Linux packager and developer

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Problem when updating the kernel [SOLVED]

#46 Post by Head_on_a_Stick »

Scorpion wrote:Can I change the kernel of the former 0: "Debian GNU/Linux".
Yes, read the instructions I posted.
deadbang

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Problem when updating the kernel [SOLVED]

#47 Post by Scorpion »

stevepusser wrote:
Is the 4.20.0-5.1-liquorix-amd64 more recent than the 4.20.0-15.1-liquorix-amd64?
No, it's older, but that -5.1 version isn't even in my repo any longer. https://build.opensuse.org/package/bina ... Debian_9.0

Are you building the kernels yourself, or using the ones from my OBS repo? Did you add the repo, or are installing the debs manually?
Are you also installing the header package(s)?

The stock Stretch updated 490.87-8 Nvidia drivers built OK on 4.20 Liquorix kernels for me. I backported the 410.104 drivers from Buster for the 5.0 kernel for the MX test repo, and it's working for me with Bumblebee:

Code: Select all

optirun inxi -G
Graphics:  Device-1: Intel driver: i915 v: kernel 
           Device-2: NVIDIA driver: nvidia v: 410.104 
           Display: x11 server: X.Org 1.19.2 driver: intel resolution: 1920x1080~60Hz 
           OpenGL: renderer: GeForce GTX 1050 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA 410.104 

Code: Select all

uname -a
Linux mx 5.0.0-3.1-liquorix-amd64 #1 ZEN SMP PREEMPT liquorix 5.0-2~mx17+1 (2019-03-22) x86_64 GNU/Linux
I think the Nvidia driver needs more backports than normal to build, so I think I'll put it in the new-hardware-support OBS repo, which already has those. Like in Buster, it also only supports 64-bit, though there's also a legacy 390xx 390.116 driver that still supports 32-bit and ARM architectures.
I installed this from your previous link:

Code: Select all

liquorix/unknown,now 1.0 all [installed]
  dummy arch-independent metapackage for the OBS
So after I was able to install via apt one 4.20 liquorix with the respective header.
Then using apt update e upgrade the others.

I updated the drivers but I had to remove something:
aptitude upgrade -t stretch-backports nvidia-driver
Resolving dependencies...
The following packages have been kept back:
nvidia-driver
The following NEW packages will be installed:
nvidia-egl-common:i386{a}
The following packages will be REMOVED:
golang-1.10{u} golang-1.10-doc{u} golang-1.10-go{u} golang-1.10-src{u} libbind9-160{u} libdns1102{u} libegl-nvidia0:i386{u}
libgl1-nvidia-glvnd-glx:i386{u} libgles-nvidia2:i386{u} libgles2:i386{u} libglx-nvidia0:i386{u} libirs160{u} libisc169{u} libisccc160{u}
libisccfg160{u} liblwres160{u} libnvidia-glcore:i386{u} libopengl0:i386{u} libreoffice-ogltrans{u} linux-headers-4.19.0-0.bpo.1-amd64{u}
linux-headers-4.19.0-0.bpo.1-common{u} linux-headers-4.19.0-13.1-liquorix-amd64{u} linux-headers-4.19.0-15.1-liquorix-amd64{u}
linux-headers-4.20.0-11.1-liquorix-amd64{u} linux-headers-4.20.0-12.1-liquorix-amd64{u} linux-headers-4.20.0-13.1-liquorix-amd64{u}
linux-headers-4.20.0-14.1-liquorix-amd64{u} linux-headers-4.20.0-5.1-liquorix-amd64{u} nvidia-driver-libs:i386{u}
nvidia-driver-libs-i386:i386{u} nvidia-egl-common{u} nvidia-egl-icd:i386{u} nvidia-vulkan-icd:i386{u} vlc-l10n{u}
0 packages upgraded, 1 newly installed, 34 to remove and 55 not upgraded.
Need to get 197 kB of archives. After unpacking 741 MB will be freed.
Do you want to continue? [Y/n/?] .
Invalid response. Please enter a valid command or '?' for help.
Do you want to continue? [Y/n/?] -
The following packages have been kept back:
nvidia-driver
The following NEW packages will be installed:
nvidia-egl-common:i386{a}
The following packages will be REMOVED:
golang-1.10{u} golang-1.10-doc{u} golang-1.10-go{u} golang-1.10-src{u} libbind9-160{u} libdns1102{u} libegl-nvidia0:i386{u}
libgl1-nvidia-glvnd-glx:i386{u} libgles-nvidia2:i386{u} libgles2:i386{u} libglx-nvidia0:i386{u} libirs160{u} libisc169{u} libisccc160{u}
libisccfg160{u} liblwres160{u} libnvidia-glcore:i386{u} libopengl0:i386{u} libreoffice-ogltrans{u} linux-headers-4.19.0-0.bpo.1-amd64{u}
linux-headers-4.19.0-0.bpo.1-common{u} linux-headers-4.19.0-13.1-liquorix-amd64{u} linux-headers-4.19.0-15.1-liquorix-amd64{u}
linux-headers-4.20.0-11.1-liquorix-amd64{u} linux-headers-4.20.0-12.1-liquorix-amd64{u} linux-headers-4.20.0-13.1-liquorix-amd64{u}
linux-headers-4.20.0-14.1-liquorix-amd64{u} linux-headers-4.20.0-5.1-liquorix-amd64{u} nvidia-driver-libs:i386{u}
nvidia-driver-libs-i386:i386{u} nvidia-egl-common{u} nvidia-egl-icd:i386{u} nvidia-vulkan-icd:i386{u} vlc-l10n{u}
0 packages upgraded, 1 newly installed, 34 to remove and 55 not upgraded.
Need to get 197 kB of archives. After unpacking 741 MB will be freed.
Do you want to continue? [Y/n/?] -
Last edited by Scorpion on 2019-03-26 19:06, edited 1 time in total.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Problem when updating the kernel [SOLVED]

#48 Post by stevepusser »

Aptitude can display multiple solutions. Keep hitting "n" to go through them to try and find a better one.
MX Linux packager and developer

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Problem when updating the kernel [SOLVED]

#49 Post by Scorpion »

Only one solution but nothing happened.

I had to use install instead of upgrade, and I used apt.
It always removed something, but only 3 packages.

Code: Select all

apt install -t stretch-backports nvidia-driver 
[...]
update-initramfs: Generating /boot/initrd.img-5.0.0-3.1-liquorix-amd64
W: initramfs-tools configuration sets RESUME=UUID=2f593788-fef9-4f00-8e3e-d18045e7d043
W: but no matching swap device is available.
I: The initramfs will attempt to resume from /dev/sda9
I: (UUID=5430c7bb-39f2-4cd2-9ef9-5eada03864d4)
I: Set the RESUME variable to override this.
Processing triggers for systemd (241-1~bpo9+1) ...
I had 2 swap partiotion, I removed one.
How can I correct it?

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Problem when updating the kernel [SOLVED]

#50 Post by stevepusser »

Do you use hibernation? The message says it will try and use the remaining swap partition despite what your settings say, so it seems to be still working.
MX Linux packager and developer

Post Reply