Debian 11 template broken after wifi driver install. Anything to do other than reinstall?

The problem occurs again, so I decide to give up debian 11 standalone and to use Ubuntu 22.04. I copy files from debian 11 to Ubuntu according to Restoring Qubes Without Backup.