#361 The DEB package needs to be more user friendly

None
open
nobody
5
2012-08-22
2009-07-02
No

Downloaded RC for ooRexx and received following error when trying to install ooRexx-4.0.0-4861-rc1.i386.deb:

(Reading database ... 230804 files and directories currently installed.)
Preparing to replace oorexx 4.0.0-4861 (using ooRexx-4.0.0-4861-rc1.i386.deb) ...
Removing any system startup links for /etc/init.d/rxapid ...
Unpacking replacement oorexx ...
Setting up oorexx (4.0.0-4861) ...
cp: cannot stat `/opt/ooRexx/bin/rxapid': No such file or directory
update-rc.d: /etc/init.d/rxapid: file does not exist
/var/lib/dpkg/info/oorexx.postinst: 106: /etc/init.d/rxapid: not found
dpkg: error processing oorexx (--install):
subprocess post-installation script returned error exit status 127
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
oorexx

ooRexx did not install.

Discussion

  • Mark Miesfeld

    Mark Miesfeld - 2009-07-02

    Hmm, I might have screwed something up in the last change I did for the deb package.

    I notice it has this in the output:

    Preparing to replace oorexx 4.0.0-4861

    On debian based systems you have to completely un-install a previous ooRexx, and then install the new version.

    I.e.,

    dpkg -P ooRexx
    dpkg -i ooRexx-4.0.0-4861-rc1.i386.deb

    I'll take a look. I didn't have any problems installing the package after I built it, but I only tried one time. ;-(

     
  • Mark Miesfeld

    Mark Miesfeld - 2009-07-02

    Mark,

    It looks to me like the problem is not uninstalling the previous ooRexx version. If I try installing over the top of the version I installed yesterday, I get a similar error:

    root@Osprey:/home/miesfeld/work.ooRexx/wc# dpkg --install oorexx_4.0.0-4861_i386.deb
    (Reading database ... 110873 files and directories currently installed.)
    Preparing to replace oorexx 4.0.0-4861 (using oorexx_4.0.0-4861_i386.deb) ...
    Stopping rxapi:
    Removing any system startup links for /etc/init.d/rxapid ...
    /etc/rc1.d/K89rxapid
    /etc/rc2.d/S89rxapid
    /etc/rc3.d/S89rxapid
    /etc/rc4.d/S89rxapid
    /etc/rc5.d/S89rxapid
    Unpacking replacement oorexx ...
    Setting up oorexx (4.0.0-4861) ...
    cp: cannot stat `/opt/ooRexx/bin/rxapid': No such file or directory
    update-rc.d: /etc/init.d/rxapid: file does not exist
    /var/lib/dpkg/info/oorexx.postinst: 106: /etc/init.d/rxapid: not found
    dpkg: error processing oorexx (--install):
    subprocess post-installation script returned error exit status 127
    Processing triggers for libc6 ...
    ldconfig deferred processing now taking place
    Errors were encountered while processing:
    oorexx

    But, if you uninstall (really I guess it is purge) everything goes okay:

    root@Osprey:/home/miesfeld/work.ooRexx/wc# dpkg -P ooRexx
    (Reading database ... 110872 files and directories currently installed.)
    Removing oorexx ...
    Removing any system startup links for /etc/init.d/rxapid ...
    Purging configuration files for oorexx ...
    Processing triggers for libc6 ...
    ldconfig deferred processing now taking place
    root@Osprey:/home/miesfeld/work.ooRexx/wc#
    root@Osprey:/home/miesfeld/work.ooRexx/wc#
    root@Osprey:/home/miesfeld/work.ooRexx/wc#

    root@Osprey:/home/miesfeld/work.ooRexx/wc# dpkg --install oorexx_4.0.0-4861_i386.deb
    Selecting previously deselected package oorexx.
    (Reading database ... 110784 files and directories currently installed.)
    Unpacking oorexx (from oorexx_4.0.0-4861_i386.deb) ...
    Setting up oorexx (4.0.0-4861) ...
    update-rc.d: warning: multiuser is deprecated; specify runlevels manually
    Adding system startup for /etc/init.d/rxapid ...
    /etc/rc1.d/K89rxapid -> ../init.d/rxapid
    /etc/rc2.d/S89rxapid -> ../init.d/rxapid
    /etc/rc3.d/S89rxapid -> ../init.d/rxapid
    /etc/rc4.d/S89rxapid -> ../init.d/rxapid
    /etc/rc5.d/S89rxapid -> ../init.d/rxapid
    Starting rxapi:

    Processing triggers for libc6 ...
    ldconfig deferred processing now taking place
    root@Osprey:/home/miesfeld/work.ooRexx/wc#

    I put a note in the read me and in the release notes that we don't support 'update' type installations on any platform; that you need to uninstall a previous version and then install the new version.

    "Note that an upgrade type installation is not supported on any platform. If a previous version of ooRexx is installed, it should be completely uninstalled prior to installing 4.0.0. Failure to completely uninstall the previous version will produce unpredictable results."

     
  • Mark Hessling

    Mark Hessling - 2009-07-02

    Hi Mark,

    Can I suggest that you also add this constraint (of no update support) to the description section of the DEB? For a non-technical user of ubuntu at least, the normal process for installing from a DEB is to download the DEB and double-click it and have the Package Installer run. If the requirement to uninstall the previous version were in the description, or better still if there were some way to stop the installer from attempting the installation and informing the user that would be even better.

    Cheers, Mark

     
  • Mark Miesfeld

    Mark Miesfeld - 2009-07-02

    Thanks Mark that's a good suggestion.

    I'm really not too familar with debian-based systems, I sort of just bumle through it. I'll do a little research and see if I can get the package to be a little more user friendly. I certainly can change the package description to let the user know they need to uninstall the previous version first.

     
  • Mark Miesfeld

    Mark Miesfeld - 2009-07-02

    Committed revision 4868.

    That commit adds text explaining any previous ooRexx package needs to be removed first to the description section of the DEB.

    I'm going to change this to a request for enhancement rather than a bug.

     
  • Mark Miesfeld

    Mark Miesfeld - 2009-07-02

    "For a non-technical user of ubuntu at least, the normal process for installing from a DEB is to download the DEB and double-click it and have the Package Installer run."

    It would be good for the installer to stop and inform the user that a previous ooRexx package needs to be uninstalled before installing the current package.

    Or

    Maybe it is possible to rework the DEB package so that it automatically uninstalls the previous package then installs the new package. Similar to what the Windows installer does.

     
  • Mark Miesfeld

    Mark Miesfeld - 2009-08-06

    In addition, error messages during install could be fixed rather than suppressed:

    2) Missing LSB information noted for rxapi.d.

    Messages received:

    Unpacking oorexx (from oorexx-4.0.0-5015-rc3.i386.deb) ...
    Setting up oorexx (4.0.0-5015) ...
    update-rc.d: warning: /etc/init.d/rxapid missing LSB information
    update-rc.d: see http://wiki.debian.org/LSBInitScripts

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks