Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pipeline failed on apt-get update / debian-git

artgana August 28, 2021

This is my bitbucket-pipeline.yml, which has worked for years:

image: samueldebruyn/debian-git

pipelines:
branches:
master:
- step:
name: deploy to prod site
deployment: production
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp push --user $FTP_LIVE_USERNAME --passwd $FTP_LIVE_PASSWORD $FTP_LIVE

And now I get this error on build:

+ apt-get update
Ign:1 http://security.debian.org/debian-security stable/updates InRelease
Get:2 http://deb.debian.org/debian stable InRelease [113 kB]
Err:3 http://security.debian.org/debian-security stable/updates Release
404 Not Found [IP: 151.101.250.132 80]
Get:4 http://deb.debian.org/debian stable-updates InRelease [36.8 kB]
Get:5 http://deb.debian.org/debian stable/main amd64 Packages [8178 kB]
Reading package lists...
E: The repository 'http://security.debian.org/debian-security stable/updates Release' does not have a Release file.

I understand that this issue is related not to bitbucket, and the problem is exactly with missing Debian image, but still, any ideas on how this can be fixed?

2 answers

1 accepted

1 vote
Answer accepted
inerds
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 31, 2021

It seems the issue is with the outdated Docker image in samueldebruyn/debian-git. 

I have managed to get my pipelines working using the updated Docker image from bitnami. 

 

Simply replace the image to the following on your bitbucket-pipelines.yml

 

image: bitnami/git
artgana September 3, 2021

thanks!

Like inerds likes this
1 vote
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 30, 2021

Hi @artgana,

We've had reports from other customers using the same Docker image (samueldebruyn/debian-git), the issue seems to be with this Docker image since Debian 11 was released.

It has been raised with the maintainer of this image here:

which has a link to this stack overflow discussion:

Until the issue is fixed in samueldebruyn/debian-git, you can either use a different Docker image in your bitbucket-pipeline.yml file or create your own custom Docker image and use that instead.

Kind regards,
Theodora

artgana September 3, 2021

thanks Theodora for explanation, changing image to 

image: bitnami/git

 helped me!

Like Theodora Boudale likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events