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

Dockerimage fails to build #206

Open
Mattew16 opened this issue Nov 8, 2023 · 8 comments
Open

Dockerimage fails to build #206

Mattew16 opened this issue Nov 8, 2023 · 8 comments

Comments

@Mattew16
Copy link

Mattew16 commented Nov 8, 2023

unable to build docker image because of some missing dependencies

2.283 Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [8788 B]
3.157 Fetched 8700 kB in 3s (2839 kB/s)
3.157 Reading package lists...
3.662 Reading package lists...
4.186 Building dependency tree...
4.326 Reading state information...
4.378 libpq-dev is already the newest version (11.16-0+deb10u1).
4.378 Some packages could not be installed. This may mean that you have
4.378 requested an impossible situation or if you are using the unstable
4.378 distribution that some required packages have not yet been created
4.378 or been moved out of Incoming.
4.378 The following information may help to resolve the situation:
4.378
4.378 The following packages have unmet dependencies:
4.431  dnsutils : Depends: libbind9-161 (= 1:9.11.5.P4+dfsg-5.1+deb10u7) but 1:9.11.5.P4+dfsg-5.1+deb10u9 is to be installed
4.431             Depends: libdns1104 (= 1:9.11.5.P4+dfsg-5.1+deb10u7) but 1:9.11.5.P4+dfsg-5.1+deb10u9 is to be installed
4.431             Depends: libisc1100 (= 1:9.11.5.P4+dfsg-5.1+deb10u7) but 1:9.11.5.P4+dfsg-5.1+deb10u9 is to be installed
4.431             Depends: libisccfg163 (= 1:9.11.5.P4+dfsg-5.1+deb10u7) but 1:9.11.5.P4+dfsg-5.1+deb10u9 is to be installed
4.431             Depends: liblwres161 (= 1:9.11.5.P4+dfsg-5.1+deb10u7) but 1:9.11.5.P4+dfsg-5.1+deb10u9 is to be installed
4.442 E: Unable to correct problems, you have held broken packages.
------
Dockerfile:8
--------------------
   7 |     # dependencies for psycopg2
   8 | >>> RUN apt-get update && apt-get install --no-install-recommends -y dnsutils=1:9.11.5.P4+dfsg-5.1+deb10u7 libpq-dev=11.16-0+deb10u1 python3-dev=3.7.3-1 \
   9 | >>>  && apt-get clean \
  10 | >>>  && rm -rf /var/lib/apt/lists/*
  11 |
--------------------
error: failed to solve: process "/bin/sh -c apt-get update && apt-get install --no-install-recommends -y dnsutils=1:9.11.5.P4+dfsg-5.1+deb10u7 libpq-dev=11.16-0+deb10u1 python3-dev=3.7.3-1  && apt-get clean  && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

Looks like its not able to install neither dnsutils or libpq-dev in versions selected in dockerfile.
I did quick check and I am able to build image without specifying particular versions of this two packages, but not quite sure does it "broke" any functionalities

@BasharDlaleh
Copy link

same here, is this fixed yet?? what branch/tag is working??

@adeyosemanputra
Copy link
Owner

still working to fixing

@rsalunga29
Copy link

Any update on this or a temporary fix?

@relaxnow
Copy link

Still fails to build:

 => ERROR [3/9] RUN apt-get update && apt-get install --no-install-recommends -y dnsutils=1:9.11.5.P4+dfsg-5.1+deb10u7 libpq-dev=11.16-0+deb10u1 python3-dev=3.7.3-1  && apt-get clean  && rm -rf /var/lib/apt/lists/*                                                               4.5s
------                                                                                                                                                                                                                                                                                    
 > [3/9] RUN apt-get update && apt-get install --no-install-recommends -y dnsutils=1:9.11.5.P4+dfsg-5.1+deb10u7 libpq-dev=11.16-0+deb10u1 python3-dev=3.7.3-1  && apt-get clean  && rm -rf /var/lib/apt/lists/*:                                                                          
0.623 Get:1 http://deb.debian.org/debian buster InRelease [122 kB]                                                                                                                                                                                                                        
0.635 Get:2 http://security.debian.org/debian-security buster/updates InRelease [34.8 kB]                                                                                                                                                                                                 
0.898 Get:3 http://security.debian.org/debian-security buster/updates/main amd64 Packages [598 kB]                                                                                                                                                                                        
0.902 Get:4 http://deb.debian.org/debian buster-updates InRelease [56.6 kB]                                                                                                                                                                                                               
1.032 Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7909 kB]
1.830 Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [8788 B]
2.850 Fetched 8729 kB in 3s (3268 kB/s)
2.850 Reading package lists...
3.478 Reading package lists...
4.165 Building dependency tree...
4.303 Reading state information...
4.356 libpq-dev is already the newest version (11.16-0+deb10u1).
4.356 Some packages could not be installed. This may mean that you have
4.356 requested an impossible situation or if you are using the unstable
4.356 distribution that some required packages have not yet been created
4.356 or been moved out of Incoming.
4.356 The following information may help to resolve the situation:
4.356 
4.356 The following packages have unmet dependencies:
4.411  dnsutils : Depends: libbind9-161 (= 1:9.11.5.P4+dfsg-5.1+deb10u7) but 1:9.11.5.P4+dfsg-5.1+deb10u11 is to be installed
4.411             Depends: libdns1104 (= 1:9.11.5.P4+dfsg-5.1+deb10u7) but 1:9.11.5.P4+dfsg-5.1+deb10u11 is to be installed
4.411             Depends: libisc1100 (= 1:9.11.5.P4+dfsg-5.1+deb10u7) but 1:9.11.5.P4+dfsg-5.1+deb10u11 is to be installed
4.411             Depends: libisccfg163 (= 1:9.11.5.P4+dfsg-5.1+deb10u7) but 1:9.11.5.P4+dfsg-5.1+deb10u11 is to be installed
4.411             Depends: liblwres161 (= 1:9.11.5.P4+dfsg-5.1+deb10u7) but 1:9.11.5.P4+dfsg-5.1+deb10u11 is to be installed
4.423 E: Unable to correct problems, you have held broken packages.
------
Dockerfile:8
--------------------
   7 |     # dependencies for psycopg2
   8 | >>> RUN apt-get update && apt-get install --no-install-recommends -y dnsutils=1:9.11.5.P4+dfsg-5.1+deb10u7 libpq-dev=11.16-0+deb10u1 python3-dev=3.7.3-1 \
   9 | >>>  && apt-get clean \
  10 | >>>  && rm -rf /var/lib/apt/lists/*
  11 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install --no-install-recommends -y dnsutils=1:9.11.5.P4+dfsg-5.1+deb10u7 libpq-dev=11.16-0+deb10u1 python3-dev=3.7.3-1  && apt-get clean  && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

@relaxnow
Copy link

Removing the version numbers from the apt-get install does get the image to build, but the image doesn't start. It appears it needs gunicorn but that was removed some time ago: 5ae6b4d .

@lucasferreira94
Copy link

hello dears,

I've been having the same problem here since last year. I really would like to have help with that because would be very useful in my studies.

Thanks

@adeyosemanputra
Copy link
Owner

@lucasferreira94 why you till using docker? can you install with pip or other?

@lucasferreira94
Copy link

@lucasferreira94 why you till using docker? can you install with pip or other?

@adeyosemanputra I was setting up in a Lab to use with Kind K8s Cluster with other vulnerable apps. And by docker is easier to set up and maintain

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

6 participants