Error: libgl1 -mesa -glx-xvfb


strong text
Please Help me to handle this error.
I am beginner in python and Fenicsx. I have ubuntu and anaconda navigator. when run this code from fenics tutorial this error occur.

The instruction is quite clear, you should install
libgl1-mesa-glx and xvfb on your system.

If you are on a newer version of ubuntu (24.04) install: libgl1-mesa-dev instead of libgl1-mesa-glx

Thanks for your answer. I tried it but I meet the problem

Did you install xvfb as well?

Thank you for your help. My Problem solved. I appreciate you. Thanks a lot