Skip to content
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

Unable to run docker-compose build without error #226

Open
kaburelabs opened this issue Feb 26, 2024 · 1 comment
Open

Unable to run docker-compose build without error #226

kaburelabs opened this issue Feb 26, 2024 · 1 comment

Comments

@kaburelabs
Copy link

Hello guys, I would like to get some support on how to run this project;

I have cloned it and tried to run it locally by running docker-compose build but I'm facing a problem when it reaches the below part inside the updater Dockerfile

RUN apt-get update && apt-get -y install r-base r-cran-forecast

$ docker-compose build
[+] Building 0.0s (0/1)                                                                                                                                                      
[+] Building 0.2s (1/2)                                                                                                                                                      
 => [internal] load build definition from Dockerfile                                                                                                                    0.0s
 => => transferring dockerfile: 1.78kB                                                                                                                                  0.0s
[+] Building 0.7s (5/5) FINISHED                                                                                                                                             
 => [internal] load build definition from Dockerfile                                                                                                                    0.0s
 => => transferring dockerfile: 107B                                                                                                                                    0.0s
 => [internal] load metadata for docker.io/library/python:3.10-bullseye                                                                                                 0.6s
 => [internal] load .dockerignore                                                                                                                                       0.0s
 => => transferring context: 2B                                                                                                                                         0.0s
 => CACHED [1/1] FROM docker.io/library/python:3.10-bullseye@sha256:02c7cb92b8f23908de6457f7800c93b84ed8c6e7201da7935443d4c5eca7b381                                    0.0s
[+] Building 18.3s (13/16)                                                                                                                                                   
 => [internal] load build definition from Dockerfile                                                                                                                    0.0s
 => => transferring dockerfile: 1.78kB                                                                                                                                  0.0s
 => [internal] load metadata for docker.io/library/python:3.9-bullseye                                                                                                  0.6s
 => [internal] load .dockerignore                                                                                                                                       0.0s
 => => transferring context: 2B                                                                                                                                         0.0s
 => [internal] load build context                                                                                                                                       0.0s
 => => transferring context: 107B                                                                                                                                       0.0s
 => [ 1/12] FROM docker.io/library/python:3.9-bullseye@sha256:45fb130f30c35678126be0dc827228a0a83de6952e8458119b9a3ffaf7d3e552                                          0.1s
 => => resolve docker.io/library/python:3.9-bullseye@sha256:45fb130f30c35678126be0dc827228a0a83de6952e8458119b9a3ffaf7d3e552                                            0.0s
 => => sha256:290e2140b6ff86d192abee90791520db9d15a705a6ed35780afdc23643b4eb90 7.32kB / 7.32kB                                                                          0.0s
 => => sha256:45fb130f30c35678126be0dc827228a0a83de6952e8458119b9a3ffaf7d3e552 1.86kB / 1.86kB                                                                          0.0s
 => => sha256:59437838c2a47c58c06a569adab86fc4e13af30e1f8776c6c6e9d775b1813d0a 2.01kB / 2.01kB                                                                          0.0s
 => [ 2/12] RUN apt-get update && apt-get -y install cron                                                                                                               5.0s
 => [ 3/12] RUN apt-get -y install tzdata &&    cp /usr/share/zoneinfo/Australia/Sydney /etc/localtime &&    echo "Australia/Sydney" > /etc/timezone                    0.8s
 => [ 4/12] ADD updater-cron /etc/cron.d/updater-cron                                                                                                                   0.0s 
 => [ 5/12] RUN chmod 0644 /etc/cron.d/updater-cron                                                                                                                     0.4s 
 => [ 6/12] RUN crontab /etc/cron.d/updater-cron                                                                                                                        0.5s 
 => [ 7/12] RUN touch /var/log/cron.log                                                                                                                                 0.3s 
 => [ 8/12] RUN echo "deb http://deb.debian.org/debian testing main contrib non-free" > /etc/apt/sources.list && apt-get update                                         2.1s 
 => [ 9/12] COPY ./requirements-bin.txt .                                                                                                                               0.1s
 => [10/12] RUN apt-get update &&  apt-get -y install r-base r-cran-forecast  

So, it will start downloading the package and after it will raise a error:


0 38.89 Unpacking perl-base (5.38.2-3) over (5.32.1-4+deb11u3) ...
#0 39.79 Setting up perl-base (5.38.2-3) ...
(Reading database ... 26644 files and directories currently installed.)
#0 39.84 Preparing to unpack .../libgdbm-dev_1.23-5+b1_amd64.deb ...
#0 39.84 Unpacking libgdbm-dev:amd64 (1.23-5+b1) over (1.19-2) ...
#0 39.93 dpkg: libfreetype6-dev:amd64: dependency problems, but removing anyway as you requested:
#0 39.93  libxft-dev:amd64 depends on libfreetype6-dev.
#0 39.93  libwmf-dev depends on libfreetype6-dev.
#0 39.93  libmagickcore-6.q16-dev:amd64 depends on libfreetype6-dev.
#0 39.93  libfontconfig-dev:amd64 depends on libfreetype6-dev (>= 2.8.1).
#0 39.93  libcairo2-dev:amd64 depends on libfreetype6-dev (>= 2.1.10).
#0 39.93 
(Reading database ... 26641 files and directories currently installed.)
#0 39.94 Removing libfreetype6-dev:amd64 (2.10.4+dfsg-1+deb11u1) ...
(Reading database ... 26637 files and directories currently installed.)
#0 39.99 Preparing to unpack .../00-libfreetype-dev_2.13.2+dfsg-1+b1_amd64.deb .
.... 
#0 40.36 Preparing to unpack .../08-usr-is-merged_39_all.deb ...
#0 40.36 
#0 40.36 
#0 40.36 ******************************************************************************
#0 40.36 *
#0 40.36 * The usr-is-merged package cannot be installed because this system does
#0 40.36 * not have a merged /usr.
#0 40.36 *
#0 40.36 * Please install the usrmerge package to convert this system to merged-/usr.
#0 40.36 *
#0 40.36 * For more information please read https://wiki.debian.org/UsrMerge.
#0 40.36 *
#0 40.36 ******************************************************************************
#0 40.36 
#0 40.36 
#0 40.36 dpkg: error processing archive /tmp/apt-dpkg-install-RayYJE/08-usr-is-merged_39_all.deb (--unpack):
#0 40.36  new usr-is-merged package pre-installation script subprocess returned error exit status 1
#0 40.38 Selecting previously unselected package dbus.

Does someone have faced this too?
How can I solve it?
I did a lot of searches but I'm not finding anything that helped... Have also tried GitHub copilot without success... Would appreciate it a lot if someone could provide support with this issue

@sjtrny
Copy link
Collaborator

sjtrny commented Mar 26, 2024

Hi @kaburelabs, thanks for your interest! It looks like problem is an incompatibility with the python:3.9-bullseye container and dependencies in r-base, which have been updated. Switching the image to python:3.9-bookworm should fix the problem and I'm updating the repo now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants