I'm running R 4.1.2 on my Linux system (18.04.6 LTS, "Bionic Beaver"), and am able to run R code in Terminal fine. I recently installed RStudio Desktop (2022.02.0+443, "Prairie Trillium"), but when I try to run it I get a pop up window saying "unable to open base package".
Resetting the R user's state (per this suggestion, for a similar issue in rstudio-server) did nothing.
Context: I had a serious permissions issues on this server recently where the ownership of /usr was accidentally changed; see the thread here, which I followed in order to fix the problem. It seemed to work, but now RStudio is still giving me troubles.
I've scoured the Internet, but with no luck. Uninstalling/reinstalling RStudio doesn't seem to fix anything.
Thanks for any help!
Edit: Output of apt-cache policy r-base-dev
:
r-base-dev:
Installed: 4.1.2-1.1804.0
Candidate: 4.1.2-1.1804.0
Version table:
*** 4.1.2-1.1804.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages
100 /var/lib/dpkg/status
4.1.1-1.1804.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages
4.1.0-1.1804.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages
4.0.5-1.1804.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages
4.0.4-1.1804.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages
4.0.3-1.1804.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages
4.0.2-1.1804.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages
4.0.1-1.1804.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages
4.0.0-1.1804.0 500
500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages
3.4.4-1ubuntu1 500
500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
500 http://us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages