Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use apt-archive.postgresql.org and fix dpkg dependency issues #266

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bergner
Copy link

@bergner bergner commented Jul 21, 2020

Download deb packages from http://apt-archive.postgresql.org rather than http://atalia.postgresql.org, and escape "+" in such download URLs to %2B to ensure download works ok.

Follow-up problems that appear as a consequence of such a change:

  • The barman, pgpool2, and libpgpool0 pgdg90+1 deb files referenced by docker files are not available on apt-archive. There are pgdg80+1 and pgdg100+1 variants, and also some that are just called pgdg+1. After some testing I've ended up referencing the pggd+1 ones.
  • dpkg dependency problems for pgpool2, libpgpool, and barman. "docker-compose build" still completes ok though but I'm not trusting those builds.
  • pgpool 3.6 and 3.7 requires libmemcached11 but 3.3 requires libmemcached10 and that dependency difference is not dealt with.
Unpacking barman (2.4-1.pgdg+1) ...
dpkg: dependency problems prevent configuration of barman:
 barman depends on python-argcomplete; however:
  Package python-argcomplete is not installed.
 barman depends on python-argh; however:
  Package python-argh is not installed.
 barman depends on python-dateutil; however:
  Package python-dateutil is not installed.
 barman depends on python-psycopg2; however:
  Package python-psycopg2 is not installed.
 barman depends on rsync (>= 3.0.4~); however:
  Package rsync is not installed.
...
Unpacking libpgpool0 (3.7.5-2.pgdg80+1) ...
dpkg: dependency problems prevent configuration of libpgpool0:
 libpgpool0 depends on libmemcached11; however:
  Package libmemcached11 is not installed.
...
dpkg: dependency problems prevent configuration of pgpool2:
 pgpool2 depends on libpgpool0 (= 3.7.5-2.pgdg80+1); however:
  Package libpgpool0 is not configured yet.
 pgpool2 depends on postgresql-common (>= 26); however:
  Package postgresql-common is not installed.

All of the above dependency problems are dealt with in this suggested fix and all "docker-compose build" variants complete successfully, and without any dpkg errors.

Marcus Bergner added 2 commits July 21, 2020 12:13
See also: paunin#260

http://apt-archive.postgresql.org/pub/repos/apt/pool/main is now used
instead of http://atalia.postgresql.org/morgue when referencing old
Debian packages.

URI escaping of + to %2B in apt-archive urls to ensure wget download
works as expected from apt-archive.

Fixed dpkg dependency problems for pgpool and libpgpool0 by apt-get
install-ing the following packages:
postgresql-common

Fixed dpkg dependency problems for barman by apt-get install-ing the
following packages:
python-argcomplete python-argh python-dateutil python-psycopg2 rsync

Fixed dpkg dependency problem for pgpool by ensuring libmemcached11 is
installed for pgpool 3.6 and 3.7, but pgpool 3.3 gets libmemcached10.
Besides building the generated files I also ran docker-compose build on
all variants, similar to this and all of them were ok.

    make/make.sh
    cd docker-compose
    for f in *.yml
    do
        echo "$f"
        docker-compose -f $f build > /tmp/$f.log 2>&1
        egrep "dpkg.*error" /tmp/$f.log
        tail -n1 /tmp/$f.log
    done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant