skip to Main Content

Today I started to get these errors messages when i run apt-get update

404  Not Found

E: The repository 'http://security.debian.org stretch/updates Release' does no longer have a Release file.

Do you know what could be the cause of it?

I have updated the source:

deb http://security.debian.org/ stretch/updates main

with

deb http://security.debian.org/ stretch/updates main contrib non-free

but I keep getting the same errors

2

Answers


  1. Chosen as BEST ANSWER

    ok after a further research, I found that debian imported stretch suite to archive.debian.org

    https://lists.debian.org/debian-devel-announce/2023/03/msg00006.html

    So I fixed it by replacing the sources.

    deb.debian.org to archive.debian.org

    security.debian.org to archive.debian.org/debian-security/

    And removing the source stretch-updates since it's not available in the archives sources: debian stretch archive

    Commands:

    I used these bash commands to make the replacement:

    replace deb.debian.org with archive.debian.org:

    sudo sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list

    replace security.debian.org with archive.debian.org/debian-security/:

    sudo sed -i 's|security.debian.org|archive.debian.org/debian-security/|g' /etc/apt/sources.list

    remove line that contains source stretch-updates:

    sudo sed -i '/stretch-updates/d' /etc/apt/sources.list


  2. Thanks Luis,

    I just tested your solution, and it worked fine.

    For docker users, here is what you have to do. :

    FROM php:5.6-fpm as base
    
    #Update stretch repositories
    RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list
    RUN sed -i 's|security.debian.org|archive.debian.org/|g' /etc/apt/sources.list
    RUN sed -i '/stretch-updates/d' /etc/apt/sources.list
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search