Can't install Rstudio on ubuntu 20.04 MacBook air m1

Hi, everyone!
My computer is macbook air m1. I have installed R 3.6.3. when I install rstudio using sudo gdebi rstudio-2021.09.0-351-amd64.deb, it comes back
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: libedit2

Then I installed libedit2, and try to install rstudio , the same problem occurred again. It seems
root@linux:/home/xsq# sudo apt-get install libedit2
Reading package lists... Done
Building dependency tree
Reading state information... Done
libedit2 is already the newest version (3.1-20191231-1).
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

root@linux:/home/xsq# sudo gdebi rstudio-2021.09.0-351-amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: libedit2

Could you please advise me, if someone is using RStudio on the last mac, If those problems are now solved?

Many thanks