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

Cannot run apt-get update in 3.4 #340

Closed
aaronrphillips opened this issue Mar 26, 2019 · 2 comments
Closed

Cannot run apt-get update in 3.4 #340

aaronrphillips opened this issue Mar 26, 2019 · 2 comments

Comments

@aaronrphillips
Copy link

The following Dockerfile will not build (using docker build --no-cache .):

FROM mongo:3.4

RUN apt-get clean 
RUN apt-get update 

I get the following error:

Sending build context to Docker daemon  105.4MB
Step 1/3 : FROM mongo:3.4
 ---> 8958526fd8a9
Step 2/3 : RUN apt-get clean
 ---> Running in d2ff83ccf674
 ---> a980cfd1091f
Removing intermediate container d2ff83ccf674
Step 3/3 : RUN apt-get update
 ---> Running in 08a7b0eea8c0
Ign http://repo.mongodb.org jessie/mongodb-org/3.4 InRelease
Get:1 http://repo.mongodb.org jessie/mongodb-org/3.4 Release.gpg [801 B]
Get:2 http://repo.mongodb.org jessie/mongodb-org/3.4 Release [2393 B]
Get:3 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://deb.debian.org jessie InRelease
Ign http://deb.debian.org jessie-updates InRelease
Get:4 http://repo.mongodb.org jessie/mongodb-org/3.4/main amd64 Packages [14.2 kB]
Get:5 http://deb.debian.org jessie Release.gpg [2420 B]
Ign http://deb.debian.org jessie-updates Release.gpg
Get:6 http://deb.debian.org jessie Release [148 kB]
Get:7 http://security.debian.org jessie/updates/main amd64 Packages [822 kB]
Ign http://deb.debian.org jessie-updates Release
Get:8 http://deb.debian.org jessie/main amd64 Packages [9098 kB]
Err http://deb.debian.org jessie-updates/main amd64 Packages
  
Err http://deb.debian.org jessie-updates/main amd64 Packages
  
Err http://deb.debian.org jessie-updates/main amd64 Packages
  
Err http://deb.debian.org jessie-updates/main amd64 Packages
  
Err http://deb.debian.org jessie-updates/main amd64 Packages
  404  Not Found
Fetched 10.1 MB in 7s (1274 kB/s)
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c apt-get update' returned a non-zero code: 100

I've tried this on multiple machines, but get the same error after pulling the latest mongo image

@tianon
Copy link
Member

tianon commented Mar 26, 2019

@tianon tianon closed this as completed Mar 26, 2019
@aaronrphillips
Copy link
Author

Thank you!

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