package squid 2.7.STABLE7-1ubuntu12.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
squid (Ubuntu) |
Fix Released
|
High
|
Clint Byrum | ||
Lucid |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: squid
Did a normal package update and got this error. Sorry I don't have more details
ProblemType: Package
DistroRelease: Ubuntu 10.04
Package: squid 2.7.STABLE7-
ProcVersionSign
Uname: Linux 2.6.32-28-generic i686
NonfreeKernelMo
Architecture: i386
Date: Fri Feb 11 08:43:15 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 1
SourcePackage: squid
Title: package squid 2.7.STABLE7-
== SRU Report ==
=== Impact ===
The bug will cause errors for anyone who has experienced bug #573853 while they try to upgrade to fix that very bug, which can be very frustrating and confusing. It will also generate a lot of apport bug reports like the ones that led to this report.
=== Dev fix ===
This should be fixed in the natty packages in the same way, though the version numbers may need to be adjusted.
=== Patch ===
See merge proposal for lucid package. Similar fix can be done for natty and maverick too. The maverick fix should accompany the fix for bug #573853
=== TEST CASE: ===
1. install squid from lucid (not lucid-updates)
2. sudo reload squid
3. upgrade to the squid in lucid-updates
4. the postinst will fail to restart squid
5. repeat steps 2 - 4, but upgrade to the fixed package instead, the postinst should succeed.
=== Regression Potential ===
Its possible that this code may introduce a new bug in the preinst that will cause some trouble, though a healthy dose of testing has been taken to try and prevent that.
Related branches
- Chuck Short (community): Approve
-
Diff: 56 lines (+38/-0)2 files modifieddebian/changelog (+7/-0)
debian/preinst (+31/-0)
tags: | added: regression-update |
Changed in squid (Ubuntu): | |
status: | Triaged → In Progress |
tags: |
added: verification-done removed: verification-needed |
tags: | added: testcase |
no longer affects: | squid-deb-proxy (Ubuntu) |
no longer affects: | squid-deb-proxy (Ubuntu Lucid) |
Hello Greg (and duplicate reporters), thanks for taking the time to file this bug report!
So unfortunately, this is likely the result of the squid process having disappeared because of bug #573853 , which ironically was fixed in the package that you are all trying to install.
This is a temporary problem, and the way to alleviate it is to kill squid off manually (it may still be running despite upstart having lost track of it), and then start it manually.
These three commands may print errors (and may leave your system in a bad state, so please be cautious), but should lead to the upgrade finishing:
sudo stop squid
sudo killall squid
sudo start squid
sudo dpkg --configure -a
Unfortunately, given the nature of the bug fixed there's no safe way that I have come up with to plan for this possible failure and get around it in the postinst. Given that, I believe this bug has to be closed as Won't Fix.
If someone comes up with a better way to handle the upgrade when the squid job is in an unknown state, then please re-open it.