[Bug 891445] Re: package squid3 3.1.15-1ubuntu2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Adam Gandelman 891445 at bugs.launchpad.net
Thu Nov 17 03:30:26 UTC 2011


Hi Chris--

Thanks for reporting this.   Both the grepconf2() and grepconf()
functions are attempting to parse a config file at
/etc/squid/squid.conf, when it should be checking for the file at
/etc/squid3/squid.conf

There is also an issue in the maxfds() function returning non-zero in
absense of /etc/default/squid3 (which is not shipped with the package).
This also causes the pre-start action to fail.

The first issue ends up not showing up if the previous squid(v2) is
installed on the system as well.  The latter is a blocker regardless.
Both are addressed in the linked branch.

I'm curious to know why the sysv init script from squid(v2) was
converted to the squid3 upstart job as opposed to the sysv init script
that is actually packaged with squid3.

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/891445

Title:
  package squid3 3.1.15-1ubuntu2 failed to install/upgrade: subprocess
  installed post-installation script returned error exit status 1

Status in “squid3” package in Ubuntu:
  Confirmed

Bug description:
  Installing squid3 (as a dependency of squid-deb-proxy) onto a clean
  system fails when the postinst tries to start squid3.

  dmesg contains [99409.540189] init: squid3 pre-start process (31725)
  terminated with status 2.

  Tracing that back with trusty echo statements in the upstart script shows it dying at the line: 
      cdr=`grepconf2 cache_dir /var/spool/squid`

  ProblemType: Package
  DistroRelease: Ubuntu 12.04
  Package: squid3 3.1.15-1ubuntu2
  ProcVersionSignature: Ubuntu 3.1.0-2.3-generic 3.1.0
  Uname: Linux 3.1.0-2-generic x86_64
  ApportVersion: 1.26-0ubuntu1
  Architecture: amd64
  Date: Thu Nov 17 12:29:28 2011
  ErrorMessage: subprocess installed post-installation script returned error exit status 1
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20111107)
  SourcePackage: squid3
  Title: package squid3 3.1.15-1ubuntu2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid3/+bug/891445/+subscriptions



More information about the Ubuntu-sponsors mailing list