root@hinyari:/# for possible_flavor_pattern in linux-generic \ linux-nvidia \ "linux-generic-*-hwe-[0-9][0-9]\.[0-9][0-9]" \ "linux-nvidia-*-hwe-[0-9][0-9]\.[0-9][0-9]"; do
for metapkg in $(dpkg-query -W -f '${Package}\n' "${possible_flavor_pattern}"); do flavor=${metapkg#linux-} pkgs="$pkgs linux-modules-nvidia-${NVIDIA_DRIVER_VERSION}-${flavor}"
echo $pkgs
done
done
dpkg-query: no packages found matching linux-generic
dpkg-query: no packages found matching linux-nvidia
dpkg-query: no packages found matching linux-generic-*-hwe-[0-9][0-9]\.[0-9][0-9]
linux-modules-nvidia-535-server-open-nvidia-64k-hwe-22.04
And indeed, we should be installing linux-modules-nvidia-535-server-open-nvidia-64k-hwe-22.04 and not the dkms version.
I tested at a shell on a failed hinyari install:
root@hinyari:/# for possible_ flavor_ pattern in linux-generic \
linux-nvidia \
"linux- generic- *-hwe-[ 0-9][0- 9]\.[0- 9][0-9] " \
"linux- nvidia- *-hwe-[ 0-9][0- 9]\.[0- 9][0-9] "; do flavor_ pattern} "); do
flavor= ${metapkg# linux-}
pkgs= "$pkgs linux-modules- nvidia- ${NVIDIA_ DRIVER_ VERSION} -${flavor} " *-hwe-[ 0-9][0- 9]\.[0- 9][0-9] nvidia- 535-server- open-nvidia- 64k-hwe- 22.04
for metapkg in $(dpkg-query -W -f '${Package}\n' "${possible_
echo $pkgs
done
done
dpkg-query: no packages found matching linux-generic
dpkg-query: no packages found matching linux-nvidia
dpkg-query: no packages found matching linux-generic-
linux-modules-
And indeed, we should be installing linux-modules- nvidia- 535-server- open-nvidia- 64k-hwe- 22.04 and not the dkms version.