laradock / workspace

Laradock Base Image.
http://laradock.io/
MIT License
112 stars 87 forks source link

how can modify apt-source file in docker image? #28

Closed toohamster closed 4 years ago

toohamster commented 5 years ago

use php7.0 and exec command: docker-compose up -d nginx report a error:

+ apt-get update -yqq
W: The repository 'http://security.ubuntu.com/ubuntu xenial-security Release' does not have a Release file.
W: The repository 'http://ppa.launchpad.net/ondrej/php/ubuntu xenial Release' does not have a Release file.
W: The repository 'http://archive.ubuntu.com/ubuntu xenial Release' does not have a Release file.
W: The repository 'http://archive.ubuntu.com/ubuntu xenial-updates Release' does not have a Release file.
W: The repository 'http://archive.ubuntu.com/ubuntu xenial-backports Release' does not have a Release file.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/source/Sources  SECURITY: URL redirect target contains control characters, rejecting. [IP: 91.189.88.31 80]
E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/xenial/main/binary-amd64/Packages  SECURITY: URL redirect target contains control characters, rejecting.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/restricted/source/Sources  SECURITY: URL redirect target contains control characters, rejecting. [IP: 91.189.91.23 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/source/Sources  SECURITY: URL redirect target contains control characters, rejecting. [IP: 91.189.91.23 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/source/Sources  SECURITY: URL redirect target contains control characters, rejecting. [IP: 91.189.91.23 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR: Service 'workspace' failed to build: The command '/bin/sh -c set -xe;     apt-get update -yqq &&     pecl channel-update pecl.php.net &&     groupadd -g ${PGID} laradock &&     useradd -u ${PUID} -g laradock -m laradock -G docker_env &&     usermod -p "*" laradock -s /bin/bash &&     apt-get install -yqq       apt-utils       libzip-dev zip unzip       php${LARADOCK_PHP_VERSION}-zip       nasm &&       php -m | grep -q 'zip'' returned a non-zero code: 100
bestlong commented 4 years ago

try docker-compose build --no-cache nginx

bestlong commented 4 years ago

Mostly network problems