Closed AlexKrupa closed 2 years ago
@AlexKrupa your solution works, you could even write it shorter
steps:
- run:
name: Fix Ruby permissions
command: sudo chmod -R a+w /var/lib/gems/ /usr/local/bin
AFAIK
The variant are built starting from Dockerfile.template which uses as base image cimg/base:xxx
In my case I am using cimg/android:2022.01.1-node
which is based upon cimg/base:2022.01
.
The latter is based upon Ubuntu 20.04
, where the issue may come from
circleci@9b41a1eb3b0a:~/project$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
Indeed it looks like the issue has been fixed in following versions of Ubuntu starting from 20.10.4 on, see https://stackoverflow.com/a/68258603/2199731
This looks to be a problem with the Ruby orb. Closing for now.
@felicianotech does this mean that more recent versions of the ORBs won't be affected by this issue?
I encountered this problem when upgrading from a legacy Android image to the latest next-gen one.
Problem
Running
ruby/install-deps
step from Ruby orb fails like this:After solving this for
/var/libs/gems
it fails again for/usr/local/bin
directory.Solution
Use
chmod
to grant directory permissions as described in this StackOverflow answer.I'm not sure if that's the best approach, but it solved the issue for me. Is it something that could be included in the image?