docker-library / php

Docker Official Image packaging for PHP
https://php.net
MIT License
3.77k stars 2k forks source link

debian 12 did not find /etc/apt/sources.list #1439

Closed season886 closed 10 months ago

season886 commented 10 months ago
RUN sed -i 's/deb.debian.org/mirrors.cloud.tencent.com/g' /etc/apt/sources.list; \
sed -i 's|security.debian.org/debian-security|mirrors.cloud.tencent.com/debian-security|g' /etc/apt/sources.list; \

Why debian 12 did not find /etc/apt/sources.list, I want to change the source. debian 11 works fine

yosifkit commented 10 months ago

Debian Bookworm images moved to use an RCF2822 formatted file and it is in /etc/apt/sources.list.d/debian.sources now:

$ docker run -it --rm debian:bookworm
root@2ee186debb5f:/# cat /etc/apt/sources.list.d/debian.sources
Types: deb
# http://snapshot.debian.org/archive/debian/20230814T000000Z
URIs: http://deb.debian.org/debian
Suites: bookworm bookworm-updates
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Types: deb
# http://snapshot.debian.org/archive/debian-security/20230814T000000Z
URIs: http://deb.debian.org/debian-security
Suites: bookworm-security
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
root@2ee186debb5f:/#