rocker-org / rocker

R configurations for Docker
https://rocker-project.org
GNU General Public License v2.0
1.45k stars 273 forks source link

New `usrmerge` issues. #554

Closed jcrodriguez1989 closed 1 month ago

jcrodriguez1989 commented 1 month ago

Hello, thanks for your wonderful work at rocker 🙌 I am having some more usrmerge issues (I saw there are related issues already closed).

This simple Dockerfile is failing:

FROM rocker/r-base:4.2.0
RUN apt-get update && apt-get -y install \
    libcurl4-openssl-dev

with error:

Preparing to unpack .../libc6_2.38-13_amd64.deb ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 78.)
debconf: falling back to frontend: Readline
Checking for services that may need to be restarted...
Checking init scripts...

The current installation does not have a merged-/usr layout.
This is unsupported and unpacking libc6 would break the system.
Refusing to unpack. Please install the usrmerge package and try again.

dpkg: error processing archive /var/cache/apt/archives/libc6_2.38-13_amd64.deb (--unpack):
 new libc6:amd64 package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.38-13_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Is there any easy workaround? Or should I just go to rocker/r-base:latest (I am trying to avoid this)?

eddelbuettel commented 1 month ago

Why do you use 4.2.0? The usrmerge happened later (as far as I remember) and current container files build.

jcrodriguez1989 commented 1 month ago

We use 4.2.0 just because that's the R version we use for dev. There's no easy workaround? If not, we can try switching to a newer R version.

eitsupi commented 1 month ago

IMO, r-base supports only the latest R version and is not a suitable image for applications that stop at older R versions. I recommend to use rocker/r-ver or use rig to install any version of R.

eddelbuettel commented 1 month ago

@jcrodriguez1989 You are facing a self-created dilemma I cannot resolve for you:

So you need to think through what you really want:

As the request is fundamentally mismatched with what we do here (and, possibly, based on a misunderstanding) I will close this.

jcrodriguez1989 commented 1 month ago

I will opt for the rocker/r-ver alternative. Thank you both very much for your help.