[sisyphus] dist-upgrade, libpq5.1 и postgresql8.3-server (error: execution of %pre scriptlet)

Alexey Tourbin at на altlinux.ru
Ср Июл 1 14:19:23 MSD 2009


On Wed, Jul 01, 2009 at 02:55:31PM +0500, Sergey wrote:
> Что-то вылезла вот такая штука (это апгрейд где-то двух-трёхмесячного Сизифа
> до текущего):
> 
> [root на traffic3 /]# apt-get --fix-broken install
> Reading Package Lists... Done
> Building Dependency Tree... Done
> Correcting dependencies... Done
> The following extra packages will be installed:
>   libpq5.1 postgresql8.3-server
> The following packages will be upgraded
>   libpq5.1 postgresql8.3-server
> 2 upgraded, 0 newly installed, 0 removed and 0 not upgraded.
> Need to get 0B/2850kB of archives.
> After unpacking 8834B of additional disk space will be used.
> Do you want to continue? [Y/n] Y
> Committing changes...
> Preparing...                 ############################################################################################ [100%]
> error: execution of %pre scriptlet from libpq5.1-8.3.7-alt2 failed, exit status 1
> error:   install: %pre scriptlet failed (2), skipping libpq5.1-8.3.7-alt2
> error: execution of %pre scriptlet from postgresql8.3-server-8.3.7-alt2 failed, exit status 1
> error:   install: %pre scriptlet failed (2), skipping postgresql8.3-server-8.3.7-alt2
> E: Some errors occurred while running transaction

$ rpm -qp --scripts /ALT/Sisyphus/files/x86_64/RPMS/libpq5.1-8.3.7-alt2.x86_64.rpm
preinstall scriptlet (through /bin/sh):
exec &>/dev/null
if [ $1 -gt 1 -a -d /usr/lib64/pgsql ]
then
    if [ ! -d /usr/lib64/pgsql/backup ]; then
        mkdir -p /usr/lib64/pgsql/backup
    fi
    cd /usr/lib64 > /dev/null
    cp -fp libpq.* /usr/lib64/pgsql/backup
fi
$ 

Не надо было такой %pre-скрипт делать.
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : отсутствует
Тип     : application/pgp-signature
Размер  : 197 байтов
Описание: отсутствует
Url     : <http://lists.altlinux.org/pipermail/sisyphus/attachments/20090701/06c000bf/attachment.bin>


Подробная информация о списке рассылки Sisyphus