How to deal with Jessie's repos being moved to debian's archive

Greetings,

First off, thanks for an excellent service.

I have a react-app that I deploy to AWS through CircleCI.

in my .circleci - config.yml I have the following line (in order to install awscli on the server CircleCI spins up for me) :

sudo apt-get update && sudo apt-get install -y python-dev

which recently resulted in the following error message:

Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]

Ign http://deb.debian.org jessie InRelease

Get:2 http://security.debian.org jessie/updates/main amd64 Packages [825 kB]

Ign http://deb.debian.org jessie-updates InRelease

Hit http://deb.debian.org jessie Release.gpg

Ign http://deb.debian.org jessie-updates Release.gpg

Hit http://deb.debian.org jessie Release

Ign http://deb.debian.org jessie-updates Release

Get:3 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 9968 kB in 1s (7250 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.
Exited with code 100

it is sudo apt-get update that causes it. From https://superuser.com/questions/1420231/how-to-solve-404-error-in-aws-apg-get-for-debian-jessie-fetch/1420467#1420467
I gather that I need to edit /etc/apt/sources.list.

So in total, my understanding is (please correct me if i’m wrong!), in my job I need to have a script that replaces some content in /etc/apt/sources.list.
The script needs to run every time the error-causing line is run, since the server CircleCI spins up is temporary.

My questions are:

  1. Is it correct that I need to run that script every time?

  2. How do I go about writing that script? SSH into the CircleCI-server and experiment? does not seem that robust since /etc/apt/sources.list can change from CircleCI-server to CircleCI-server…

  3. I feel like this is a problem many would have – do anyone know how others have solved it?

Thanks in advance!

This has come up recently - search for “Jessie” here and sort by “New”. Some of those posts will be mine :slightly_smiling_face:

Of course, the best solution is to move off Jessie - it has been archived and should be replaced by newer repos where possible.

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.