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

Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease #2047

Closed
riddman opened this issue Mar 16, 2019 · 12 comments
Closed

Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease #2047

riddman opened this issue Mar 16, 2019 · 12 comments

Comments

@riddman
Copy link

riddman commented Mar 16, 2019

Info:

  • Docker version: 18.09.3-ce
  • Laradock commit: 254a9ae
  • System info: Linux
  • System info disto/version: Manjaro 18.0.4

Issue:

I have got error when i try up laradock
I execute in terminal docker-compose up -d nginx mysql phpmyadmin

The error is:
+ apt-get update -yqq
E: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Some index files failed to download. They have been ignored, or old ones used instead.
ERROR: Service 'php-fpm' failed to build: The command '/bin/sh -c set -xe; apt-get update -yqq && pecl channel-update pecl.php.net && apt-get install -yqq apt-utils libzip-dev zip unzip && docker-php-ext-configure zip --with-libzip && docker-php-ext-install zip && php -m | grep -q 'zip'' returned a non-zero code: 100

@bestlong
Copy link
Member

try docker run -it --rm busybox ping www.google.com check network is working.

@tarik02
Copy link

tarik02 commented Mar 23, 2019

Same problem. Network works normally.

@tarik02
Copy link

tarik02 commented Mar 23, 2019

This is some problem with your network. Seems like your IP is blocked in that repo.

@tarik02
Copy link

tarik02 commented Mar 23, 2019

P.S. Я так розумію, у вас Київстар? Бо у мене така проблема спостерігається саме на інтернеті від Київстару.

@riddman
Copy link
Author

riddman commented Mar 23, 2019

Так, інтернет від Київстар.

@tarik02
Copy link

tarik02 commented Mar 23, 2019

@riddman, ну тоді зрозуміло. Як тільки спробував запустити те ж саме на сервері, то все стало нормально працювати. Виходи - змінювати провайдер або використовувати проксі/VPN. Взагалі, скажу з досвіду, IP адреси Київстару заблоковані на багатьох ресурсах (наприклад, з інтернету від Київстар неможливо зареєструватися на Вікіпедії).

@riddman
Copy link
Author

riddman commented Apr 1, 2019

Confirmed my internet provider is blocked in repository. Thanks all for responses.

@riddman riddman closed this as completed Apr 1, 2019
@ajiahub
Copy link

ajiahub commented Apr 8, 2019

when i try to change my php version from 7.2 to 7.1,and i build like this:
docker-compose build php-fpm
and it make wrong like this:
image

OS:CentOS Linux release 7.6.1810 (Core)
i have no idea,can you help,thanks.

@vdecree
Copy link

vdecree commented May 10, 2019

Confirmed my internet provider is blocked in repository. Thanks all for responses.

Is there a solution to this?

@tarik02
Copy link

tarik02 commented May 10, 2019

@vdecree Yes, there's several ways:

  1. Change internet provider.
  2. Use VPN.
  3. Something other..

@drtobbyas
Copy link

using VPN worked for me

@riddman
Copy link
Author

riddman commented Jun 17, 2020

Also, as a solution for me worked configure DNS for docker.
On the host (I'm using Manjaro), find out the primary and secondary DNS server addresses:

$ nmcli dev show | grep 'IP4.DNS'
IP4.DNS[1]:              192.168.0.1

Using these addresses, create a file /etc/docker/daemon.json:

$ cd /etc/docker
$ sudo touch daemon.json

Put this in /etc/docker/daemon.json:

{                                                                          
    "dns": ["192.168.0.1"]                                                                           
}   

And after restart docker

Solution was taken from stackoverflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants