Error: Could not find the package with 'framework-mbed @ ~5.51105.190304' requirements for your system 'linux_x86_64'

Hello everyone. I’m working on a project with some old dependencies, which is working and building on my computer with platform ststm32 @ 5.3.0 and framework mbed (version is not defined on my .ini file, however it builds describing it as framework-mbed @ 5.51105.220603 ). Nevertheless, on another computer I was setting up, this one is Ubuntu 22.04 too, the following is happening:

Processing ic2d-release (board: nucleo_f446re; platform: ststm32@5.3.0; framework: mbed)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Platform Manager: Installing ststm32 @ 5.3.0
Downloading  [####################################]  100%          
Unpacking  [####################################]  100%
Platform Manager: ststm32@5.3.0 has been installed!
Tool Manager: Installing toolchain-gccarmnoneeabi @ >=1.60301.0,<1.80000.0
Downloading  [####################################]  100%          
Unpacking  [####################################]  100%          
Tool Manager: toolchain-gccarmnoneeabi@1.70201.0 has been installed!
Tool Manager: Installing framework-mbed @ ~5.51105.190304
Error: Could not find the package with 'framework-mbed @ ~5.51105.190304' requirements for your system 'linux_x86_64'

I tried to work around it helping out the platformio to find another mbed version by:

pio pkg install --tool "platformio/framework-mbed"

It installs mbed 6.60900.220911… however the build fails with a neverending loop of warnnings from

/home/user/.platformio/packages/framework-mbed/platform/cxxsupport/mstd_functional:88:86: error: 'decay_t' is not a member of 'std'; did you mean 'decay'?

Any ideas on how to handle this? Maybe solving the installation of mbed 5 version… I tried ''pio pkg install --tool “platformio/framework-mbed@5.51105.220603” but same error occurs (Error: Could not find the package…)

For some reason, only 2 versions of framework-mbed exist:

So best you can do is add

platform_packages =
   	framework-mbed@~6.51506.230421

to your platformoi.ini.