Score:1

Rstudio desktop "unable to open the base package"

cn flag

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".

RStudio_Error_SUICIDE

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
N0rbert avatar
zw flag
Try `sudo apt-get install r-base-dev --reinstall` and then run RStudio again.
akoontz11 avatar
cn flag
Still getting the same error ("unable to open the base package") after this. The same text is written to the rstudio log (~/.local/share/rstudio/log/rsession-akoontz.log): ERROR R SUICIDE: unable to open the base package; LOGGED FROM: void {anonymous}::rSuicide(const string&) src/cpp/session/SessionMain.cpp:1206
N0rbert avatar
zw flag
Please add output of `apt-cache policy r-base-dev` to the question.
akoontz11 avatar
cn flag
Thanks @N0rbert, see edit
akoontz11 avatar
cn flag
Also: RStudio will open when called from `root`, but it gives the message `QStandardPaths: wrong ownership on runtime directory /run/user/1001, 1001 instead of 0`. Any other user besides `root` generates described behavior
N0rbert avatar
zw flag
Can't reproduce on fresh VM. You can try moving R folder out the way by `mv ~/R ~/R-old` and then run RStudio again.
akoontz11 avatar
cn flag
Moving `/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 `root`), but I couldn't say which ones. I'm trying to fix that now.
Score:1
cn flag

I ultimately had to uninstall R in addition to RStudio to address this problem. This somehow righted the permission structure and allowed RStudio to open for non-root users.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.