Recently, there were some changes to the apt mirrors that has affected several Docker images, which you may be running in Bitbucket Pipelines. Most reports of this issue started on the 26th of March. But it’s possible to have occurred since March 20th.
If you’re seeing an error message like this, when running "apt-get update", you are likely affected by this issue:
Err http://httpredir.debian.org jessie-updates/main amd64 Packages
404 Not Found
Get:4 http://security.debian.org jessie/updates/main amd64 Packages [822 kB]
Get:5 http://httpredir.debian.org jessie/main amd64 Packages [9098 kB]
W: Failed to fetch http://httpredir.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.
Fetched 10.1 MB in 6s (1486 kB/s)
You may also encounter this with “wheezy” instead of “jessie”.
Details of why this is occurring are noted here: https://lists.debian.org/debian-devel-announce/2019/03/msg00006.html
In order to fix this issue, you will need to update the Docker image you are using in your build.
For example, if you are using Python:3.5.1, you now need to use a currently supported tag such as 3.5.7 or 3.7.2.
image: python:3.5.7 # This line has been updated to a working version
- apt-get update # This should now work properly
If you are using another public Docker image, search for it on Dockerhub and either try a newer tag, or see if there is a “-stretch” tag suffix available to use.
Once you’ve updated the image, your “apt-get update” command should resume working again.
Philip HodderAtlassian Team
...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events