Univention Bugzilla – Bug 41597
Update to 4.1 fails with univention-postgresql due to 3.2 errata components
Last modified: 2019-12-11 13:41:22 CET
When updating to UCS 4.0 coming from UCS 3.2 not all errata scopes are deactivated: # ucr search --brief '^repository/online/component/[^/]+-errata$' repository/online/component/.*: <empty> repository/online/component/3.2-0-errata: false repository/online/component/3.2-1-errata: false repository/online/component/3.2-2-errata: false repository/online/component/3.2-3-errata: false repository/online/component/3.2-4-errata: false repository/online/component/3.2-5-errata: false repository/online/component/3.2-6-errata: false repository/online/component/3.2-7-errata: enabled repository/online/component/3.2-8-errata: enabled repository/online/component/4.0-0-errata: false repository/online/component/4.0-1-errata: false repository/online/component/4.0-2-errata: false repository/online/component/4.0-3-errata: false repository/online/component/4.0-4-errata: false repository/online/component/4.0-5-errata: enabled this leads to postgresql-8.4 being available during the update to 4.1: # apt-cache policy postgresql-8.4 postgresql-8.4: Installiert: 8.4.22lts6-0.29.201602291915 Installationskandidat: 8.4.22lts6-0.29.201602291915 Versionstabelle: *** 8.4.22lts6-0.29.201602291915 0 500 http://updates.software-univention.de/3.2/maintained/component/ 3.2-8-errata/i386/ Packages 100 /var/lib/dpkg/status 8.4.22lts4-0.26.201509171802 0 500 http://updates.software-univention.de/3.2/maintained/component/ 3.2-7-errata/i386/ Packages this leads to apt trying to install {univention-,}postgresql-8.4 although postgresql-9.1 is already installed: [will be installed]: postgresql-8.4 univention-postgresql-8.4 [will be updated]: postgresql-9.1 univention-postgresql Inst postgresql-9.1 [9.1.16-0.9.201509171755] (9.1.16-0.10.201510311538 Univention:updates.software-univention.de [i386]) [] Inst postgresql-client-9.1 [9.1.16-0.9.201509171755] (9.1.16-0.10.201510311538 Univention:updates.software-univention.de [i386]) [] […] Inst postgresql-8.4 (8.4.22lts6-0.29.201602291915 Univention Corporate Server:updates.software-univention.de [i386]) [] Inst univention-postgresql [7.0.0-4.74.201407211112] (8.0.0-10.85.201511131445 Univention:updates.software-univention.de [all]) [] Inst univention-postgresql-8.4 (8.0.0-10.85.201511131445 Univention:updates.software-univention.de [all]) [] […] Conf postgresql-client-9.1 (9.1.16-0.10.201510311538 Univention:updates.software-univention.de [i386]) […] Conf postgresql-9.1 (9.1.16-0.10.201510311538 Univention:updates.software-univention.de [i386]) Conf postgresql-8.4 (8.4.22lts6-0.29.201602291915 Univention Corporate Server:updates.software-univention.de [i386]) Conf univention-postgresql-8.4 (8.0.0-10.85.201511131445 Univention:updates.software-univention.de [all]) Conf univention-postgresql (8.0.0-10.85.201511131445 Univention:updates.software-univention.de [all]) The update then fails with: iF postgresql-8.4 ii postgresql-9.1 iU univention-postgresql iU univention-postgresql-8.4 When going trough UCS 3.3 does not lead to the problem because <http://sdb.univention.de/1292> installs univention-postgresql-9.1, so apt does not have to decide between univention-postgresql-{8.4,9.1}.
r70926 Check if PostgreSQL 8.4 is installable (Bug #41597) r70927 disable old (3.2-*) errata scopes if set (Bug #41597)
OK - update fails with 3.2 errata scopes and univention-postgres (due to installation of postgresql-8.4) OK - update successful with apt.knut.univention.de with 3.2 errata scopes and univention-postgres OK - errata 3.2 scopes disabled during update OK - postgresql-8.4 install test
scripts released, see 40515
(In reply to Felix Botner from comment #3) > scripts released, see 40515 OK, closed