我正在尝试将酒保设置为一个码头集装箱,作为设置PostgreSQL博士的一部分。
我注意到,当我使用2 nd象限公共APT存储库& installed时,我看到barman2.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回购没有更新?
谢谢穆苏
发布于 2020-08-03 22:41:23
只是为了更新,这似乎是2 nd象限公共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
...
...
...谢谢
https://stackoverflow.com/questions/63046484
复制相似问题