Unable to install packages

Trying to run sudo apt-get install xvfb,

But looks like there are administrative privileges, anybody can help?

You don't have root access, so you won't be able to run sudo commands on PythonAnywhere. What exactly do you need it for?

While trying to run the script for sending automatic messages via whatsapp. getting Key error: Display Hence was trying to setup a virtual display

We don't recommend using virtual display -- you could experiment with selenium or playwright.