Docker - apt-get connection refused on Debian but works on Ubuntu - docker

I'm a docker newbie so bear with me --
I'm trying to install packages on docker images. I can't get anywhere on a Debian based image.
C:\me\docker-images> docker run --rm -it debian:stretch
root#74414ba0234b:/# apt-get update
Err:1 http://security.debian.org/debian-security stretch/updates InRelease
Could not connect to security.debian.org:80 (149.20.4.14). - connect (111: Connection refused) [IP: 149.20.4.14 80]
Err:2 http://deb.debian.org/debian stretch InRelease
Could not connect to deb.debian.org:80 (149.20.4.15). - connect (111: Connection refused) [IP: 149.20.4.15 80]
Err:3 http://deb.debian.org/debian stretch-updates InRelease
Unable to connect to deb.debian.org:http: [IP: 149.20.4.15 80]
Reading package lists... Done
W: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease Could not connect to deb.debian.org:80 (149.20.4.15). - connect (111: Connection refused) [IP: 149.20.4.15 80]
W: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/InRelease Unable to connect to deb.debian.org:http: [IP: 149.20.4.15 80]
W: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/InRelease Could not connect to security.debian.org:80 (149.20.4.14). - connect (111: Connection refused) [IP: 149.20.4.14 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
I can't even ping anything:
root#71136f0cb68d:/# ping google.ca
PING google.ca (172.217.12.227) 56(84) bytes of data.
And it freezes here.
But it works on ubuntu:
PS C:\me\docker-images> docker run --rm -it ubuntu
root#9d4717cf5a18:/# apt-get update
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [80.4 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [626 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [439 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3759 B]
Get:11 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [255 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1002 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [808 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [18.8 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [5157 B]
Get:21 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8075 B]
Fetched 25.2 MB in 9s (2642 kB/s)
Reading package lists... Done
Of course they are hitting different URLs, but I suspect that the debian server is online since I can reach it via web.
Why would my connection be limited on Debian but not on Ubuntu image?

I pulled the same image and tried, the ping and apt-get update worked fine.
Please restart the docker service and try again.
sudo service docker restart
Reference:
https://odino.org/cannot-connect-to-the-internet-from-your-docker-containers/

If you are using Docker Machine, you may want to try running:
docker-machine restart

Related

Docker build on tensorflow version 2.4.3 gives out public key errors

i am trying to build a docker from the tensorflow dockerhub, using tensorflow version 2.4.3, i did a simple pull and docker file:
$ docker pull tensorflow/tensorflow:2.4.2-gpu
And here is the dockerfile:
FROM tensorflow/tensorflow:2.4.3-gpu
ADD . /path
WORKDIR /path
RUN apt-get -y update
RUN apt-get -y install sudo
However i get errors on the apt-get update line:
$ docker build -t tensorflow_gpu_build .
...
Step 4/10 : RUN apt-get -y update
---> Running in 7c67f26124cb
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease [1581 B]
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1573 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [83.3 kB]
Err:2 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease
The following signatures couldn''t be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
Get:7 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [3145 kB]
Get:8 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [1371 kB]
Ign:9 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 InRelease
Hit:10 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64 Release
Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [1412 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [22.9 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2351 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [3568 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [30.8 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [64.0 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [20.5 kB]
Reading package lists...
W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease: The following signatures couldn''t be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 InRelease' is no longer signed.
I am unsure of where the problem is coming from, the same dockerfile worked fine on the latest tensorfow docker version, could it be normal behaviour because the tensorflow version is a little old?
It's possible that the key included in the image has been revoked by Nvidia in the meantime.
So, you have three possibilities:
You can check for a valid pub key for that repository, copy it to the image via Dockerfile and add it with this command:
apt-key add /path/to/key
You can add an "[ allow-insecure=yes ]" to the respective line in the /etc/apt/sources.list as elaborated here: https://unix.stackexchange.com/questions/198000/bypass-gpg-signature-checks-only-for-a-single-repository
You could try a newer image.

apt-get update failing when building a docker image with ubuntu

I am trying to build a docker image using ubuntu:latest on a Mac. I am using a shell file to collect the set up steps but the building stops when the container runs apt-get update.
The error is:
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Err:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Connection failed [IP: 185.125.190.39 80]
My Dockerfile is:
FROM ubuntu
RUN chmod +x set_up.sh
RUN ./set_up.sh
while set_up.sh is
#!/bin/sh
#1. Update package manager
apt-get update
For context, I get the same error if I use
docker run --rm -it ubuntu:latest /bin/bash
root#fca959160783:/# apt-get update
0% [Waiting for headers] [Waiting for headers]
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Err:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
Connection failed [IP: 185.125.190.39 80]
Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Connection failed [IP: 185.125.190.39 80]
Err:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Connection failed [IP: 185.125.190.39 80]
Err:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Connection failed [IP: 91.189.91.38 80]
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease Connection failed [IP: 185.125.190.39 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease Connection failed [IP: 185.125.190.39 80]
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease Connection failed [IP: 91.189.91.38 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease Connection failed [IP: 185.125.190.39 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
with the command hanging at 0% [Waiting for headers] [Waiting for headers] for a long time before producing the rest of the outcome.
I am new to docker but I've been running the same code yesterday on a different WiFi connection and I didn't experience any issue. I have tried adding the options --network=host to the build command or my current DNS IP address in the docker run version of the example but I get the same issues and I am not sure what to do now. I'd appreciate any suggestions you might have on this issue.
Thanks a lot for your help!
It could be architecture mismatch.
Check docker architecture with: docker info | grep Architecture
Check image architecture with: docker inspect ubuntu
In the case of mismatch you should reinstall docker.

CVAT installation issue

I'm trying to install CVAT and I'm following this installation guide:
https://github.com/opencv/cvat/blob/develop/cvat/apps/documentation/installation.md#windows-10
I installed Docker and Git as mentioned in the guide.
Cloned the CVAT source code from GitHub repository.
After this, I tried building docker images as mentioned in the guide.
$ cd cvat
$ docker-compose build
The complete Output:
cvat_db uses an image, skipping
cvat_redis uses an image, skipping
Building cvat
Step 1/49 : FROM ubuntu:16.04
---> 657d80a6401d
Step 2/49 : ARG http_proxy
---> Using cache
---> ea9c09815fdf
Step 3/49 : ARG https_proxy
---> Using cache
---> f89f44a5f8df
Step 4/49 : ARG no_proxy
---> Using cache
---> 1b880afdbe43
Step 5/49 : ARG socks_proxy
---> Using cache
---> 363c0a550b77
Step 6/49 : ARG TZ
---> Using cache
---> bef9ff0b2b9d
Step 7/49 : ENV TERM=xterm http_proxy=${http_proxy} https_proxy=${https_proxy} no_proxy=${no_proxy} socks_proxy=${socks_proxy} LANG='C.UTF-8' LC_ALL='C.UTF-8' TZ=${TZ}
---> Using cache
---> 688cc1462f94
Step 8/49 : ARG USER
---> Using cache
---> 33042ece9638
Step 9/49 : ARG DJANGO_CONFIGURATION
---> Using cache
---> 176f7ed3f807
Step 10/49 : ENV DJANGO_CONFIGURATION=${DJANGO_CONFIGURATION}
---> Using cache
---> 6f6922b72aea
Step 11/49 : RUN apt-get update && apt-transport-https apt-get install -yq python-software-properties software-properties-common wget && add-apt-repository ppa:mc3man/xerus-media -y && add-apt-repository ppa:mc3man/gstffmpeg-keep -y && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apache2 apache2-dev libapache2-mod-xsendfile supervisor ffmpeg gstreamer0.10-ffmpeg libldap2-dev libsasl2-dev python3-dev python3-pip tzdata unzip unrar p7zip-full vim && pip3 install -U setuptools && ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime && dpkg-reconfigure -f noninteractive tzdata && add-apt-repository --remove ppa:mc3man/gstffmpeg-keep -y && add-apt-repository --remove ppa:mc3man/xerus-media -y && rm -rf /var/lib/apt/lists/*
---> Running in f84af309de6a
Ign:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Ign:3 http://security.ubuntu.com/ubuntu xenial-security Release
Ign:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Ign:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
Ign:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Ign:7 http://archive.ubuntu.com/ubuntu xenial Release
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main all Packages
Ign:9 http://archive.ubuntu.com/ubuntu xenial-updates Release
Ign:10 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
Ign:11 http://archive.ubuntu.com/ubuntu xenial-backports Release
Ign:12 http://security.ubuntu.com/ubuntu xenial-security/restricted all Packages
Ign:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Ign:14 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Ign:15 http://archive.ubuntu.com/ubuntu xenial/main all Packages
Ign:16 http://security.ubuntu.com/ubuntu xenial-security/universe all Packages
Ign:17 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
Ign:19 http://archive.ubuntu.com/ubuntu xenial/restricted all Packages
Ign:20 http://security.ubuntu.com/ubuntu xenial-security/multiverse all Packages
Ign:21 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main all Packages
Ign:10 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
Ign:12 http://security.ubuntu.com/ubuntu xenial-security/restricted all Packages
Ign:22 http://archive.ubuntu.com/ubuntu xenial/universe all Packages
Ign:14 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Ign:23 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Ign:24 http://archive.ubuntu.com/ubuntu xenial/multiverse all Packages
Ign:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Ign:26 http://archive.ubuntu.com/ubuntu xenial-updates/main all Packages
Ign:27 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
Ign:16 http://security.ubuntu.com/ubuntu xenial-security/universe all Packages
Ign:28 http://archive.ubuntu.com/ubuntu xenial-updates/restricted all Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
Ign:29 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:20 http://security.ubuntu.com/ubuntu xenial-security/multiverse all Packages
Ign:30 http://archive.ubuntu.com/ubuntu xenial-updates/universe all Packages
Ign:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
Ign:31 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main all Packages
Ign:32 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse all Packages
Ign:33 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
Ign:10 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
Ign:34 http://archive.ubuntu.com/ubuntu xenial-backports/main all Packages
Ign:12 http://security.ubuntu.com/ubuntu xenial-security/restricted all Packages
Ign:35 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages
Ign:14 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Ign:36 http://archive.ubuntu.com/ubuntu xenial-backports/restricted all Packages
Ign:16 http://security.ubuntu.com/ubuntu xenial-security/universe all Packages
Ign:37 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial-backports/universe all Packages
Ign:20 http://security.ubuntu.com/ubuntu xenial-security/multiverse all Packages
Ign:39 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages
Ign:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
Ign:40 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse all Packages
Ign:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main all Packages
Ign:10 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
Ign:15 http://archive.ubuntu.com/ubuntu xenial/main all Packages
Ign:12 http://security.ubuntu.com/ubuntu xenial-security/restricted all Packages
Ign:17 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Ign:14 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Ign:19 http://archive.ubuntu.com/ubuntu xenial/restricted all Packages
Ign:16 http://security.ubuntu.com/ubuntu xenial-security/universe all Packages
Ign:21 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
Ign:22 http://archive.ubuntu.com/ubuntu xenial/universe all Packages
Ign:20 http://security.ubuntu.com/ubuntu xenial-security/multiverse all Packages
Ign:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
Ign:23 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main all Packages
Ign:24 http://archive.ubuntu.com/ubuntu xenial/multiverse all Packages
Ign:10 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
Ign:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Ign:12 http://security.ubuntu.com/ubuntu xenial-security/restricted all Packages
Ign:26 http://archive.ubuntu.com/ubuntu xenial-updates/main all Packages
Ign:14 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Ign:27 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
Ign:28 http://archive.ubuntu.com/ubuntu xenial-updates/restricted all Packages
Ign:16 http://security.ubuntu.com/ubuntu xenial-security/universe all Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
Ign:29 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu xenial-updates/universe all Packages
Ign:20 http://security.ubuntu.com/ubuntu xenial-security/multiverse all Packages
Ign:31 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Err:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
500 Internal Server Error [IP: 159.69.208.88 11371]
Ign:32 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse all Packages
Ign:8 http://security.ubuntu.com/ubuntu xenial-security/main all Packages
Ign:33 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
Ign:10 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages
Ign:34 http://archive.ubuntu.com/ubuntu xenial-backports/main all Packages
Ign:12 http://security.ubuntu.com/ubuntu xenial-security/restricted all Packages
Ign:35 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages
Ign:14 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages
Ign:36 http://archive.ubuntu.com/ubuntu xenial-backports/restricted all Packages
Ign:16 http://security.ubuntu.com/ubuntu xenial-security/universe all Packages
Ign:37 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Ign:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial-backports/universe all Packages
Ign:20 http://security.ubuntu.com/ubuntu xenial-security/multiverse all Packages
Ign:39 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages
Ign:40 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse all Packages
Ign:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Ign:15 http://archive.ubuntu.com/ubuntu xenial/main all Packages
Ign:17 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Ign:19 http://archive.ubuntu.com/ubuntu xenial/restricted all Packages
Ign:21 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:22 http://archive.ubuntu.com/ubuntu xenial/universe all Packages
Ign:23 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Ign:24 http://archive.ubuntu.com/ubuntu xenial/multiverse all Packages
Ign:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Ign:26 http://archive.ubuntu.com/ubuntu xenial-updates/main all Packages
Ign:27 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
Ign:28 http://archive.ubuntu.com/ubuntu xenial-updates/restricted all Packages
Ign:29 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu xenial-updates/universe all Packages
Ign:31 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse all Packages
Ign:33 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
Ign:34 http://archive.ubuntu.com/ubuntu xenial-backports/main all Packages
Ign:35 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages
Ign:36 http://archive.ubuntu.com/ubuntu xenial-backports/restricted all Packages
Ign:37 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial-backports/universe all Packages
Ign:39 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages
Ign:40 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse all Packages
Ign:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Ign:15 http://archive.ubuntu.com/ubuntu xenial/main all Packages
Ign:17 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Ign:19 http://archive.ubuntu.com/ubuntu xenial/restricted all Packages
Ign:21 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:22 http://archive.ubuntu.com/ubuntu xenial/universe all Packages
Ign:23 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Ign:24 http://archive.ubuntu.com/ubuntu xenial/multiverse all Packages
Ign:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Ign:26 http://archive.ubuntu.com/ubuntu xenial-updates/main all Packages
Ign:27 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
Ign:28 http://archive.ubuntu.com/ubuntu xenial-updates/restricted all Packages
Ign:29 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu xenial-updates/universe all Packages
Ign:31 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse all Packages
Ign:33 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
Ign:34 http://archive.ubuntu.com/ubuntu xenial-backports/main all Packages
Ign:35 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages
Ign:36 http://archive.ubuntu.com/ubuntu xenial-backports/restricted all Packages
Ign:37 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial-backports/universe all Packages
Ign:39 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages
Ign:40 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse all Packages
Ign:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
Ign:15 http://archive.ubuntu.com/ubuntu xenial/main all Packages
Ign:17 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Ign:19 http://archive.ubuntu.com/ubuntu xenial/restricted all Packages
Ign:21 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:22 http://archive.ubuntu.com/ubuntu xenial/universe all Packages
Ign:23 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Ign:24 http://archive.ubuntu.com/ubuntu xenial/multiverse all Packages
Ign:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Ign:26 http://archive.ubuntu.com/ubuntu xenial-updates/main all Packages
Ign:27 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
Ign:28 http://archive.ubuntu.com/ubuntu xenial-updates/restricted all Packages
Ign:29 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu xenial-updates/universe all Packages
Ign:31 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse all Packages
Ign:33 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
Ign:34 http://archive.ubuntu.com/ubuntu xenial-backports/main all Packages
Ign:35 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages
Ign:36 http://archive.ubuntu.com/ubuntu xenial-backports/restricted all Packages
Ign:37 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial-backports/universe all Packages
Ign:39 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages
Ign:40 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse all Packages
Err:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages
500 Internal Server Error [IP: 159.69.208.88 11371]
Ign:15 http://archive.ubuntu.com/ubuntu xenial/main all Packages
Ign:17 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages
Ign:19 http://archive.ubuntu.com/ubuntu xenial/restricted all Packages
Ign:21 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
Ign:22 http://archive.ubuntu.com/ubuntu xenial/universe all Packages
Ign:23 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
Ign:24 http://archive.ubuntu.com/ubuntu xenial/multiverse all Packages
Err:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
500 Internal Server Error [IP: 159.69.208.88 11371]
Ign:26 http://archive.ubuntu.com/ubuntu xenial-updates/main all Packages
Ign:27 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
Ign:28 http://archive.ubuntu.com/ubuntu xenial-updates/restricted all Packages
Ign:29 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
Ign:30 http://archive.ubuntu.com/ubuntu xenial-updates/universe all Packages
Ign:31 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
Ign:32 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse all Packages
Err:33 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
500 Internal Server Error [IP: 159.69.208.88 11371]
Ign:34 http://archive.ubuntu.com/ubuntu xenial-backports/main all Packages
Ign:35 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages
Ign:36 http://archive.ubuntu.com/ubuntu xenial-backports/restricted all Packages
Ign:37 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial-backports/universe all Packages
Ign:39 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages
Ign:40 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse all Packages
Reading package lists...
W: The repository 'http://security.ubuntu.com/ubuntu xenial-security 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/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Service 'cvat' failed to build: The command '/bin/sh -c apt-get update && apt-transport-https apt-get install -yq python-software-properties software-properties-common wget && add-apt-repository ppa:mc3man/xerus-media -y && add-apt-repository ppa:mc3man/gstffmpeg-keep -y && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apache2 apache2-dev libapache2-mod-xsendfile supervisor ffmpeg gstreamer0.10-ffmpeg libldap2-dev libsasl2-dev python3-dev python3-pip tzdata unzip unrar p7zip-full vim && pip3 install -U setuptools && ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime && dpkg-reconfigure -f noninteractive tzdata && add-apt-repository --remove ppa:mc3man/gstffmpeg-keep -y && add-apt-repository --remove ppa:mc3man/xerus-media -y && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
Errors:
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/Packages 500 Internal Server Error [IP: 159.69.208.88 11371]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Service 'cvat' failed to build: The command '/bin/sh -c apt-get update && apt-transport-https apt-get install -yq python-software-properties software-properties-common wget && add-apt-repository ppa:mc3man/xerus-media -y && add-apt-repository ppa:mc3man/gstffmpeg-keep -y && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apache2 apache2-dev libapache2-mod-xsendfile supervisor ffmpeg gstreamer0.10-ffmpeg libldap2-dev libsasl2-dev python3-dev python3-pip tzdata unzip unrar p7zip-full vim && pip3 install -U setuptools && ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime && dpkg-reconfigure -f noninteractive tzdata && add-apt-repository --remove ppa:mc3man/gstffmpeg-keep -y && add-apt-repository --remove ppa:mc3man/xerus-media -y && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
Your script failed at this line of Dockerfile
# Install necessary apt packages
RUN apt-get update && \
.....
Something are blocking Docker from connection.
So i guess you're using proxy and you don't provide proxy information to Docker. So it couldn't connect with internet.
Please see docker proxy

"apt-get install" stuck when build an image from a Dockerfile

I'm tring to build an image from a Dockerfile, and get stuck when "RUN apt-get install ...", i want to know the reason. May be due to GFW, I don't know.
Another thing confused me is that the output log printed when run in build is different from the log printed when run in a container(i.e. run in "docker container run -it image_name /bin/bash").
Please help me.
I have tried some keywords like "apt-get install stuck", but i didn't find a similar question.
The Dockerfile:
FROM nvidia/cuda:9.0-devel-ubuntu16.04
MAINTAINER avanetten
ENV CUDNN_VERSION 7.3.0.29
LABEL com.nvidia.cudnn.version="${CUDNN_VERSION}"
RUN apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
libcudnn7=$CUDNN_VERSION-1+cuda9.0 \
libcudnn7-dev=$CUDNN_VERSION-1+cuda9.0 && \
apt-mark hold libcudnn7 && \
rm -rf /var/lib/apt/lists/*
I run this:
sudo docker build --no-cache -t testimage .
and i stuck here
Sending build context to Docker daemon 2.043GB
Step 1/37 : FROM nvidia/cuda:9.0-devel-ubuntu16.04
---> 2a64416134d8
Step 2/37 : MAINTAINER avanetten
---> Running in 0a0f4e3bb485
Removing intermediate container 0a0f4e3bb485
---> 23c2cb4ab1ff
Step 3/37 : ENV CUDNN_VERSION 7.3.0.29
---> Running in 41b6be7dc176
Removing intermediate container 41b6be7dc176
---> 65f16199d658
Step 4/37 : LABEL com.nvidia.cudnn.version="${CUDNN_VERSION}"
---> Running in 0f5e7aece401
Removing intermediate container 0f5e7aece401
---> c41f04004970
Step 5/37 : RUN apt-get update && apt-get install -y --no-install-recommends apt-utils libcudnn7=$CUDNN_VERSION-1+cuda9.0 libcudnn7-dev=$CUDNN_VERSION-1+cuda9.0 && apt-mark hold libcudnn7 && rm -rf /var/lib/apt/lists/*
---> Running in 3a67681d2578
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Ign:3 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 InRelease
Ign:4 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 InRelease
Get:5 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Release [170 B]
Get:6 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Release [170 B]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [940 kB]
Get:8 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Release.gpg [170 B]
Get:9 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:10 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Release.gpg [170 B]
Get:11 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Packages [231 kB]
Get:12 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Packages [54.1 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:14 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [582 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6114 B]
Get:19 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1322 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [986 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [19.1 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7942 B]
Get:26 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8807 B]
Fetched 16.3 MB in 28s (570 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libapt-inst2.0
The following NEW packages will be installed:
apt-utils libapt-inst2.0 libcudnn7 libcudnn7-dev
0 upgraded, 4 newly installed, 0 to remove and 13 not upgraded.
Need to get 242 MB of archives.
After this operation, 598 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapt-inst2.0 amd64 1.2.32 [55.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apt-utils amd64 1.2.32 [196 kB]
Get:3 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 libcudnn7 7.3.0.29-1+cuda9.0 [126 MB]
^C
I can not see progress or rate from the log, then I delete the RUN part and finished image build and tried
docker container run --rm -it testimage /bin/bash
, and when the container is running, I run this:
apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
libcudnn7=$CUDNN_VERSION-1+cuda9.0 \
libcudnn7-dev=$CUDNN_VERSION-1+cuda9.0 && \
apt-mark hold libcudnn7 && \
rm -rf /var/lib/apt/lists/*
, it works,the log is
root#74ce912f6318:/# apt-get update && apt-get install -y --no-install-recommends \
> apt-utils \
> libcudnn7=$CUDNN_VERSION-1+cuda9.0 \
> libcudnn7-dev=$CUDNN_VERSION-1+cuda9.0 && \
> apt-mark hold libcudnn7 && \
> rm -rf /var/lib/apt/lists/*
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Ign:4 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 InRelease
Ign:5 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 InRelease
Get:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:7 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Release [170 B]
Get:8 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:9 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Release [170 B]
Get:10 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Release.gpg [170 B]
Get:11 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Release.gpg [170 B]
Get:12 https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Packages [231 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:14 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Packages [54.1 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1322 kB]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [940 kB]
Get:19 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:20 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [582 kB]
Get:21 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6114 B]
Ign:22 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [986 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [19.1 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7942 B]
Get:26 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8807 B]
Get:22 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Fetched 16.3 MB in 39s (409 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libapt-inst2.0
The following NEW packages will be installed:
apt-utils libapt-inst2.0 libcudnn7 libcudnn7-dev
0 upgraded, 4 newly installed, 0 to remove and 13 not upgraded.
Need to get 242 MB of archives.
After this operation, 598 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapt-inst2.0 amd64 1.2.32 [55.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 apt-utils amd64 1.2.32 [196 kB]
Get:3 https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 libcudnn7 7.3.0.29-1+cuda9.0 [126 MB]
31% [3 libcudnn7 63.8 MB/170 B 37523776%] 8995 kB/s 19s^C
This time, I can see the progress(i.e. 31%), I stop it myself with ctrl-c.
I have two expectations, first is to make the Dockerfile work, second is to see the progress. Thanks.

Docker debian image containner apt update ocurs some problem

Docker Hub pull debian:stable image, but using apt update command ocurs some problems
Docker Hub debian:stable image
sources.list
deb [trusted=yes] http://deb.debian.org/debian stable main
deb [trusted=yes] http://deb.debian.org/debian stable-updates main
Error Message:
-----------------------------------------------------------
Ign:1 http://deb.debian.org/debian stable InRelease
Ign:2 http://deb.debian.org/debian stable Release
Ign:3 http://deb.debian.org/debian stable/main all Packages
Ign:4 http://deb.debian.org/debian stable/main amd64 Packages
Ign:3 http://deb.debian.org/debian stable/main all Packages
Ign:4 http://deb.debian.org/debian stable/main amd64 Packages
Ign:3 http://deb.debian.org/debian stable/main all Packages
Ign:4 http://deb.debian.org/debian stable/main amd64 Packages
Ign:3 http://deb.debian.org/debian stable/main all Packages
Ign:4 http://deb.debian.org/debian stable/main amd64 Packages
Ign:3 http://deb.debian.org/debian stable/main all Packages
Ign:4 http://deb.debian.org/debian stable/main amd64 Packages
Ign:3 http://deb.debian.org/debian stable/main all Packages
Ign:4 http://deb.debian.org/debian stable/main amd64 Packages
Ign:3 http://deb.debian.org/debian stable/main all Packages
Err:4 http://deb.debian.org/debian stable/main amd64 Packages
SECURITY: URL redirect target contains control characters, rejecting. [IP: 5.153.231.4 80]
Reading package lists... Done
E: Failed to fetch http://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages SECURITY: URL redirect target contains control characters, rejecting. [IP: 5.153.231.4 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

Resources