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
sudo apt-get install r-base-dev --reinstall
and then run RStudio again. – N0rbert Feb 25 '22 at 20:51ERROR R SUICIDE: unable to open the base package; LOGGED FROM: void {anonymous}::rSuicide(const string&) src/cpp/session/SessionMain.cpp:1206
– akoontz11 Feb 25 '22 at 20:57apt-cache policy r-base-dev
to the question. – N0rbert Feb 25 '22 at 20:59root
, but it gives the messageQStandardPaths: wrong ownership on runtime directory /run/user/1001, 1001 instead of 0
. Any other user besidesroot
generates described behavior – akoontz11 Feb 25 '22 at 21:16mv ~/R ~/R-old
and then run RStudio again. – N0rbert Feb 25 '22 at 21:51/usr/bin/R
didn't address the problem (not sure if you meant this or something else; on the user account in question, there is no~/R
directory).I suspect this is somehow tied to the permissions on either the R executable or other relevant R folders (since rstudio functions under
– akoontz11 Feb 28 '22 at 15:28root
), but I couldn't say which ones. I'm trying to fix that now.