Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] File exists (os error 17) installing R 3.5.3 #124

Closed
RuiyuRayWang opened this issue Sep 29, 2022 · 7 comments
Closed

[ERROR] File exists (os error 17) installing R 3.5.3 #124

RuiyuRayWang opened this issue Sep 29, 2022 · 7 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@RuiyuRayWang
Copy link

Hi, while installing a legacy version of R (3.5.3) I encountered the following error

$ rig add 3.5.3
[INFO] Running `sudo` for adding new R versions. This might need your password.
[sudo] password for xxxxxx: 
[INFO] Downloading https://cdn.rstudio.com/r/ubuntu-2004/pkgs/r-3.5.3_1_amd64.deb ->
    /tmp/rig/r-3.5.3_1_amd64.deb
[INFO] Running apt-get update
--nnn-- Start of apt-get output -------------------
Hit:1 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64  InRelease
Hit:2 https://dl.google.com/linux/chrome/deb stable InRelease                  
Hit:3 https://download.docker.com/linux/ubuntu focal InRelease                 
Hit:4 http://security.ubuntu.com/ubuntu focal-security InRelease             
Hit:5 http://cn.archive.ubuntu.com/ubuntu focal InRelease     
Hit:6 http://cn.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:7 http://cn.archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
--uuu-- End of apt-get output ---------------------
[INFO] Running apt-get install
--nnn-- Start of apt-get output -------------------
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gdebi-core is already the newest version (0.9.5.7+nmu3).
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
--uuu-- End of apt-get output ---------------------
[INFO] Running gdebi
--nnn-- Start of gdebi output ---------------------
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Reading state information... Done
Selecting previously unselected package r-3.5.3.
(Reading database ... 311120 files and directories currently installed.)
Preparing to unpack /tmp/rig/r-3.5.3_1_amd64.deb ...
Unpacking r-3.5.3 (1) ...
Setting up r-3.5.3 (1) ...
--uuu-- End of gdebi output -----------------------
[ERROR] File exists (os error 17)

After which rig list says

$ rig list
3.5.3
3.6.2
3.6.3
4.0.5
4.1.0
4.2.0

But the R version cannot be loaded.

$ rig default 3.5.3
[INFO] Running `sudo` for setting the default R version. This might need your password.
[ERROR] File exists (os error 17)

Does anyone encounter the same problem?

Ray

@RuiyuRayWang RuiyuRayWang changed the title ERROR] File exists (os error 17) installing R 3.5.3 [ERROR] File exists (os error 17) installing R 3.5.3 Sep 29, 2022
@RuiyuRayWang
Copy link
Author

Problem solved.
Previously I ran rig remove 3.5.2 while 3.5.2 was the active version.
After that /opt/R/current still points to /opt/R/3.5.2
I did sudo rm /opt/R/current and rig default 3.5.3 worked fine.

@gaborcsardi
Copy link
Member

I think this is already fixed in the latest version of rig, what version are you using?

@RuiyuRayWang
Copy link
Author

$rig --version
RIIG -- The R Installation Manager 0.4.2

I'll update to the latest version. Thanks!

@RuiyuRayWang
Copy link
Author

Hi Gabor,

Previously I was using 0.4.2.

$rig --version
RIIG -- The R Installation Manager 0.4.2

Now I updated to rig 0.5.2 but the issue persists.

~$ rig --version
RIG -- The R Installation Manager 0.5.2
~$ rig default 3.5.3
[INFO] Running `sudo` for setting the default R version. This might need your password.
~$ rig remove 3.5.3
[INFO] Running `sudo` for removing R versions. This might need your password.
[INFO] Removing r-3.5.3 package
[INFO] > Reading package lists...
[INFO] > Building dependency tree...
[INFO] > Reading state information...
[INFO] > The following packages will be REMOVED:
[INFO] >   r-3.5.3*
[INFO] > 0 upgraded, 0 newly installed, 1 to remove and 10 not upgraded.
[INFO] > After this operation, 89.6 MB disk space will be freed.
[INFO] > (Reading database ... 313092 files and directories currently installed.)
[INFO] > Removing r-3.5.3 (1) ...
~$ rig default 4.1.0
[INFO] Running `sudo` for setting the default R version. This might need your password.
[ERROR] File exists (os error 17)
~$ R --version
R version 3.6.3 (2020-02-29) -- "Holding the Windsock"

Best,
Ray

@RuiyuRayWang RuiyuRayWang reopened this Sep 30, 2022
@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Feb 18, 2023
@ifendo
Copy link

ifendo commented May 11, 2023

I also got the similar issue on Mac M1 with rig version 0.5.3, any idea on how to solve it @gaborcsardi ? thank you very much

@gaborcsardi
Copy link
Member

@ifendo You are on a different OS, it is unlikely that it is the same issue, can you please open another issue with the details?

@ifendo
Copy link

ifendo commented May 11, 2023

Thank you very much for your quick response. I have created a new issue #157 as you suggested.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants