Ubuntu 22.04: problem installing nvidia-driver-525
Hi all, there seems to be a problem installing a Ubuntu 22.04 package that is trying to call update-initramfs: root@jammysrv:~# cat /srv/fai/config/package_config/NVIDIACURRENT PACKAGES install linux-headers-generic nvidia-driver-525 #nvidia-cuda-toolkit Error messages in fai.log: Setting up nvidia-kernel-common-525 (525.105.17-0ubuntu0.22.04.1) ... update-initramfs: deferring update (trigger activated) update-initramfs: Generating /boot/initrd.img-5.10.0-18-amd64 W: missing /lib/modules/5.10.0-18-amd64 W: Ensure all necessary drivers are built into the linux image! depmod: ERROR: could not open directory /lib/modules/5.10.0-18-amd64: No such file or directory depmod: FATAL: could not search modules: No such file or directory cat: /var/tmp/mkinitramfs_Oa84zB/lib/modules/5.10.0-18-amd64/modules.builtin: No such file or directory Kind regards, Andreas -- Dr. Andreas Sindermann fon: +49 (221) 470-4201 Institut fuer Theoretische Physikfax: +49 (221) 470-5159 Universitaet zu Koeln Zuelpicher Str. 77 mailto:sin...@thp.uni-koeln.de D-50937 Koeln, Germany http://www.thp.uni-koeln.de/~sinder
Re: Ubuntu 22.04: problem installing nvidia-driver-525
> On Thu, 20 Apr 2023 10:45:52 +0200, Andreas Sindermann > said: > Hi all, > there seems to be a problem installing a Ubuntu 22.04 package that is > trying to call update-initramfs: > update-initramfs: Generating /boot/initrd.img-5.10.0-18-amd64 > W: missing /lib/modules/5.10.0-18-amd64 > W: Ensure all necessary drivers are built into the linux image! > depmod: ERROR: could not open directory /lib/modules/5.10.0-18-amd64: No > such file or directory Is 5.10.0-18-amd64 the kernel version, that is running during the installation? Or is it the ubuntu kernel version inside /target? My guess is that update-initramfs tries to build an initrd for the wrong kernel version. Can you just ignore this error, or does the installation aborts? regards Thomas
Re: Ubuntu 22.04: problem installing nvidia-driver-525
On 4/20/23 13:07, Thomas Lange wrote: On Thu, 20 Apr 2023 10:45:52 +0200, Andreas Sindermann said: > Hi all, > there seems to be a problem installing a Ubuntu 22.04 package that is > trying to call update-initramfs: > update-initramfs: Generating /boot/initrd.img-5.10.0-18-amd64 > W: missing /lib/modules/5.10.0-18-amd64 > W: Ensure all necessary drivers are built into the linux image! > depmod: ERROR: could not open directory /lib/modules/5.10.0-18-amd64: No > such file or directory Is 5.10.0-18-amd64 the kernel version, that is running during the installation? Or is it the ubuntu kernel version inside /target? Yes, it seems that 5.10.0-18-amd64 is indeed the Debian kernel running during the installation: root@jammysrv:/srv/fai/nfsroot/lib/modules# ls 5.10.0-18-amd64 My guess is that update-initramfs tries to build an initrd for the wrong kernel version. Can you just ignore this error, or does the installation aborts? The installation itself continues but the gpu is not identified when booting the installed Ubuntu 22.04: root@l96:~# lspci |grep -i nvi 01:00.0 VGA compatible controller: NVIDIA Corporation Device 2507 (rev a1) 01:00.1 Audio device: NVIDIA Corporation Device 228e (rev a1) It should create the initramfs in the Ubuntu environment, not in the Debian environment... Thanks! Andreas regards Thomas -- Dr. Andreas Sindermann fon: +49 (221) 470-4201 Institut fuer Theoretische Physikfax: +49 (221) 470-5159 Universitaet zu Koeln Zuelpicher Str. 77 mailto:sin...@thp.uni-koeln.de D-50937 Koeln, Germany http://www.thp.uni-koeln.de/~sinder
Re: Ubuntu 22.04: problem installing nvidia-driver-525
> On Thu, 20 Apr 2023 13:14:04 +0200, Andreas Sindermann > said: > It should create the initramfs in the Ubuntu environment, not in the > Debian environment... update-initramfs should recreate the initrd. -- viele Grüße Thomas
Re: Ubuntu 22.04: problem installing nvidia-driver-525
Here's the log of an Ubuntu installation using FAI 6 and Ubuntu 22.04 in kvm (no real nvidia HW available) http://public.cs.uni-koeln.de/lange/ubuntu-fai.log There's no problem by using the wrong kernel. Have a look at line 9236ff The installaion ISO was created using https://fai-project.org/FAIme, and I've selected Ubuntu version and added the two packages linux-headers-generic nvidia-driver-525 Maybe this helps -- regards Thomas