first, you'll need to stop the cluster so that you can drop it: sudo pg_dropcluster 13 main --stop
second, you'll want to upgrade your postgresql 12 cluster to 13: sudo pg_upgradecluster 12 main 13...