TL;DR
anchor-cli 0.30.1
solana-cli 1.18.11 (src:48254fa2; feat:3469865029, client:Agave)
0.30.0 had some issues and that's why that patch 0.30.1, check release logs here https://www.anchor-lang.com/release-notes/0.30.1
# uncomment the line below if you don't have anchor installed
# avm install latest
avm use latest
solana-install init 1.18.17
You also have to make the same with your solana version.
In my observation using the latest bleeding-edge release will nuke your deploys and I've been struggling with deployment issues as documented here Deploying program errors out with `Error: 184 write transactions failed`.
Using an older version will probably result in an error if you want to make CPIs into other programs.