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

Docker Build Failing #272

Open
mornindew opened this issue Aug 17, 2022 · 2 comments
Open

Docker Build Failing #272

mornindew opened this issue Aug 17, 2022 · 2 comments

Comments

@mornindew
Copy link

Hi,

I am trying to build a docker container locally with the command:

docker build .

unfortunately I am getting the error when it is attempting to install the dependencies:

Setting up notification-daemon (3.20.0-4) ...
Processing triggers for libc-bin (2.31-13+deb11u3) ...
Processing triggers for libgdk-pixbuf-2.0-0:amd64 (2.42.2+dfsg-1) ...
Errors were encountered while processing:
 gconf2-common
 gconf-service
 libgconf-2-4:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
The command '/bin/sh -c apt-get install -y                                                        libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3      libxss1 libasound2 libxtst6 xauth xvfb g++ make' returned a non-zero code: 100

Has anyone seen this before? I didn't make any changes to the dockerFile. I am able to pull docker just fine and run it but I would like to be able to build locally if possible. Thank you so much.

@mornindew
Copy link
Author

Small update, the issue appears to be in the newer version of debian as if I remove the "upgrade" command from the docker file then it works fine. Seems to be some sort of issue when installing packages after performing an upgrade.

Temp fix:

Change: RUN apt-get update && apt-get upgrade -y
To: RUN apt-get update -y

Obviously not a great long term solution. Will let you know if I come up with something better.

@devansh-sharma-tw
Copy link
Contributor

Hi @mornindew , just tried building this on my local now. The apt install step did fail once with an error different from yours (it seemed to be related to just failing to download a package), but re running the build without any changes worked the next time.
Could you pls confirm if re running the build (with apt upgrade step) still fails with the exact same error ? This might help narrow down on the cause.

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