running .cache/dfinity/uninstall.sh
and installing the new version of dfx with sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
solved the problem for me
running .cache/dfinity/uninstall.sh
and installing the new version of dfx with sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
solved the problem for me