maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [help] postinst script error (https://talk.maemo.org/showthread.php?t=56029)

crash16 2010-06-12 23:45

[help] postinst script error
 
i am trying to move a file via postinst script and i keep getting this error when i try to install the deb file.

Code:

subprocess new pre-removal script returned error exit status 2
: command not foundblue-sky.postinst: line 2:
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 127

my postinst script:

Code:

#! /bin/sh -e

mv -f /usr/share/hildon-desktop/transitions.ini /usr/share/hildon-desktop/transitions-backedup.ini
mv -f /usr/share/themes/Blue-sky/transitions/* /usr/share/hildon-desktop/


THEMEDIR='/usr/share/themes/Blue-sky'

if [ ! -d $THEMEDIR ]; then

  exit 0

fi


hildon-theme-cacher $THEMEDIR



exit 0


.can't figure out what am i doing wrong..

jaeezzy 2010-06-12 23:58

Re: [help] postinst script error
 
Quote:

Originally Posted by crash16 (Post 712621)
i am trying to move a file via postinst script and i keep getting this error when i try to install the deb file.

Code:

#! /bin/sh -e

.can't figure out what am i doing wrong..

I think this line is the problem..
try:
Code:

#!/bin/sh
set -e


crash16 2010-06-13 00:02

Re: [help] postinst script error
 
Quote:

Originally Posted by jaeezzy (Post 712629)
I think this line is the problem..
try:
Code:

#!/bin/sh
set -e


i tryed without the '-e' and i still have the same error so i suppose that won't work with set -e as well. anyway i am compiling again..

crash16 2010-06-13 00:10

Re: [help] postinst script error
 
i still have the same error:(

MohammadAG 2010-06-13 00:20

Re: [help] postinst script error
 
Check your prerm script
subprocess new pre-removal script returned error exit status 2
It's trying to execute foundblue-sky.postinst for some reason
: command not foundblue-sky.postinst: line 2:

crash16 2010-06-13 00:23

Re: [help] postinst script error
 
my prerm script:

Code:

#! /bin/sh



rm -rf /usr/share/themes/Blue-sky/gtk-2.0/*.cache

rm -rf /usr/share/icons/blue-sky-icons

rm -rf /usr/share/hildon-desktop/transitions.ini

mv /usr/share/hildon-desktop/transitions-backedup.ini /usr/share/hildon-desktop/transitions.ini



if [ "`readlink /etc/hildon/theme`" = /usr/share/themes/Blue-sky ]; then

  if [ -x /usr/bin/personalisation ]; then

          /usr/bin/personalisation /usr/share/themes/default

  fi

fi


crash16 2010-06-13 00:26

Re: [help] postinst script error
 
i can't see anything wrong with the prerm. Anyway as i know this script is executed only when the package is uninstalled..:(


All times are GMT. The time now is 19:42.

vBulletin® Version 3.8.8