-
Notifications
You must be signed in to change notification settings - Fork 19
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
Avoid using /usr/bin/tar on Debian machines #198
Comments
I bet this is the same issue we once got with docker run -it --rm ubuntu:focal
$ ls -la /bin
lrwxrwxrwx 1 root root 7 Aug 26 2022 /bin -> usr/bin
$ readlink -f /bin/tar
/usr/bin/tar This causes issues for unmerged systems (if you've upgraded from an older OS perhaps?) and other things unfortunately: https://lwn.net/Articles/890219/ So for newer Ubuntu and Debian builds, we could override the If we want to set TAR and prevent issues from unmerged /usr systems, there are some other variables that the distro default r-base sets as well for reference: https://salsa.debian.org/edd/r-base/-/merge_requests/1 |
Yeah, it is the upgrades that cause issues, the symlinks are missing on upgraded systems. |
Thanks; I wasn't aware of that! For what it's worth:
which I think gives some (small) amount of motivation to prefer |
We had this in rig some time ago, for |
Indeed, I also needed to manually create symlinks for that directory (Ubuntu 20.04 LTS). |
This is a follow-up from rstudio/renv#1794.
For the builds of R published on https://docs.posit.co/resources/install-r, it looks like R is configured to use system installations of
tar
andsed
as so:This can be problematic in rare scenarios, as
/usr/bin/sed
and/usr/bin/tar
are not actually provided by anyapt
packages. So, if those programs are not available for some reason, it's not clear for the user on how to recover.Some other similar instances:
In other words, for each of these programs, if a variant exists in
/bin
, I think that version should be preferred.The text was updated successfully, but these errors were encountered: