[Gluster-users] gluster debian build repo redirection loop on apt-get update on docker

Paul Anderson pha at umich.edu
Tue Mar 6 22:50:52 UTC 2018


When I follow the directions at
http://docs.gluster.org/en/latest/Install-Guide/Install/ to install
the latest gluster on a debian 9 docker container, I get the following
error:

Step 6/15 : RUN echo deb [arch=amd64]
https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt/
stretch main > /etc/apt/sources.list.d/gluster.list
 ---> Running in 1ef386afb192
Removing intermediate container 1ef386afb192
 ---> f3c99b2a7c7a
Step 7/15 : RUN apt-get update
 ---> Running in 3a4744736ab0
Ign:1 https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt
stretch InRelease
Ign:2 https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt
stretch Release
Ign:3 https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt
stretch/main all Packages
Ign:4 https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt
stretch/main amd64 Packages
Ign:3 https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt
stretch/main all Packages
Hit:5 http://security.debian.org stretch/updates InRelease
Ign:4 https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt
stretch/main amd64 Packages
Ign:3 https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt
stretch/main all Packages
Ign:4 https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt
stretch/main amd64 Packages
Ign:3 https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt
stretch/main all Packages
Ign:4 https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt
stretch/main amd64 Packages
Ign:3 https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt
stretch/main all Packages
Ign:4 https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt
stretch/main amd64 Packages
Ign:3 https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt
stretch/main all Packages
Ign:6 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Err:4 https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt
stretch/main amd64 Packages
  Redirection loop encountered
Hit:7 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:8 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists...
W: The repository
'https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt
stretch Release' does not have a Release file.
E: Failed to fetch
https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt/dists/stretch/main/binary-amd64/Packages
 Redirection loop encountered
E: Some index files failed to download. They have been ignored, or old
ones used instead.
The command '/bin/sh -c apt-get update' returned a non-zero code: 100


I suspect I may be missing some needed packages to get apt to work
right, except it appears to work fine for the regular debian packages.

This is my Dockerfile:

FROM php:cli
# use up to date gluster.org built packages
RUN apt-get update
RUN apt-get --assume-yes install wget gnupg gnupg1 gnupg2
RUN wget -O - http://download.gluster.org/pub/gluster/glusterfs/3.13/rsa.pub
| apt-key add -
RUN ln -s /usr/lib/apt/methods/http /usr/lib/apt/methods/https
RUN echo deb [arch=amd64]
https://download.gluster.org/pub/gluster/glusterfs/3.13/9/Debian/stretch/amd64/apt/
stretch main > /etc/apt/sources.list.d/gluster.list
RUN apt-get update
RUN apt-get --assume-yes install glusterfs-client


Thanks,

Paul


More information about the Gluster-users mailing list