golem icon indicating copy to clipboard operation
golem copied to clipboard

Unable to locate package libmariadb-client-lgpl-dev

Open mahelious opened this issue 6 years ago • 3 comments

running add_dockerfile() produces the following Dockerfile

FROM rocker/r-ver:4.0.2
RUN apt-get update && apt-get install -y  git-core libcurl4-openssl-dev libgit2-dev libglpk-dev libgmp-dev libmariadb-client-lgpl-dev libssh-dev libssh2-1-dev libssl-dev libxml2-dev make pandoc pandoc-citeproc zlib1g-dev && rm -rf /var/lib/apt/lists/*
RUN echo "options(repos = c(CRAN = 'https://cran.rstudio.com/'), download.file.method = 'libcurl')" >> /usr/local/lib/R/etc/Rprofile.site
RUN R -e 'install.packages("remotes")'
RUN R -e 'remotes::install_github("r-lib/remotes", ref = "97bbf81")'
RUN Rscript -e 'remotes::install_version("config",upgrade="never", version = "0.3")'
RUN Rscript -e 'remotes::install_version("golem",upgrade="never", version = "0.2.1")'
RUN Rscript -e 'remotes::install_version("shiny",upgrade="never", version = "1.5.0")'
RUN Rscript -e 'remotes::install_version("shinyjs",upgrade="never", version = "NA")'
RUN Rscript -e 'remotes::install_version("shinyWidgets",upgrade="never", version = "0.5.3")'
RUN Rscript -e 'remotes::install_version("bs4Dash",upgrade="never", version = "NA")'
RUN Rscript -e 'remotes::install_version("lubridate",upgrade="never", version = "1.7.9")'
RUN Rscript -e 'remotes::install_version("dplyr",upgrade="never", version = "1.0.0")'
RUN Rscript -e 'remotes::install_version("tidyr",upgrade="never", version = "1.1.0")'
RUN Rscript -e 'remotes::install_version("tibble",upgrade="never", version = "3.0.1")'
RUN Rscript -e 'remotes::install_version("RMariaDB",upgrade="never", version = "NA")'
RUN Rscript -e 'remotes::install_version("ssh",upgrade="never", version = "NA")'
RUN Rscript -e 'remotes::install_version("callr",upgrade="never", version = "3.4.3")'
RUN Rscript -e 'remotes::install_version("glue",upgrade="never", version = "1.4.1")'
RUN Rscript -e 'remotes::install_version("highcharter",upgrade="never", version = "NA")'
RUN Rscript -e 'remotes::install_version("DT",upgrade="never", version = "NA")'
RUN Rscript -e 'remotes::install_version("viridis",upgrade="never", version = "NA")'
RUN Rscript -e 'remotes::install_version("openintro",upgrade="never", version = "NA")'
RUN Rscript -e 'remotes::install_version("DBI",upgrade="never", version = "1.1.0")'
RUN Rscript -e 'remotes::install_version("magrittr",upgrade="never", version = "1.5")'
RUN mkdir /build_zone
ADD . /build_zone
WORKDIR /build_zone
RUN R -e 'remotes::install_local(upgrade="never")'
EXPOSE 80
CMD R -e "options('shiny.port'=80,shiny.host='0.0.0.0');myg.analytics::run_app()"

Building the Dockerfile produces this error:

E: Unable to locate package libmariadb-client-lgpl-dev
The command '/bin/sh -c apt-get update && apt-get install -y  git-core libcurl4-openssl-dev libgit2-dev libglpk-dev libgmp-dev libmariadb-client-lgpl-dev libssh-dev libssh2-1-dev libssl-dev libxml2-dev make pandoc pandoc-citeproc zlib1g-dev && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

Running rocker/r-ver:4.0.2, looks to be based off of Ubuntu Focal

root@bffd903b3551:/# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04 LTS"

Searching Ubuntu packages, it appears that libmariadb-client-lgpl-dev has been deprecated since eoan in favor of libmariadb-dev-compat

What can we do to swap libmariadb-dev-compat for libmariadb-client-lgpl-dev in the add_dockerfile()?

mahelious avatar Jul 08 '20 02:07 mahelious

Hey,

Thanks for the bug report!

This is a known issue that unfortunately we can't correct ourselves today — the Dockerfile creation is done by calling the sys-req API, and when combining the API + the base r-ver Docker image + the debian package manager status, there sometimes are some mismatches.

Unfortunately right now there is no way to do it without changing by hand, but with #493, it will be possible to programmatically manipulate the Dockerfile object.

ColinFay avatar Sep 03 '20 14:09 ColinFay

Hey,

This seems to be solved for modern version of R & rockerverse Dockerfiles.

Feel free to comment if you still have this issue

ColinFay avatar Sep 23 '21 19:09 ColinFay

i still have this issue

selective5296 avatar Nov 23 '21 10:11 selective5296