使用 2ndQuadrant Public APT 存储库时,较旧的酒保 2.6-1 而不是最新的 2.11
Older barman 2.6-1 instead of the latest 2.11 when using 2ndQuadrant Public APT repository
我正在尝试将 barman 设置和部署为 docker 容器,作为设置 PostgreSQL DR 的一部分。
我注意到当我使用 2ndQuadrant Public APT 存储库并安装 barman 时,我看到安装的是 barman 2.6-1 而不是 2.11。
以下是我为了分享而精简的 Dockerfile 片段。
# Dockerfile
# Barman
FROM debian:buster-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-utils \
# ca-certificates \
curl \
cron \
&& apt-get update \
&& curl https://dl.2ndquadrant.com/default/release/get/deb | bash \
&& apt-get update \
&& apt-get install -y --no-install-recommends barman \
&& rm -rf /var/lib/apt/lists/*
...
...
当我构建时,我看到了这个,
Selecting previously unselected package barman.
Preparing to unpack .../9-barman_2.6-1_all.deb ...
Unpacking barman (2.6-1) ...
Setting up libexpat1:amd64 (2.2.6-2+deb10u1) ...
Setting up mime-support (3.62) ...
Setting up libsqlite3-0:amd64 (3.27.2-3) ...
Setting up libpq5:amd64 (11.7-0+deb10u1) ...
Setting up readline-common (7.0-5) ...
Setting up libreadline7:amd64 (7.0-5) ...
Setting up libpopt0:amd64 (1.16-12) ...
Setting up libpython2.7-stdlib:amd64 (2.7.16-2+deb10u1) ...
Setting up rsync (3.1.3-6) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up python2.7 (2.7.16-2+deb10u1) ...
Setting up libpython2-stdlib:amd64 (2.7.16-1) ...
Setting up python2 (2.7.16-1) ...
Setting up libpython-stdlib:amd64 (2.7.16-1) ...
Setting up python (2.7.16-1) ...
Setting up python-argh (0.26.2-1) ...
Setting up python-argcomplete (1.8.1-1) ...
Setting up python-six (1.12.0-1) ...
Setting up python-psycopg2 (2.7.7-1) ...
Setting up python-dateutil (2.7.3-3) ...
Setting up barman (2.6-1) ...
Processing triggers for libc-bin (2.28-10) ...
...
...
关于我在这里做错了什么的任何指示,或者 apt 存储库是否未更新?
谢谢
穆图
只是为了更新,似乎是 2ndQuadrant Public APT 存储库有问题,当我使用 PostgreSQL 社区 APT 存储库时,我获取并安装了最新版本。
对于刚开始的其他人,请使用这个(见下文)。
下面是相关片段,
# Dockerfile
# Barman
FROM debian:buster-slim
RUN apt-get update && apt-get install -y --no-install-recommends wget gnupg2 cron openssh-server && rm -rf /var/lib/apt/lists/*
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main" >> /etc/apt/sources.list.d/pgdg.list' \
&& (wget --no-check-certificate --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - ) \
&& apt-get update && apt-get install -y barman \
&& rm -rf /var/lib/apt/lists/*
RUN usermod -a -G sudo barman
...
...
...
谢谢
我正在尝试将 barman 设置和部署为 docker 容器,作为设置 PostgreSQL DR 的一部分。
我注意到当我使用 2ndQuadrant Public APT 存储库并安装 barman 时,我看到安装的是 barman 2.6-1 而不是 2.11。
以下是我为了分享而精简的 Dockerfile 片段。
# Dockerfile
# Barman
FROM debian:buster-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-utils \
# ca-certificates \
curl \
cron \
&& apt-get update \
&& curl https://dl.2ndquadrant.com/default/release/get/deb | bash \
&& apt-get update \
&& apt-get install -y --no-install-recommends barman \
&& rm -rf /var/lib/apt/lists/*
...
...
当我构建时,我看到了这个,
Selecting previously unselected package barman.
Preparing to unpack .../9-barman_2.6-1_all.deb ...
Unpacking barman (2.6-1) ...
Setting up libexpat1:amd64 (2.2.6-2+deb10u1) ...
Setting up mime-support (3.62) ...
Setting up libsqlite3-0:amd64 (3.27.2-3) ...
Setting up libpq5:amd64 (11.7-0+deb10u1) ...
Setting up readline-common (7.0-5) ...
Setting up libreadline7:amd64 (7.0-5) ...
Setting up libpopt0:amd64 (1.16-12) ...
Setting up libpython2.7-stdlib:amd64 (2.7.16-2+deb10u1) ...
Setting up rsync (3.1.3-6) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of restart.
Setting up python2.7 (2.7.16-2+deb10u1) ...
Setting up libpython2-stdlib:amd64 (2.7.16-1) ...
Setting up python2 (2.7.16-1) ...
Setting up libpython-stdlib:amd64 (2.7.16-1) ...
Setting up python (2.7.16-1) ...
Setting up python-argh (0.26.2-1) ...
Setting up python-argcomplete (1.8.1-1) ...
Setting up python-six (1.12.0-1) ...
Setting up python-psycopg2 (2.7.7-1) ...
Setting up python-dateutil (2.7.3-3) ...
Setting up barman (2.6-1) ...
Processing triggers for libc-bin (2.28-10) ...
...
...
关于我在这里做错了什么的任何指示,或者 apt 存储库是否未更新?
谢谢 穆图
只是为了更新,似乎是 2ndQuadrant Public APT 存储库有问题,当我使用 PostgreSQL 社区 APT 存储库时,我获取并安装了最新版本。
对于刚开始的其他人,请使用这个(见下文)。
下面是相关片段,
# Dockerfile
# Barman
FROM debian:buster-slim
RUN apt-get update && apt-get install -y --no-install-recommends wget gnupg2 cron openssh-server && rm -rf /var/lib/apt/lists/*
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main" >> /etc/apt/sources.list.d/pgdg.list' \
&& (wget --no-check-certificate --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - ) \
&& apt-get update && apt-get install -y barman \
&& rm -rf /var/lib/apt/lists/*
RUN usermod -a -G sudo barman
...
...
...
谢谢