Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php-fpm:latest-8.3 /etc/apt/sources.list: No such file or directory #3491

Open
liujinhong opened this issue Dec 28, 2023 · 5 comments
Open
Labels
GFW Global Firewall Type: Bug

Comments

@liujinhong
Copy link

=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 51.58kB 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/laradock/php-fpm:latest-8.3 0.0s
=> CACHED [ 1/82] FROM docker.io/laradock/php-fpm:latest-8.3 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 132B 0.0s
=> ERROR [ 2/82] RUN if [ true = true ]; then sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list && sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt 0.5s

[ 2/82] RUN if [ true = true ]; then sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list && sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list && sed -i 's/security-cdn.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list ;fi:
#0 0.452 sed: can't read /etc/apt/sources.list: No such file or directory

@liujinhong
Copy link
Author

docker.io/laradock/php-fpm:latest-8.1 docker.io/laradock/php-fpm:latest-8.2 docker.io/laradock/php-fpm:latest-8.3 is the same question

@parallels999
Copy link

CACHED [ 1/82] FROM docker.io/laradock/php-fpm:latest-8.3

Did you try with no cache?

@liujinhong
Copy link
Author

CACHED [ 1/82] FROM docker.io/laradock/php-fpm:latest-8.3

Did you try with no cache?

yes

@angeljqv
Copy link

angeljqv commented Jan 8, 2024

Hi, Feel free to make a PR fixing it

@bestlong bestlong added the GFW Global Firewall label Apr 19, 2024
@zzhijian
Copy link

This is how I solved it:

Change application source from deb.debian.org to aliyun source

sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list.d/debian.sources && \
sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list.d/debian.sources && \
sed -i 's/security-cdn.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list.d/debian.sources \

Change: mirrors.tuna.tsinghua.edu.cn /etc/apt/sources.list.d/debian.sources

still have a question: ERROR [php-fpm 3/82] RUN set -xe; apt-get update -yqq && pecl channel-update pecl.php.net

always run apt update when start and after add new source list, then clean up at end.

RUN set -xe;
find /etc/apt/sources.list.d/ -type f -name "ondrej-ubuntu-php-xenial.list" -exec sed -i.bak -r 's#deb(-src)?\s*http(s)?://ppa.launchpad.net#deb\1 https\2://launchpad.proxy.ustclug.org#ig' {} ; &&
apt-get update -yqq &&
pecl channel-update pecl.php.net && \

Change add:
find /etc/apt/sources.list.d/ -type f -name "ondrej-ubuntu-php-xenial.list" -exec sed -i.bak -r 's#deb(-src)?\s*http(s)?://ppa.launchpad.net#deb\1 https\2://launchpad.proxy.ustclug.org#ig' {} ; && \

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GFW Global Firewall Type: Bug
Projects
None yet
Development

No branches or pull requests

5 participants