Debian 10 buster entered ELTS phase, then the URLs defined in DEBIAN_MIRROR and DEBIAN_SECURITY_UPDATE_MIRROR variables used in recipes-debian/sources/*.inc files will eventually become inaccessible because it is expected that buster directory will be removed by Debian side at some point.
Basis for this issue
For example, for the previous version of "stretch",
http://ftp.debian.org/debian/dists/stretch is not exist,
http://archive.debian.org/debian/dists/stretch is exist.
Similarly, expect "buster" will be moved to the archive at some point.
Modify mirrors.bbclass
Add http://archive.debian.org/debian/pool to MIRRORS as a mirror of DEBIAN_MIRROR.
Add http://archive.debian.org/debian-security/pool/updates to MIRRORS as a mirror of DEBIAN_SECURITY_UPDATE_MIRROR.
However, buster of http://archive.debian.org/debian-security/dists/buster/updates/Release does not exist yet.
(On the way, might as well delete any old and unnecessary mirrors)
And, maybe might try add new snapshot.
In "conf/distro/deby.inc" or "conf/local.conf.sample", change URL for DEBIAN_MIRROR and DEBIAN_SECURITY_UPDATE_MIRROR.
The candidate after the change is “archive.debian.org” or “snapshot.debian.org”.
Problem to be resolved
Debian 10 buster entered ELTS phase, then the URLs defined in
DEBIAN_MIRROR
andDEBIAN_SECURITY_UPDATE_MIRROR
variables used inrecipes-debian/sources/*.inc
files will eventually become inaccessible because it is expected thatbuster
directory will be removed by Debian side at some point.Basis for this issue
For example, for the previous version of "stretch",
http://ftp.debian.org/debian/dists/stretch
is not exist,http://archive.debian.org/debian/dists/stretch
is exist.Similarly, expect "buster" will be moved to the archive at some point.
Current definition
DEBIAN_MIRROR
DEBIAN_SECURITY_UPDATE_MIRROR
Solution (idea)
There are four ideas. Which idea is best for the meta-debian?
1. Add to MIRRORS
Add alternative URL to MIRRORS.
1-1. Define in mirrors.bbclass
DEBIAN_MIRROR Leave
DEBIAN_MIRROR
variable defined by Poky unchanged. Add alternative URL for DEBIAN_MIRROR to MIRRORS.DEBIAN_SECURITY_UPDATE_MIRROR Add alternative URL for DEBIAN_SECURITY_UPDATE_MIRROR to MIRRORS.
Step:
Preparing mirrors.bbclass The handling for adding to MIRRORS is in Poky, so copy it and prepare it for meta-debian.
Modify mirrors.bbclass Add
http://archive.debian.org/debian/pool
to MIRRORS as a mirror of DEBIAN_MIRROR. Addhttp://archive.debian.org/debian-security/pool/updates
to MIRRORS as a mirror of DEBIAN_SECURITY_UPDATE_MIRROR. However,buster
ofhttp://archive.debian.org/debian-security/dists/buster/updates/Release
does not exist yet.(On the way, might as well delete any old and unnecessary mirrors) And, maybe might try add new snapshot.
1-2. Define elsewhere
Might can also add MIRRORS definition in "conf/distro/deby.inc" or "conf/local.conf.sample".
Change URL of variable
In "conf/distro/deby.inc" or "conf/local.conf.sample", change URL for
DEBIAN_MIRROR
andDEBIAN_SECURITY_UPDATE_MIRROR
. The candidate after the change is “archive.debian.org” or “snapshot.debian.org”.2-1. Define in "conf/distro/deby.inc"
DEBIAN_MIRROR overrides the Poky define.
2-2. Define in "conf/local.conf.sample"
This is the same as adding to "conf/local.conf".