Trying to compile Marlin 2.1.x for BTT SKR Mini E3 V3.0

Trying to compile Marlin firmware for the BTT SKR Mini E3 V3.0 in Ubuntu 22.04, but I keep getting:
Processing STM32G0B1RE_btt (platform: ststm32@~14.1.0; board: marlin_STM32G0B1RE; framework: arduino)

Tool Manager: Installing
Error: Got the unrecognized status code ‘401’ when downloaded

Downloads fine for me. Same when you click on that link?

I did a clean install on another computer and that worked. So I deleted the .platformio directory on my computer and copied it across from the other one. Now it works.
Don’t know why because when I tried a clean install on my computer, it still didn’t work.