Notices


Reply
Thread Tools
Posts: 286 | Thanked: 117 times | Joined on Jan 2010
#1
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..

Last edited by crash16; 2010-06-12 at 23:51.
 

The Following User Says Thank You to crash16 For This Useful Post:
jaeezzy's Avatar
Posts: 664 | Thanked: 160 times | Joined on Jul 2008 @ Australia
#2
Originally Posted by crash16 View Post
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
 

The Following User Says Thank You to jaeezzy For This Useful Post:
Posts: 286 | Thanked: 117 times | Joined on Jan 2010
#3
Originally Posted by jaeezzy View Post
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..
 
Posts: 286 | Thanked: 117 times | Joined on Jan 2010
#4
i still have the same error
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#5
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:
 

The Following User Says Thank You to MohammadAG For This Useful Post:
Posts: 286 | Thanked: 117 times | Joined on Jan 2010
#6
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
 
Posts: 286 | Thanked: 117 times | Joined on Jan 2010
#7
i can't see anything wrong with the prerm. Anyway as i know this script is executed only when the package is uninstalled..
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:12.