Skip to content

Failed to fetch http://repo.mysql.com/apt/debian/dists/wheezy/Release Unable to find expected entry 'mysql-5.7-dmr/binary-amd64/Packages' in Release file  #4

@harryge00

Description

@harryge00

I cannot build the master image:

Step 1 : FROM debian:wheezy
 ---> 26f8900cfb86
Step 2 : RUN groupadd -r mysql && useradd -r -g mysql mysql
 ---> Using cache
 ---> 62d5f11d1696
Step 3 : RUN apt-get update && apt-get install -y perl --no-install-recommends && rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> fd0f758949c7
Step 4 : RUN apt-key adv --keyserver pool.sks-keyservers.net --recv-keys A4A9406876FCBD3C456770C88C718D3B5072E1F5
 ---> Using cache
 ---> 0cc4c9aba070
Step 5 : ENV MYSQL_MAJOR 5.7
 ---> Using cache
 ---> c114a0115932
Step 6 : ENV MYSQL_VERSION 5.7.7
 ---> Using cache
 ---> 1665442d8f99
Step 7 : RUN echo "deb http://repo.mysql.com/apt/debian/ wheezy mysql-${MYSQL_MAJOR}-dmr" > /etc/apt/sources.list.d/mysql.list
 ---> Using cache
 ---> 41890480f228
Step 8 : RUN {                 echo mysql-community-server mysql-community-server/data-dir select '';                 echo mysql-community-server mysql-community-server/root-pass password '';                 echo mysql-community-server mysql-community-server/re-root-pass password '';                 echo mysql-community-server mysql-community-server/remove-test-db select false;         } | debconf-set-selections         && apt-get update && apt-get install -y mysql-server="${MYSQL_VERSION}"* && rm -rf /var/lib/apt/lists/*         && rm -rf /var/lib/mysql && mkdir -p /var/lib/mysql
 ---> Running in 8fc830ac84bd
Get:1 http://repo.mysql.com wheezy Release.gpg [173 B]
Get:2 http://repo.mysql.com wheezy Release [19.2 kB]
Get:3 http://security.debian.org wheezy/updates Release.gpg [1554 B]
Get:4 http://security.debian.org wheezy/updates Release [39.0 kB]
Get:5 http://security.debian.org wheezy/updates/main amd64 Packages [577 kB]
Get:6 http://deb.debian.org wheezy Release.gpg [2373 B]
Get:7 http://deb.debian.org wheezy-updates Release.gpg [1554 B]
Get:8 http://deb.debian.org wheezy Release [191 kB]
Get:9 http://deb.debian.org wheezy-updates Release [155 kB]
Get:10 http://deb.debian.org wheezy/main amd64 Packages [7634 kB]
Get:11 http://deb.debian.org wheezy-updates/main amd64 Packages [7481 B]
Fetched 8629 kB in 3s (2604 kB/s)
W: Failed to fetch http://repo.mysql.com/apt/debian/dists/wheezy/Release  Unable to find expected entry 'mysql-5.7-dmr/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c {                 echo mysql-community-server mysql-community-server/data-dir select '';                 echo mysql-community-server mysql-community-server/root-pass password '';                 echo mysql-community-server mysql-community-server/re-root-pass password '';                 echo mysql-community-server mysql-community-server/remove-test-db select false;         } | debconf-set-selections         && apt-get update && apt-get install -y mysql-server="${MYSQL_VERSION}"* && rm -rf /var/lib/apt/lists/*         && rm -rf /var/lib/mysql && mkdir -p /var/lib/mysql' returned a non-zero code: 100

In addition, the latest docker image does not match the lastest code. The latest code shows slave is granted to access the master from all ips, but the docer image, only a few range of ips is allowed:

echo "GRANT REPLICATION SLAVE, REPLICATION CLIENT on *.* TO 'repl'@'10.100.%' IDENTIFIED BY '$MYSQL_REPLICATION_PASSWORD';" >> "$tempSqlFile"
echo "GRANT REPLICATION SLAVE, REPLICATION CLIENT on *.* TO 'repl'@'10.244.%' IDENTIFIED BY '$MYSQL_REPLICATION_PASSWORD';" >> "$tempSqlFile"
echo "GRANT REPLICATION SLAVE, REPLICATION CLIENT on *.* TO 'repl'@'172.17.%' IDENTIFIED BY '$MYSQL_REPLICATION_PASSWORD';" >> "$tempSqlFile"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions