Thanks for your Script to solve the Problem. I did sincelery a reinstall of mariadb and ran your script.
Seems most of the Migration is now due but one Error rised again: Postgressql 11 → 13 failed.
Will try to reinstall PortgreSQL to solve it.
Maybe this could help someone.