mono-xsp2 fails to install

Bug #99798 reported by Jamie MacIsaac
24
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xsp (Debian)
Fix Released
Unknown
xsp (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: mono-xsp2

mono-xsp2 on Feisty/i386 fails because "an unknown initscript, /etc/init.d/mono-xsp2 not found"

jmi@zoidberg:~$ sudo apt-get install mono-xsp2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed
  mono-xsp2
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 61.9kB of archives.
After unpacking 295kB of additional disk space will be used.
Get: 1 http://gb.archive.ubuntu.com feisty/universe mono-xsp2 1.2.1-1ubuntu1 [61.9kB]
Fetched 61.9kB in 0s (120kB/s)
Preconfiguring packages ...
(Reading database ... 107987 files and directories currently installed.)
Unpacking mono-xsp2 (from .../mono-xsp2_1.2.1-1ubuntu1_all.deb) ...
invoke-rc.d: unknown initscript, /etc/init.d/mono-xsp2 not found.
dpkg: error processing /var/cache/apt/archives/mono-xsp2_1.2.1-1ubuntu1_all.deb (--unpack):
 subprocess pre-installation script returned error exit status 100
Errors were encountered while processing:
 /var/cache/apt/archives/mono-xsp2_1.2.1-1ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
mgolisch (mgolisch-googlemail) wrote :

after taking a look at the preinstall script it seems that it checks for the wrong initscript.
it checks for /etc/init.d/mono-xsp instead of mono-xsp2 so when mono-xsp is installed it tries to execute the /etc/init.d/mono-xsp2 script to stop the service which fails as its not installed.

thats the content of the preinst script extracted via dpkg-deb.
#!/bin/sh -e

NAME=mono-xsp2
DESC="XSP WebServer"

case "$1" in
   upgrade|install)
        if [ -f /etc/init.d/mono-xsp ]; then
            if which invoke-rc.d >/dev/null 2>&1; then
                invoke-rc.d mono-xsp2 stop
            else
                /etc/init.d/mono-xsp2 stop
            fi
        fi
        ;;
esac

exit 0

it should check for /etc/init.d/mono-xsp2 initscript instead i think.

best regards michael

Revision history for this message
mgolisch (mgolisch-googlemail) wrote :

yeah,
I verified that, just change the line where it uses test to check for the existance of the initscript,it installs fine after that.

best regards michael

Revision history for this message
mgolisch (mgolisch-googlemail) wrote :

I filed a bug report in the debian bugtracker for that issue.
Now we just have to wait for debian maintainers to fix that and the changes can be merged back into ubuntu.
Meanwhile you can uninstall mono-xsp and mono-xsp2 should install fine, if you need both change the preinst script on your own and build a new package with the changes and install via dpkg -i.

michael

Changed in xsp:
status: Unknown → Fix Released
Revision history for this message
mos (marcosmoslares) wrote :

You dosnt need to uninstall xsp, you can make what I post here:

https://answers.launchpad.net/ubuntu/+question/10230

hope it helps

Revision history for this message
Steve Kowalik (stevenk) wrote :

This has been fixed in Gutsy, with both xsp 1.2.1-2.2 and 1.2.4-1 being uploaded to it.

Changed in xsp:
status: New → Fix Released
Revision history for this message
David Ally (david-ally) wrote :

Yeah, i had similar problem, but as soon as completely remove mono-xsp, mono-xsp2 installed without any errors, Thanks for the fix

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.