Upgrade from 9 to 10 kernel fails to load modules [SOLVED]

If none of the more specific forums is the right place to ask

Upgrade from 9 to 10 kernel fails to load modules [SOLVED]

Postby Scorpion » 2019-12-22 15:51

When I updated the system from debian 9 to 10, after I made a backup with timeshift, I saw a lot of warming in apt, something like:
Code: Select all
apt 1.5 beta1 unstable; urgency medium

Is there a way to see them all?

I have done the upgrade by changing the sources.list from stretch (9) to buster (10).

After I used:
Code: Select all
apt update
apt-get dist-upgrade

Is this the best way?

Currently I am using the 5.0.0-19.1-liquorix-amd64 kernel.
The update failed to built modules, so I use the terminal to purge the nvidia driver, which I believe to be the problem:
Code: Select all
apt purge *nvidia

(Without kernel modules I cannot use the GUI).

After I was able to use the 4.19.0-6 kernel (the one installed from buster), I try to install nvidia driver but it failed.

After some attempts I had the message "you held broken packages" and I was not able to use any kernel so I used timeshift and now I am again on stretch.
Last edited by Scorpion on 2020-01-23 07:16, edited 2 times in total.
User avatar
Scorpion
 
Posts: 137
Joined: 2018-10-17 11:38

Re: Upgrade from 9 to 10 kernel fails to load modules

Postby Head_on_a_Stick » 2019-12-22 17:18

Scorpion wrote:I have done the upgrade by changing the sources.list from stretch (9) to buster (10).

After I used:
Code: Select all
apt update
apt-get dist-upgrade

Is this the best way?

No, that's not what the official release notes recommend.
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Upgrade from 9 to 10 kernel fails to load modules

Postby Scorpion » 2019-12-22 17:40

Head_on_a_Stick wrote:
Scorpion wrote:I have done the upgrade by changing the sources.list from stretch (9) to buster (10).

After I used:
Code: Select all
apt update
apt-get dist-upgrade

Is this the best way?

No, that's not what the official release notes recommend.

Is this, right? https://www.debian.org/releases/stable/ ... ng.en.html

Do I have to change stretch to buster in etc/apt/sources.list and in /etc/apt/sources.list.d and use apt update?
User avatar
Scorpion
 
Posts: 137
Joined: 2018-10-17 11:38

Re: Upgrade from 9 to 10 kernel fails to load modules

Postby Scorpion » 2019-12-22 18:42

I am trying to follow the previous link.

I am also cleaning obsolete packages as suggested here https://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html#obsolete but:
Code: Select all
aptitude purge '~o'
The following packages will be REMOVED: 
  dxvk{p} dxvk-wine32-development:i386{p} dxvk-wine64-development{p} gcc-8-base{p} gcc-8-base:i386{p} irqbalance{u} lib32gcc1{u} libc6-i386{u} libunistring2{p} libunistring2:i386{p} linux-headers-4.18.0-0.bpo.1-amd64{p} linux-headers-4.18.0-0.bpo.1-common{pu} linux-headers-4.18.0-0.bpo.3-amd64{p} linux-headers-4.18.0-0.bpo.3-common{p} linux-headers-5.0.0-18.1-liquorix-amd64{p}
  linux-image-4.18.0-0.bpo.1-amd64{p} linux-image-4.19.0-13.1-liquorix-amd64{p} linux-image-4.20.0-5.1-liquorix-amd64{p} linux-image-5.0.0-18.1-liquorix-amd64{p} linux-kbuild-4.18{pu} lutris{p} net.downloadhelper.coapp{p} python3-yaml{u} vulkan-validationlayers{p} vulkan-validationlayers-dev{p}
0 packages upgraded, 0 newly installed, 25 to remove and 6 not upgraded.
Need to get 0 B of archives. After unpacking 1,487 MB will be freed.
The following packages have unmet dependencies:
 libstdc++6 : Depends: gcc-8-base (= 8.2.0-20) but it is not going to be installed
 libstdc++6:i386 : Depends: gcc-8-base:i386 (= 8.2.0-20) but it is not going to be installed
 libidn2-0 : Depends: libunistring2 (>= 0.9.7) but it is not going to be installed
 libidn2-0:i386 : Depends: libunistring2:i386 (>= 0.9.7) but it is not going to be installed
The following actions will resolve these dependencies:

      Remove the following packages:                                             
1)      glib-networking:i386 [2.50.0-1+b1 (now, oldstable)]                       
2)      libasound2-plugins:i386 [1.1.1-1 (now, oldstable)]                       
3)      libavcodec57:i386 [7:3.2.14-1~deb9u1 (now, oldstable)]                   
4)      libcrystalhd3:i386 [1:0.0~git20110715.fdd2f19-12 (now, oldstable)]       
5)      libcurl3:i386 [7.52.1-5+deb9u9 (now, oldstable)]                         
6)      libgl1:i386 [1.1.0-1~bpo9+1 (now, stretch-backports)]                     
7)      libgl1-mesa-dri:i386 [18.2.8-2~bpo9+1 (now, stretch-backports)]           
8)      libgl1-mesa-glx:i386 [18.2.8-2~bpo9+1 (now, stretch-backports)]           
9)      libgl1-nvidia-glvnd-glx:i386 [418.74-1~bpo9+1 (now, stretch-backports)]   
10)     libglu1-mesa:i386 [9.0.0-2.1 (now, oldstable)]                           
11)     libglx-mesa0:i386 [18.2.8-2~bpo9+1 (now, stretch-backports)]             
12)     libglx-nvidia0:i386 [418.74-1~bpo9+1 (now, stretch-backports)]           
13)     libglx0:i386 [1.1.0-1~bpo9+1 (now, stretch-backports)]                   
14)     libgphoto2-6:i386 [2.5.12-1 (now, oldstable)]                             
15)     libgtk-3-0:i386 [3.22.11-1 (now, oldstable)]                             
16)     libicu57:i386 [57.1-6+deb9u3 (now, oldstable)]                           
17)     libidn2-0:i386 [2.0.5-1 (now)]                                           
18)     libjack-jackd2-0:i386 [1.9.10+20150825git1ed50c92~dfsg-5 (now, oldstable)]
19)     libllvm6.0:i386 [1:6.0-1~bpo9+1 (now, stretch-backports)]                 
20)     libosmesa6:i386 [18.2.8-2~bpo9+1 (now, stretch-backports)]               
21)     libproxy1v5:i386 [0.4.14-2 (now, oldstable)]                             
22)     libpsl5:i386 [0.17.0-3 (now, oldstable)]                                 
23)     librest-0.7-0:i386 [0.8.0-2 (now, oldstable)]                             
24)     libsnappy1v5:i386 [1.1.3-3 (now, oldstable)]                             
25)     libsoup-gnome2.4-1:i386 [2.56.0-2+deb9u2 (now, oldstable)]               
26)     libsoup2.4-1:i386 [2.56.0-2+deb9u2 (now, oldstable)]                     
27)     libstdc++6:i386 [8.2.0-20 (now)]                                         
28)     libvdpau-va-gl1:i386 [0.4.2-1 (now, oldstable)]                           
29)     libvpx4:i386 [1.6.1-3+deb9u2 (now, oldstable)]                           
30)     libwine:i386 [4.0-2~bpo9+1 (now, stretch-backports)]                     
31)     libwine-development:i386 [2.0-3+b2 (now, oldstable)]                     
32)     libx265-95:i386 [2.1-2+b2 (now, oldstable)]                               
33)     libxml2:i386 [2.9.4+dfsg1-2.2+deb9u2 (now, oldstable)]                   
34)     libxslt1.1:i386 [1.1.29-2.1+deb9u1 (now, oldstable)]                     
35)     nvidia-driver-libs:i386 [418.74-1~bpo9+1 (now, stretch-backports)]       
36)     nvidia-driver-libs-i386:i386 [390.116-1 (now, oldstable)]                 
37)     nvidia-vulkan-icd:i386 [418.74-1~bpo9+1 (now, stretch-backports)]         
38)     steam:i386 [1.0.0.54-2 (now, oldstable)]                                 
39)     wine32:i386 [4.0-2~bpo9+1 (now, stretch-backports)]                       
40)     wine32-development:i386 [2.0-3+b2 (now, oldstable)]                       

      Keep the following packages at their current version:                       
41)     gcc-8-base [8.2.0-20 (now)]                                               
42)     libunistring2 [0.9.10-1 (now)]                                           

      Leave the following dependencies unresolved:                               
43)     wine64-development recommends wine32-development (= 2.0-3+b2)             
44)     libvdpau1:i386 recommends vdpau-driver-all:i386 | vdpau-driver:i386       
45)     wine64 recommends wine32 (= 4.0-2~bpo9+1)                                 
46)     libwine:i386 recommends libgl1-mesa-glx:i386 | libgl1:i386               
47)     libwine:i386 recommends libglu1-mesa:i386 | libglu1:i386                 
48)     libwine:i386 recommends libosmesa6:i386 (>= 10.2~)                       
49)     libwine:i386 recommends libxslt1.1:i386 (>= 1.1.25)                       
50)     libwine:i386 recommends libgl1-mesa-dri:i386                             
51)     libwine:i386 recommends libasound2-plugins:i386                           
52)     nvidia-driver-libs recommends nvidia-driver-libs-i386                     
53)     libc6:i386 recommends libidn2-0:i386 (>= 2.0.5~)                         



Accept this solution? [Y/n/q/?]
User avatar
Scorpion
 
Posts: 137
Joined: 2018-10-17 11:38

Re: Upgrade from 9 to 10 kernel fails to load modules

Postby Scorpion » 2020-01-22 13:11

@stevenpusser
This is my "home:stevenpusser:codelite.list" the only file in "etc/apt/sources.list.d":
Code: Select all
deb http://download.opensuse.org/repositories/home:/stevenpusser:/codelite/Debian_9.0/ /


There is not Debian 10 on that repository.
What should I do? Leave debian 9 or remove it?

I am trying leaving it.

I use apt update and I am using apt upgrade.
Code: Select all
inxi -r
Repos:     Active apt repos in: /etc/apt/sources.list
           1: deb http://httpredir.debian.org/debian buster main non-free contrib
           2: deb-src http://httpredir.debian.org/debian buster main non-free contrib
           3: deb http://security.debian.org/debian-security buster/updates main contrib non-free
           4: deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
           5: deb https://dl.winehq.org/wine-builds/debian/ buster main
           Active apt repos in: /etc/apt/sources.list.d/home:stevenpusser:codelite.list
           1: deb http://download.opensuse.org/repositories/home:/stevenpusser:/codelite/Debian_9.0/ /
User avatar
Scorpion
 
Posts: 137
Joined: 2018-10-17 11:38

Re: Upgrade from 9 to 10 kernel fails to load modules

Postby Bulkley » 2020-01-22 16:06

What should I do?


If you haven't already done so, back up anything important onto a separate drive.

From my own experiences I find it both easier and better to do a fresh install of Debian 10 and copy in important files. The 9 t0 10 upgrade is a big leap.
Bulkley
 
Posts: 5875
Joined: 2006-02-11 18:35

Re: Upgrade from 9 to 10 kernel fails to load modules

Postby Head_on_a_Stick » 2020-01-22 16:48

Scorpion wrote:@stevenpusser
This is my "home:stevenpusser:codelite.list" the only file in "etc/apt/sources.list.d":
Code: Select all
deb http://download.opensuse.org/repositories/home:/stevenpusser:/codelite/Debian_9.0/ /


There is not Debian 10 on that repository.
What should I do? Leave debian 9 or remove it?

Probably best to remove it.

This should show which packages have been installed from there so you can remove those as well:
Code: Select all
aptitude search '?narrow(?installed, ?origin(obs://build.opensuse.org/home:stevenpusser:codelight/Debian_9.0))'

And I don't trust those WINE repositories but I am somewhat paranoid. At least that's what people keep saying about me behind my back...

Anyway, the NVIDIA modules might have problems with the very latest kernel but that's your own fault for giving money to enemies of the open source community. Perhaps try nouveau instead?
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Upgrade from 9 to 10 kernel fails to load modules

Postby Scorpion » 2020-01-22 18:50

Bulkley wrote:
What should I do?


If you haven't already done so, back up anything important onto a separate drive.

From my own experiences I find it both easier and better to do a fresh install of Debian 10 and copy in important files. The 9 t0 10 upgrade is a big leap.

I did a backup with timeshift, I already used it once it has the cli so I should be able to use it if something goes wrong.

I installed a lot of packages I won' t give up so easily :D
User avatar
Scorpion
 
Posts: 137
Joined: 2018-10-17 11:38

Re: Upgrade from 9 to 10 kernel fails to load modules

Postby Scorpion » 2020-01-22 19:09

Head_on_a_Stick wrote:
Scorpion wrote:@stevenpusser
This is my "home:stevenpusser:codelite.list" the only file in "etc/apt/sources.list.d":
Code: Select all
deb http://download.opensuse.org/repositories/home:/stevenpusser:/codelite/Debian_9.0/ /


There is not Debian 10 on that repository.
What should I do? Leave debian 9 or remove it?

Probably best to remove it.

This should show which packages have been installed from there so you can remove those as well:
Code: Select all
aptitude search '?narrow(?installed, ?origin(obs://build.opensuse.org/home:stevenpusser:codelight/Debian_9.0))'

And I don't trust those WINE repositories but I am somewhat paranoid. At least that's what people keep saying about me behind my back...

Anyway, the NVIDIA modules might have problems with the very latest kernel but that's your own fault for giving money to enemies of the open source community. Perhaps try nouveau instead?


The updates has finished, now all the kernels are fines! I am using the liquorix 5 kernel from stevenpusser repositories:
Code: Select all
 uname -r
5.0.0-19.1-liquorix-amd64


It would have been better if I closed the GUI (gnome) during the update.
The first time I left mozilla open and I had to quit the session because meanwhile the system was updated. I saw a warning like this: "you are trying to run and old version of mozilla you can lost a lot of data".

I added the wine repository when i was testing some things, now I removed it maybe I am paranoid too.
Is amd friendly to the open source community? While nvidia is not?

But there is some trouble with nautilus and qbittorrent.
I added the buster backports (deb http://deb.debian.org/debian buster-backports main contrib non-free) and I am using "apt full-upgrade" now.

I also had to use "apt --fix-broken install" before the upgrade.

Code: Select all
nautilus
Segmentation fault

Is there a way to reinstall gnome desktop using taskel or something?
User avatar
Scorpion
 
Posts: 137
Joined: 2018-10-17 11:38

Re: Upgrade from 9 to 10 kernel fails to load modules

Postby Head_on_a_Stick » 2020-01-22 19:16

Scorpion wrote:Is amd friendly to the open source community? While nvidia is not?

That's right, yes. AMD contribute directly to the open source drivers but NVIDIA have a long history of not helping the nouveau developers at all. But that has changed recently:

https://www.phoronix.com/scan.php?page= ... n-GPU-Docs

Still not on par with AMD though.

Scorpion wrote:
Code: Select all
nautilus
Segmentation fault

Oh dear. i suppose we could check the source:
Code: Select all
apt policy nautilus

Or you could try to debug it.

Scorpion wrote:Is there a way to reinstall gnome desktop using taskel or something?

Yes:
Code: Select all
# tasksel
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Upgrade from 9 to 10 kernel fails to load modules

Postby Scorpion » 2020-01-22 19:25

Code: Select all
apt policy nautilus
nautilus:
  Installed: 3.22.3-1+deb9u1
  Candidate: 3.30.5-2
  Version table:
     3.30.5-2 500
        500 http://httpredir.debian.org/debian buster/main amd64 Packages
 *** 3.22.3-1+deb9u1 100
        100 /var/lib/dpkg/status

Before I tried to use "aptitude reinstall nautilus" and "apt reinstall nautilus", it stated something like: cannot find nautlius-packages-64.

If I already have gnome installed how can I tell tasksel to reinstall it? Without removing it and installing it again.

Is this ok "http://httpredir.debian.org/debian buster/main amd64 Packages"?
I am not sure about this 2 sources:
Code: Select all
           1: deb http://httpredir.debian.org/debian buster main non-free contrib
           2: deb-src http://httpredir.debian.org/debian buster main non-free contrib
User avatar
Scorpion
 
Posts: 137
Joined: 2018-10-17 11:38

Re: Upgrade from 9 to 10 kernel fails to load modules

Postby Head_on_a_Stick » 2020-01-22 19:38

Scorpion wrote:
Code: Select all
apt policy nautilus
nautilus:
  Installed: 3.22.3-1+deb9u1
  Candidate: 3.30.5-2
  Version table:
     3.30.5-2 500
        500 http://httpredir.debian.org/debian buster/main amd64 Packages
 *** 3.22.3-1+deb9u1 100
        100 /var/lib/dpkg/status

That should update :?

Try
Code: Select all
# apt install nautilus=3.30.5-2

Post the verbatim output if it doesn't work. Thanks.

Scorpion wrote:If I already have gnome installed how can I tell tasksel to reinstall it? Without removing it and installing it again.

Code: Select all
# apt reinstall task-gnome-desktop


Scorpion wrote:Is this ok

No, I don't think httpredir is working any more. Which might explain your problems.

See https://deb.debian.org for the replacement.
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Upgrade from 9 to 10 kernel fails to load modules

Postby Scorpion » 2020-01-22 20:04

Now that I think about it when I did the first update the nautilus icon changed now it is the same as before.
I will try
Code: Select all
apt install nautilus=3.30.5-2

after apt finishes to do apt update, now my connection is very slow.

My sources now:
Code: Select all
inxi -r
Repos:     Active apt repos in: /etc/apt/sources.list
           1: deb http://deb.debian.org/debian buster main non-free contrib
           2: deb-src http://deb.debian.org/debian buster main non-free contrib
           3: deb http://security.debian.org/debian-security buster/updates main contrib non-free
           4: deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
           5: deb http://deb.debian.org/debian buster-backports main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/home:stevenpusser:codelite.list
           1: deb http://download.opensuse.org/repositories/home:/stevenpusser:/codelite/Debian_9.0/ /
User avatar
Scorpion
 
Posts: 137
Joined: 2018-10-17 11:38

Re: Upgrade from 9 to 10 kernel fails to load modules

Postby Scorpion » 2020-01-22 20:14

Code: Select all
apt install nautilus=3.30.5-2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 kio : Depends: libkf5solid5 (>= 4.97.0) but it is not going to be installed
 libkf5archive5 : Breaks: kio (< 5.54) but 5.28.0-2 is to be installed
 libkf5completion5 : Breaks: kio (< 5.54) but 5.28.0-2 is to be installed
                     Breaks: libkf5parts5 (< 5.42) but 5.28.0-1 is to be installed
 libkf5configwidgets5 : Breaks: kio (< 5.54) but 5.28.0-2 is to be installed
                        Breaks: libkf5parts5 (< 5.42) but 5.28.0-1 is to be installed
                        Breaks: libkf5wallet-bin (< 5.54) but 5.28.0-3 is to be installed
 libkf5iconthemes5 : Breaks: kio (< 5.42) but 5.28.0-2 is to be installed
                     Breaks: libkf5parts5 (< 5.54) but 5.28.0-1 is to be installed
                     Breaks: libkf5wallet-bin (< 5.54) but 5.28.0-3 is to be installed
                     Recommends: libkf5iconthemes-bin (= 5.54.0-1) but 5.28.0-2 is to be installed
 libkf5jobwidgets5 : Breaks: kio (< 5.42) but 5.28.0-2 is to be installed
                     Breaks: libkf5parts5 (< 5.54) but 5.28.0-1 is to be installed
 libkf5kdelibs4support5 : Depends: libkf5kiofilewidgets5 (>= 4.96.0) but it is not going to be installed
                          Depends: libkf5solid5 (>= 4.97.0) but it is not going to be installed
                          Recommends: libkf5kdelibs4support5-bin (= 5.54.0-1) but it is not going to be installed
 libkf5kiocore5 : Breaks: libkf5parts5 (< 5.54) but 5.28.0-1 is to be installed
 libkf5kiowidgets5 : Breaks: libkf5parts5 (< 5.54) but 5.28.0-1 is to be installed
 libkf5service5 : Breaks: kio (< 5.54) but 5.28.0-2 is to be installed
                  Breaks: libkf5parts5 (< 5.54) but 5.28.0-1 is to be installed
                  Breaks: libkf5wallet-bin (< 5.54) but 5.28.0-3 is to be installed
                  Recommends: libkf5service-bin (= 5.54.0-1) but 5.28.0-1 is to be installed
 libkf5textwidgets5 : Breaks: kio (< 5.54) but 5.28.0-2 is to be installed
                      Breaks: libkf5parts5 (< 5.42) but 5.28.0-1 is to be installed
 libkf5widgetsaddons5 : Breaks: kio (< 5.54) but 5.28.0-2 is to be installed
                        Breaks: libkf5parts5 (< 5.54) but 5.28.0-1 is to be installed
                        Breaks: libkf5wallet-bin (< 5.54) but 5.28.0-3 is to be installed
                        Breaks: libkwalletbackend5-5 (< 5.54) but 5.28.0-3 is to be installed
 libkf5xmlgui5 : Breaks: libkf5parts5 (< 5.54) but 5.28.0-1 is to be installed
                 Recommends: libkf5xmlgui-bin (= 5.54.0-1) but 5.28.0-1 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.


Can apt full-upgrade be the solution?
User avatar
Scorpion
 
Posts: 137
Joined: 2018-10-17 11:38

Re: Upgrade from 9 to 10 kernel fails to load modules

Postby Head_on_a_Stick » 2020-01-22 20:21

Scorpion wrote:Can apt full-upgrade be the solution?

Looks a bit more serious than that.

Try using aptitude instead of apt, it should offer several choices for resolution.

If you go through all the choices without finding an acceptable solution then try debugging the resolver:
Code: Select all
apt -s -o Debug::pkgProblemResolver=yes install nautilus=3.30.5-2
User avatar
Head_on_a_Stick
 
Posts: 11021
Joined: 2014-06-01 17:46
Location: /dev/chair

Next

Return to General Questions

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable
cron