package javascript-common 8 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #795641 reported by Mostafa A. Hamid on 2011-06-10
130
This bug affects 22 people
Affects Status Importance Assigned to Milestone
javascript-common (Debian)
Fix Released
Unknown
javascript-common (Ubuntu)
High
Unassigned

Bug Description

Binary package hint: javascript-common

Failed to upgrade the javascript-common8 package.
This error has been encountered while upgrading ubuntu distribution 11.04.

This is the faulty bit in the postinst:

if [ ! -e /etc/lighttpd/conf-available/90-javascript-alias.conf ]
then
  ln -s /etc/javascript-common/lighttpd.conf /etc/lighttpd/conf-enabled/90-javascript-alias.conf
  restart="lighttpd"
fi

Probably it is meant to check if the symlink _target_ already exists and this is a typo? Will let the Debian maintainer decide.

ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: javascript-common 8
DpkgTerminalLog:
 Setting up javascript-common (8) ...
 ln: creating symbolic link `/etc/lighttpd/conf-enabled/90-javascript-alias.conf': File exists
 dpkg: error processing javascript-common (--configure):
  subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1

Andreas Moog (ampelbein) wrote :

A quick workaround is to 'sudo rm /etc/lighttpd/conf-enabled/90-javascript-alias.conf && sudo apt-get -f install'

Changed in javascript-common (Ubuntu):
importance: Undecided → High
status: New → Triaged
description: updated
description: updated
description: updated
Changed in javascript-common (Debian):
status: Unknown → New
Changed in javascript-common (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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