Bug 45935 - univention-squid installation in 4.3 fails
univention-squid installation in 4.3 fails
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Squid
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3
Assigned To: Felix Botner
Philipp Hahn
: interim-3
: 36572 (view as bug list)
Depends on: 46457
Blocks:
  Show dependency treegraph
 
Reported: 2017-12-21 13:46 CET by Felix Botner
Modified: 2020-07-04 07:33 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Botner univentionstaff 2017-12-21 13:46:21 CET
apt-get -s install univention-squid 
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
 univention-squid : Hängt ab von: squid3 soll aber nicht installiert werden



univention-squid breaks squid, but in debian strech squid3 is just a transitional package for squid (with version 3...).

So we have to remove breaks: squid form univention-squid
Comment 1 Felix Botner univentionstaff 2017-12-21 14:09:52 CET
fixed the package dependency, but due to upstream changes we have to rename everything back from squid3 to squid in our univention-squid, univention-dansguardian, ucs-test, univention-nagios-servicechecks and the documentation
Comment 2 Felix Botner univentionstaff 2018-01-12 12:28:22 CET
changed squid3 to squid in

* univention-squid
* univention-dansguardian
* univention-nagios-servicechecks
* docs 02bcfb9c636c494e9127eddc3202b5f04676c3a3

re-activated tests/43_proxy/04_http_proxy_ntlm_auth_performance_check in ucs-test 

TODO: update
Comment 3 Felix Botner univentionstaff 2018-01-16 17:16:52 CET
Update

 * univention-squid: move configs during update

   more debian/univention-squid.maintscript 

   rm_conffile /etc/univention/templates/files/etc/squid3/allowed_ldap_groups.conf 11.0.0-3~
   rm_conffile /etc/univention/templates/files/etc/squid3/squid.conf 11.0.0-3~
   mv_conffile /etc/squid3/local_bottom.conf /etc/squid/local_bottom.conf 11.0.0-3~
   mv_conffile /etc/squid3/local_rules.conf /etc/squid/local_rules.conf 11.0.0-3~
   mv_conffile /etc/univention/templates/files/etc/default/squid3 /etc/univention/templates/files/etc/default/squid 11.0.0-3~

   and postinst

   # 4.3 update
   if [ "$1" = configure -a -n "$2" ] && dpkg --compare-versions "$2" lt 11.0.0-3; then
	if [ -e "/etc/squid3.secret" ] && [ ! -e "/etc/squid.secret" ]; then
		mv /etc/squid3.secret /etc/squid.secret
	fi
	if [ -e /etc/squid3/local.conf ] && [ ! -e /etc/squid/local.conf ]; then
		mv /etc/squid3/local.conf /etc/squid/local.conf
	fi
   fi

 * univention-updater: additionally, the whole /etc/squid3 directory and the 
   squid.conf template are saved in /etc/squid3-update-4.3 before the update
   (preup.sh)

 * squid3: i had to patch the squid3 package, in the transition package squid3
   the postinst moved the old /etc/squid3/squid.conf to /etc/squid/squid.conf.
   At this point univention-squid is already installed and
   /etc/squid/squid.conf is a new UCR template, the old /etc/squid3/squid.conf
   no longer works and lets the squid restart fail. So this has been removed.

 * changelog-4.3-0.xml, added info

QA: at least new installation and update tests
Comment 4 Philipp Hahn univentionstaff 2018-01-19 16:49:45 CET
OK: univention-install univention-squid # install on UCS_4.3
OK: univentipn-upgrade # 4.2 → 4.3

f80df30d50 Bug #45935, release notes 4.3
99e24925e4 Bug #45935: info
f1d23b30dd Bug #45935: squid3 -> squid, update
fb53c40189 Bug #45935: backup /etc/squid3 before update
f4a6e0c497 Bug #45935: squid3 -> squid, update
9a326f8bc0 Bug #45935: squid3 -> squid, update
ec095f7ea6 Bug #45935: squid3 -> squid, update
b0efbd934b Bug #45935: squid3 -> squid, update
6dc6bfdfea Bug #45935: squid3 -> squid, update
88909d4986 Bug #45935: squid3 -> squid, update
866a76220d Bug #45935: squid3 -> squid, update
58146dd68f Bug #45935: 43_proxy/04_http_proxy_ntlm_auth_performance_check: activated
02bcfb9c63 Bug #45935: squid3 -> squid
3457001f56 Bug #45935: squid3 -> squid
af358a02fb Bug #45935: squid3 -> squid
1dd11d5b92 Bug #45935: squid3 -> squid
0f7acac940 Bug #45935: rename squid3 into squid
eafb489148 Bug #45935: fix control
Comment 5 Florian Best univentionstaff 2018-01-22 19:15:09 CET
Why do I get the following?:

squid (3.5.23-5A~4.3.0.201801151932) wird eingerichtet ...
stat: der Aufruf von stat für '/var/spool/squid3' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
chown: Zugriff auf '/var/spool/squid3' nicht möglich: Datei oder Verzeichnis nicht gefunden
dpkg: Fehler beim Bearbeiten des Paketes squid (--configure):
Comment 6 Felix Botner univentionstaff 2018-01-23 09:20:49 CET
(In reply to Florian Best from comment #5)
> Why do I get the following?:
> 
> squid (3.5.23-5A~4.3.0.201801151932) wird eingerichtet ...
> stat: der Aufruf von stat für '/var/spool/squid3' ist nicht möglich: Datei
> oder Verzeichnis nicht gefunden
> chown: Zugriff auf '/var/spool/squid3' nicht möglich: Datei oder Verzeichnis
> nicht gefunden
> dpkg: Fehler beim Bearbeiten des Paketes squid (--configure):

please re-open the bug if there is a problem and provide info's on how to reproduce the issue (e.g. i can install univention-squid just fine on my 4.3)
Comment 7 Sönke Schwardt-Krummrich univentionstaff 2018-01-31 17:36:43 CET
Jenkins complains about the following in UCS@school update tests:

03_ucr.35check-ucr-templates.test

(2018-01-31 00:04:41.730006) WARNING: The following UCR files are modified locally.
(2018-01-31 00:04:41.730064) Updated versions will be named FILENAME.dpkg-*.
(2018-01-31 00:04:41.730078) The files should be checked for differences.
(2018-01-31 00:04:41.730149) 
[2018-01-31 00:04:41.730253] /etc/univention/templates/files/etc/default/squid

http://jenkins.knut.univention.de:8080/job/UCSschool-4.3/job/Upgrade%20Singleserver/lastCompletedBuild/Config=s4,TestGroup=import3/testReport/03_ucr/35check-ucr-templates/test/
Comment 8 Felix Botner univentionstaff 2018-02-06 17:01:23 CET
(In reply to Sönke Schwardt-Krummrich from comment #7)
> Jenkins complains about the following in UCS@school update tests:
> 
> 03_ucr.35check-ucr-templates.test
> 
> (2018-01-31 00:04:41.730006) WARNING: The following UCR files are modified
> locally.
> (2018-01-31 00:04:41.730064) Updated versions will be named FILENAME.dpkg-*.
> (2018-01-31 00:04:41.730078) The files should be checked for differences.
> (2018-01-31 00:04:41.730149) 
> [2018-01-31 00:04:41.730253]
> /etc/univention/templates/files/etc/default/squid
> 
> http://jenkins.knut.univention.de:8080/job/UCSschool-4.3/job/
> Upgrade%20Singleserver/lastCompletedBuild/Config=s4,TestGroup=import3/
> testReport/03_ucr/35check-ucr-templates/test/

rm instead of mv conffile /etc/univention/templates/files/etc/default/squid3

ok in my tests, lets wait and see the ucs-tests ...
Comment 10 Stefan Gohmann univentionstaff 2018-03-14 14:37:47 CET
UCS 4.3 has been released:
 https://docs.software-univention.de/release-notes-4.3-0-en.html
 https://docs.software-univention.de/release-notes-4.3-0-de.html

If this error occurs again, please use "Clone This Bug".
Comment 11 Philipp Hahn univentionstaff 2020-07-04 07:33:53 CEST
*** Bug 36572 has been marked as a duplicate of this bug. ***