Ubuntu - GPU - AMD GPU - Troubleshooting - DKMS error message seen for amdgpu
It is highly likely an old instance of the amdgpu has not been fully removed.
See
Check dkms status
.