#1 Le 21/11/2008, à 08:23
- koyot
le sous-processus post-installation script a retourné une erreur
Bonjour !
Suite à l'installation d'un paquet "hrp", j'ai un message après chaque utilisation de Synaptic :
"le sous-processus post-installation script a retourné une erreur de sortie d'état 1"
J'ai trouvé une aide intéressante dans la doc Ubuntu, mais je ne comprends pas bien comment la mettre en oeuvre :
http://doc.ubuntu-fr.org/probleme_apt
J'édite le fichier :
gksu gedit /var/lib/dpkg/info/hrp.postinst
voici le fichier (désolé c'est un peu long) :
#!/bin/sh
set -e
# Automatically added by dh_desktop
if [ "$1" = "configure" ] && which update-desktop-database >/dev/null 2>&1 ; then
update-desktop-database -q
fi
# End automatically added section
# Automatically added by dh_icons
if which gtk-update-icon-cache >/dev/null 2>&1; then
for dir in /usr/share/icons/hicolor; do
gtk-update-icon-cache --force --quiet "$dir" || true
done
fi
# End automatically added section
# Automatically added by dh_makeshlibs
if [ "$1" = "configure" ]; then
ldconfig
fi
# End automatically added section
if [ "$1" = "configure" ]; then
echo
echo downloading High Resolution Pack please wait ...
echo If the installation fail then the download location may be not available, try later to reinstall this package.
echo
INSTALLDIR='/usr/local/share/games/eduke32'
cd
if [ -d $INSTALLDIR ];
then
echo 'Install directory aleady present'
else
if [ -d /usr/local/share/games ];
then
mkdir $INSTALLDIR
else
mkdir /usr/local/share/games
mkdir $INSTALLDIR
fi
fi
wget -c http://www.edgefiles.com/download/xfer.edgefiles.com/duke4.net/www/hrp/dn3d_hrp-27-04-2007.exe
7z e -r -y dn3d_hrp-27-04-2007.exe i *.zip *.grp
chmod a+r duke3d_hrp.zip maphacks.zip sd_duke.zip sd_duke.grp
mv -f duke3d_hrp.zip maphacks.zip sd_duke.zip sd_duke.grp $INSTALLDIR
wget -c http://www.edgefiles.com/download/xfer.edgefiles.com/duke4.net/www/nightfright/sd_duke_v1.2.4.exe
7z e -r -y sd_duke_v1.2.4.exe i sd_duke.zip sd_duke.grp
chmod a+r sd_duke.zip sd_duke.grp
mv -f sd_duke.zip sd_duke.grp $INSTALLDIR
wget -c http://www.edgefiles.com/download/xfer.edgefiles.com/duke4.net/www/nightfright/hrp_update.zip
chmod a+r hrp_update.zip
mv -f hrp_update.zip $INSTALLDIR
wget -c http://www.edgefiles.com/download/xfer.edgefiles.com/duke4.net/www/nightfright/maphacks.zip
chmod a+r maphacks.zip
mv -f maphacks.zip $INSTALLDIR
wget -c http://www.edgefiles.com/download/xfer.edgefiles.com/duke4.net/www/nightfright/eduke32_mus.zip
chmod a+r eduke32_mus.zip
mv -f eduke32_mus.zip $INSTALLDIR
rm -f sd_duke_v1.2.4.exe
rm -f dn3d_hrp-27-04-2007.exe
fi
et je ne sais pas où je dois rajouter
exit 0
?
un grand merci d'avance !
Hors ligne
#2 Le 28/11/2008, à 08:13
- koyot
Re : le sous-processus post-installation script a retourné une erreur
un petit up, ayant toujours le problème à chaque mise à jour du système... :-)
Hors ligne
#3 Le 19/01/2009, à 21:48
- Zakuya
Re : le sous-processus post-installation script a retourné une erreur
Yop, j'ai la solution, même si sa fait un moment, le problème personne ne la résolue.
sudo apt-get autoremove --purge hrp
Puis tu le réinstalle.
Vive Duke Nukem et a bas les .deb qui tire leurs source sur un serveur bidon.
Dernière modification par Zakuya (Le 28/02/2009, à 19:43)
KKK x64
Hors ligne