Plots not working on R 4.0.5 in ubuntu 18.04.5

I am having difficulty in viewing even basic plots on my cloud R Studio server and shiny server. I saw a couple of such posts, hence downgraded my R version to 4.0.5, but no success. Even basic plots terminate the session. Please help!