Closed palayoov closed 1 year ago
Did you check if the package had any recent bug reports?
It just worked for me (apt update; apt install libssl-dev
) in rocker/r-base
and in r-base
. Note that there were some recent issue due to the '/usrmerg' upgrade in Debian. I had rebuilt rocker/r-base
but not (yet) r-base
for that -- this will happen when R 4.2.2 comes out in a week and one day.
Thanks so much for the quick response. I am trying the rocker/r-base:latest image now, and now it seems to fail on the apt-get update with this:
[2/5] COPY install_packages.R /code/ 0.3s
ERROR [3/5] RUN apt-get update 6.3s
------
> [3/5] RUN apt-get update:
#6 0.541 Get:2 http://deb.debian.org/debian testing InRelease [164 kB]
#6 0.636 Get:1 http://cdn-fastly.deb.debian.org/debian sid InRelease [161 kB]
#6 0.749 Get:3 http://deb.debian.org/debian-security testing-security InRelease [48.0 kB]
#6 0.817 Get:4 http://cdn-fastly.deb.debian.org/debian sid/main amd64 Packages [9,384 kB]
#6 0.877 Get:5 http://deb.debian.org/debian testing-updates InRelease [49.6 kB]
#6 0.926 Get:6 http://deb.debian.org/debian testing/main amd64 Packages [8,694 kB]
#6 5.493 Fetched 18.5 MB in 5s (3,570 kB/s)
#6 5.493 Reading package lists...
#6 6.235 E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
#6 6.235 E: Sub-process returned an error code
No idea. I just used it two minutes ago to illustrate a StackOverflow answer which its OP still had issues with. "Works here". Not sure what to say.
Maybe the usual stuff. Is your docker (package and daemon) current? Could anything else differ? I am on Ubuntu 22.04 but that should not matter.
I thought Docker was supposed to solve the "works on my machine" problem... 🙂 Thanks, I am running Windows with WSL Ubuntu 20.04.1...maybe that's my problem. Clearly seems to be a local problem, will try a few more things and update.
So it was definitely an environmental issue with my Docker desktop. @eddelbuettel your thought about ubuntu version got me thinking about my Docker desktop version and indeed I had an outdated version of Docker desktop. Once I updated the version of Docker desktop my problem went away and no changes were required to my Dockerfile.
With this new update, I had no issues with my build.
That part is oddly non-transparent about Docker, and the error messages give no hint whatsoever. Glad you got it sorted out.
Hi, When rebuilding my base images and installing baseline dependencies for my R script, I am getting new errors that I was not receiving before. They are failing on the installation of libssl-dev. I have tried tag as far as back as 4.1.3 but will go farther to see if it goes away. Any ideas?
The error is: