The build issue is due a mismatch in package versions for those nvidia drivers as you indicated. The driver contents are the same, the mismatch is in the version strings.
The version strings can be brought in sync by running:
$ apt-get source linux-image-5.4.0-1035-aws $ cd linux-aws-5.4-5.4.0 $ bash ./update-version-dkms updates $ fakeroot debian/rules binary
Note: this will complain about not being a git tree, but will still update `debian/dkms-versions`.
The build issue is due a mismatch in package versions for those nvidia drivers as you indicated. The driver contents are the same, the mismatch is in the version strings.
The version strings can be brought in sync by running:
$ apt-get source linux-image- 5.4.0-1035- aws version- dkms updates
$ cd linux-aws-5.4-5.4.0
$ bash ./update-
$ fakeroot debian/rules binary
Note: this will complain about not being a git tree, but will still update `debian/ dkms-versions` .