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

API Dockerfile install issue #13150

Closed
5 tasks done
BenjaminX opened this issue Feb 2, 2025 · 4 comments · Fixed by #13158
Closed
5 tasks done

API Dockerfile install issue #13150

BenjaminX opened this issue Feb 2, 2025 · 4 comments · Fixed by #13158
Labels
🐞 bug Something isn't working

Comments

@BenjaminX
Copy link
Contributor

BenjaminX commented Feb 2, 2025

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Docker building

✔️ Expected Behavior

apt-get install -y --no-install-recommends expat=2.6.4-1 libldap-2.5-0=2.5.19+dfsg-1 perl=5.40.0-8 libsqlite3-0=3.46.1-1 zlib1g=1:1.3.dfsg+really1.3.1-1+b1

libldap-2.5-0=2.5.19+dfsg-1 package install

❌ Actual Behavior

12.02 E: Version '2.5.19+dfsg-1' for 'libldap-2.5-0' was not found

@dosubot dosubot bot added the 🐞 bug Something isn't working label Feb 2, 2025
@BenjaminX
Copy link
Contributor Author

BenjaminX commented Feb 2, 2025

12.01 Reading state information...
12.02 Package libldap-2.5-0 is not available, but is referred to by another package.
12.02 This may mean that the package is missing, has been obsoleted, or
12.02 is only available from another source
12.02
12.02 E: Version '2.5.19+dfsg-1' for 'libldap-2.5-0' was not found

Dockerfile:51

50 |
51 | >>> RUN apt-get update
52 | >>> && apt-get install -y --no-install-recommends curl nodejs libgmp-dev libmpfr-dev libmpc-dev
53 | >>> # if you located in China, you can use aliyun mirror to speed up
54 | >>> # && echo "deb http://mirrors.aliyun.com/debian testing main" > /etc/apt/sources.list
55 | >>> && echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list
56 | >>> && apt-get update
57 | >>> # For Security
58 | >>> && apt-get install -y --no-install-recommends expat=2.6.4-1 libldap-2.5-0=2.5.19+dfsg-1 perl=5.40.0-8 libsqlite3-0=3.46.1-1 zlib1g=1:1.3.dfsg+really1.3.1-1+b1
59 | >>> # install a chinese font to support the use of tools like matplotlib
60 | >>> && apt-get install -y fonts-noto-cjk
61 | >>> && apt-get autoremove -y
62 | >>> && rm -rf /var/lib/apt/lists/*
63 |

ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y --no-install-recommends curl nodejs libgmp-dev libmpfr-dev libmpc-dev && echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list && apt-get update && apt-get install -y --no-install-recommends expat=2.6.4-1 libldap-2.5-0=2.5.19+dfsg-1 perl=5.40.0-8 libsqlite3-0=3.46.1-1 zlib1g=1:1.3.dfsg+really1.3.1-1+b1 && apt-get install -y fonts-noto-cjk && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

Copy link

dosubot bot commented Feb 2, 2025

Hey there, @BenjaminX! I'm here to help you with any bugs, questions, or contributions you have. Let's squash those bugs together while you wait for a human maintainer.

I found a similar closed issue regarding Docker build problems related to package availability. The issue was resolved by updating the package version in the Dockerfile [1].

In your case, the error indicates that the specified version of libldap-2.5-0 (2.5.19+dfsg-1) is not found. Here are some steps you can take to resolve this:

  1. Check Package Availability: Verify if the libldap-2.5-0 package version 2.5.19+dfsg-1 is available in the Debian testing repository. You can do this by visiting the Debian package repository website or using a tool like apt-cache to search for available versions.

  2. Use a Different Version: If the specific version is not available, consider using a different version of the libldap-2.5-0 package that is available in the repository. You can remove the version specification in your Dockerfile to install the latest available version.

  3. Update Repository Sources: Ensure that your /etc/apt/sources.list is correctly configured to point to the appropriate Debian repositories. Sometimes, using a different mirror or updating the repository list can resolve such issues.

These steps should help you resolve the package installation issue during the Docker build process.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@ZuzooVn ZuzooVn mentioned this issue Feb 2, 2025
5 tasks
@BenjaminX BenjaminX reopened this Feb 4, 2025
@BenjaminX
Copy link
Contributor Author

BenjaminX commented Feb 4, 2025

@BenjaminX
Copy link
Contributor Author

#13176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant