On Tue, Mar 21, 2006 at 10:56:12AM +0100, Tino Keitel wrote: > during the upgrade of the socklog-run package I got this error: > > Setting up socklog-run (2.1.0-1) ... > ln: creating symbolic link `/var/service/socklog-unix' to > `/etc/sv/socklog-unix': File exists > dpkg: error processing socklog-run (--configure): > subprocess post-installation script returned error exit status 1
Yes, I see, it's a dangling symlink that exists temporarily. This patch should fix it, you can apply it to /var/lib/dpkg/info/socklog-run.postinst, and run dpkg --configure -a. Thanks, Gerrit.
Index: debian/socklog-run.postinst =================================================================== RCS file: /cvs/socklog/debian/socklog-run.postinst,v retrieving revision 1.6 diff -u -r1.6 socklog-run.postinst --- debian/socklog-run.postinst 6 Mar 2006 12:56:33 -0000 1.6 +++ debian/socklog-run.postinst 21 Mar 2006 10:20:06 -0000 @@ -20,7 +20,7 @@ # enable system- and kernel-log-service for i in unix klog; do - test -e /var/service/socklog-$i || \ + test -h /var/service/socklog-$i || test -e /var/service/socklog-$i || \ ln -s /etc/sv/socklog-$i /var/service/ || exit 1 done