Having the same issue but don't have DisplayLink installed.
```
Building module:
Cleaning build area...(bad exit status: 2)
make -j12 KERNELRELEASE=6.2.0-20-generic -j12 TTM_NAME=amdttm SCHED_NAME=amd-sched -C /lib/modules/6.2.0-20-generic/build M=/var/lib/dkms/amdgpu/5.18.13-1510348.22.04/b
uild....(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.2.0-20-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.18.13-1510348.22.04/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.2.0-20-generic (--configure):
installed linux-image-6.2.0-20-generic package post-installation script subprocess returned error exit status 1
No apport report written because MaxReports has already been reached Errors were encountered while processing:
linux-headers-6.2.0-20-generic
linux-headers-generic
linux-headers-generic-hwe-22.04
linux-generic-hwe-22.04
linux-generic
linux-image-6.2.0-20-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
```
Having the same issue but don't have DisplayLink installed.
``` 6.2.0-20- generic -j12 TTM_NAME=amdttm SCHED_NAME= amd-sched -C /lib/modules/ 6.2.0-20- generic/ build M=/var/ lib/dkms/ amdgpu/ 5.18.13- 1510348. 22.04/b amdgpu- dkms.0. crash' dkms/amdgpu/ 5.18.13- 1510348. 22.04/build/ make.log for more information. postinst. d/dkms exited with return code 11 6.2.0-20- generic (--configure): 6.2.0-20- generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing: headers- 6.2.0-20- generic headers- generic headers- generic- hwe-22. 04 generic- hwe-22. 04 image-6. 2.0-20- generic
Building module:
Cleaning build area...(bad exit status: 2)
make -j12 KERNELRELEASE=
uild....(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/
Error! Bad return status for module build on kernel: 6.2.0-20-generic (x86_64)
Consult /var/lib/
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
...fail!
run-parts: /etc/kernel/
dpkg: error processing package linux-image-
installed linux-image-
No apport report written because MaxReports has already been reached
linux-
linux-
linux-
linux-
linux-generic
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
```