Sir as per the instructions in this page (Installing App Inventor 2 Setup on GNU/Linux) I installed app inventor in my ubuntu 22.04 but it'snt working . How to open it in browser as 18.04 and other versions
What isn't working ? I presume you followed all the instructions in the linked page you provided. At what point does it not work.
Why do you need a browser, other than for the edu.mit.appinventor web app ?
There are a bunch of Android emulators for Ubuntu 22.04
https://www.google.com/search?q=Ubuntu+22.04+Android+emulators
Once you have installed any of them, download the Companion .apk to it, and connect->Companion from an AI2 Project.
You don't need AIStarter or any MIT packaged emulator, only the Companion app.
I would recommend Genymotion