Re: Debian, kernel, dkms et drivers nvidia

Pàgina inicial

Reply to this message
Autor: Yves Martin
Data:  
A: Olivier Allard-Jacquin, guilde
Assumptes nous: Re: Debian, kernel, dkms et drivers nvidia
Assumpte: Re: Debian, kernel, dkms et drivers nvidia
On Thu, 2023-10-12 at 22:20 +0200, Olivier Allard-Jacquin wrote:
>     Bonsoir,

>
> Le 11/10/2023 à 22:56, Yves Martin a écrit :
> [...]
>
> > J'en suis à un point où seul mon kernel 6.1 fonctionne mais les
> > récents
> > sont en plan suite à l'échec de compilation des modules par DKMS et
> > il
> > ne semble pas possible de supprimer ces packages kernel tant que le
> > dpkg configure n'aboutit pas:
> >
> > Bref, deux questions:
> >
> > - comment nettoyer mon système pour ne conserver que le kernel 6.1
> > ?
> >    (tant qu'il fonctionne... parce que sinon ça va devenir
> > compliqué)
>
>     C'est assez facile:
>     dpkg -l|grep linux-image
> Cela te donne la liste de tout tes kernels.
> Après, tu fais un :
>     apt-get purge xxxxxxxx
> de la liste des kernels que tu veux supprimer, en NE supprimant 
> évidement PAS linux-image-6.1.0-7-amd64


Bonjour

Merci pour les explications, mais non ce n'est pas aussi simple que de
purger les anciens kernels... l'opération échoue tant que la
configuration des packages n'aboutit pas, à cause des problèmes de
compilation des modules dkms.

J'ai bien tenté d'éliminer les packages nvidia-legacy-390xx (qui
donnaient satisfaction jusque là) mais là encore la suppression est
abandonnée car le kernel 6.5 ne termine pas sa configuration.


root@precision2013:/home/yma# dpkg -l | grep linux-image ic  linux-
image-5.18.0-4-amd64                                  5.18.16-1       
amd64        Linux 5.18 for 64-bit PCs (signed) ic  linux-image-6.0.0-
4-amd64                                   6.0.8-1                     
amd64        Linux 6.0 for 64-bit PCs (signed) ii  linux-image-6.1.0-7-
amd64                                   6.1.20-2                      
amd64        Linux 6.1 for 64-bit PCs (signed) ic  linux-image-6.4.0-2-
amd64                                   6.4.4-3                       
amd64        Linux 6.4 for 64-bit PCs (signed) ic  linux-image-6.5.0-1-
amd64                                   6.5.3-1                       
amd64        Linux 6.5 for 64-bit PCs (signed) ic  linux-image-amd64  
6.5.3-1                                   amd64        Linux for 64-bit
PCs (meta-package) root@precision2013:/home/yma# apt purge linux-image-
5.18.0-4-amd64 linux-image-6.0.0-4-amd64 linux-image-6.4.0-2-amd64
linux-image-6.5.0-1-amd64 linux-image-amd64 -y


[...]
env NV_VERBOSE=1 make -j8 modules KERNEL_UNAME=6.5.0-1-amd64.......(bad
exit status: 2) Error! Bad return status for module build on kernel:
6.5.0-1-amd64 (x86_64) Consult /var/lib/dkms/nvidia-legacy-
390xx/390.157/build/make.log for more information. dkms autoinstall on
6.5.0-1-amd64/x86_64 succeeded for bbswitch nvidia-tesla-470 dkms
autoinstall on 6.5.0-1-amd64/x86_64 failed for nvidia-legacy-390xx(10)
Error! One or more modules failed to install during autoinstall. Refer
to previous errors for more information. dkms: autoinstall for kernel:
6.5.0-1-amd64 failed! run-parts: /etc/kernel/header_postinst.d/dkms
exited with return code 11 Failed to process
/etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-
6.5.0-1-amd64.postinst line 11. dpkg: error processing package linux-
headers-6.5.0-1-amd64 (--configure): installed linux-headers-6.5.0-1-
amd64 package post-installation script subprocess returned error exit
status 1 dpkg: dependency problems prevent configuration of linux-
headers-amd64: linux-headers-amd64 depends on linux-headers-6.5.0-1-
amd64 (= 6.5.3-1); however: Package linux-headers-6.5.0-1-amd64 is
not configured yet. dpkg: error processing package linux-headers-amd64
(--configure): dependency problems - leaving unconfigured Errors were
encountered while processing: linux-headers-6.5.0-1-amd64 linux-
headers-amd64


root@precision2013:/home/yma# dpkg -l | grep nvidia-legacy pi  libegl-
nvidia-legacy-390xx0:amd64                           390.157-1        
amd64        NVIDIA binary EGL library (390xx legacy version) pi 
libgl1-nvidia-legacy-390xx-glvnd-glx:amd64                  390.157-1 
amd64        NVIDIA binary OpenGL/GLX library (GLVND variant) (390xx
legacy version) pi  libgles-nvidia-legacy-390xx1:amd64                
390.157-1                                 amd64        NVIDIA binary
OpenGL|ES 1.x library (390xx legacy version) pi  libgles-nvidia-legacy-
390xx2:amd64                          390.157-1                       
amd64        NVIDIA binary OpenGL|ES 2.x library (390xx legacy version)
pi  libglx-nvidia-legacy-390xx0:amd64                          
390.157-1                                 amd64        NVIDIA binary
GLX library (390xx legacy version) pi  libnvidia-legacy-390xx-
cfg1:amd64                           390.157-1                        
amd64        NVIDIA binary OpenGL/GLX configuration library (390xx
legacy version) pi  libnvidia-legacy-390xx-cfg1:i386                  
390.157-1                                 i386         NVIDIA binary
OpenGL/GLX configuration library (390xx legacy version) ri  libnvidia-
legacy-390xx-eglcore:amd64                        390.157-1           
amd64        NVIDIA binary EGL core libraries (390xx legacy version) ri
libnvidia-legacy-390xx-glcore:amd64                         390.157-1 
amd64        NVIDIA binary OpenGL/GLX core libraries (390xx legacy
version) pi  libnvidia-legacy-390xx-ml1:amd64                         
390.157-1                                 amd64        NVIDIA
Management Library (NVML) runtime library (390xx legacy version) pi 
nvidia-legacy-390xx-alternative                             390.157-1 
amd64        allows the selection of NVIDIA as GLX provider (390xx
legacy version) pi  nvidia-legacy-390xx-driver-bin                    
390.157-1                                 amd64        NVIDIA driver
support binaries (390xx legacy version) pi  nvidia-legacy-390xx-driver-
libs:amd64                       390.157-1                            
amd64        NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries) (390xx
legacy version) pi  nvidia-legacy-390xx-egl-icd:amd64                 
390.157-1                                 amd64        NVIDIA EGL
installable client driver (ICD) pi  nvidia-legacy-390xx-kernel-dkms   
390.157-1                                 amd64        NVIDIA binary
kernel module DKMS source (390xx legacy version) pi  nvidia-legacy-
390xx-kernel-support                          390.157-1               
amd64        NVIDIA binary kernel module support files (390xx legacy
version) pi  nvidia-legacy-390xx-smi                                  
390.157-1                                 amd64        NVIDIA System
Management Interface (390xx legacy version) pi  nvidia-legacy-390xx-
vdpau-driver:amd64                      390.157-1                     
amd64        Video Decode and Presentation API for Unix - NVIDIA driver
(390xx legacy) pi  nvidia-legacy-390xx-vulkan-icd:amd64               
390.157-1                                 amd64        NVIDIA Vulkan
installable client driver (ICD) (390xx legacy version) ii  nvidia-
legacy-check                                         525.125.06-2     
amd64        check for NVIDIA GPUs requiring a legacy driver pi 
xserver-xorg-video-nvidia-legacy-390xx                      390.157-1 
amd64        NVIDIA binary Xorg driver (390xx legacy version)