package squid3 3.3.8-1ubuntu6.1 failed to install/upgrade: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück

Bug #1370602 reported by no!chance
116
This bug affects 35 people
Affects Status Importance Assigned to Milestone
squid3 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Upgrade to 14.04 from 12.04 failed while updating squid. On the screen I saw the following message:

Fehler traten auf beim Bearbeiten von:
 squid3
 squid
Error in function:

Ein schwerwiegender Fehler ist aufgetreten

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: squid3 3.3.8-1ubuntu6.1
ProcVersionSignature: Ubuntu 3.2.0-68.102-generic 3.2.62
Uname: Linux 3.2.0-68-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.4
Architecture: amd64
Date: Wed Sep 17 18:11:53 2014
DuplicateSignature: package:squid3:3.3.8-1ubuntu6.1:Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
ErrorMessage: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
InstallationDate: Installed on 2014-03-23 (178 days ago)
InstallationMedia: Ubuntu-Server 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.2)
SourcePackage: squid3
Title: package squid3 3.3.8-1ubuntu6.1 failed to install/upgrade: Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
UpgradeStatus: Upgraded to trusty on 2014-09-17 (0 days ago)
mtime.conffile..etc.squid3.squid.conf: 2014-03-23T13:31:41.048825

Revision history for this message
no!chance (ralf-fehlau) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Timo Lehmann (x-timo) wrote :

I had the same error.
The manager, localhost and to_localhost definitions are built-in in later squid-versions...
Simply restart your system after the relase-upgrade and remove the following lines from your squid.conf:

acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1

If that doesn't help, here are the steps I did before removing the lines in squid.conf but I don't think these are necessary:
apt-get remove squid3
apt-get autoremove
apt-get install squid3

Revision history for this message
frank.drewenskus (frank-drewenskus) wrote :

Removing the lines and dpkg-reconfigure squid worked!

Thx!

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in squid3 (Ubuntu):
status: New → Confirmed
Revision history for this message
Robie Basak (racb) wrote :

Thank you for your report.

This looks like a local configuration problem, rather than a bug in Ubuntu, since you had previously modified squid.conf and these customisations needed to be updated in the upgrade.

You can find pointers to get help for this sort of problem here: http://www.ubuntu.com/support/community

Since we use this bug tracker to track bugs in Ubuntu, rather than configuration problems, I'm marking this bug as Invalid. This helps us to focus on fixing bugs in Ubuntu.

If you believe that this is really a bug, then you may find it helpful to read "How to report bugs effectively" http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem, explain why you believe this is a bug in Ubuntu rather than a problem specific to your system, and then change the bug status back to New.

Changed in squid3 (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
no!chance (ralf-fehlau) wrote :

If misconfiguration means adding additional ports to the config file, then you are right. This is another reason for switching to another distribution. Ubuntu is no distribution for productive environments!!!

Revision history for this message
Robie Basak (racb) wrote :

There is currently no mechanism for a package maintainer script to automatically detect that you added additional ports and apply this change to the new configuration file in a major upstream release update.

If you have a customised configuration file, then when you upgrade you should get a prompt asking you to update your customisations to match the new configuration file. If you don't, or you upgrade non-interactively, then the old configuration file will remain because we don't want to overwrite your customisations. That will cause the daemon to fail to start.

When configuration file syntax changes between releases, there's no other real path that we can follow unless upstream provides some kind of automatic way to update previous configurations.

I'd love to know how other distributions solve this problem. Debian/Ubuntu make some use of ".d" directories to try and help with this, and specific improvements might be able to be made, but I'm not aware of any solution to the general problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.