ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] dist-upgrade, libpq5.1 и postgresql8.3-server (error: execution of %pre scriptlet)
Date: Wed, 1 Jul 2009 14:19:23 +0400
Message-ID: <20090701101923.GJ5988@altlinux.org> (raw)
In-Reply-To: <200907011455.32052.a_s_y@sama.ru>

[-- Attachment #1: Type: text/plain, Size: 1650 bytes --]

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-скрипт делать.

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2009-07-01 10:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-01  9:55 Sergey
2009-07-01 10:19 ` Alexey Tourbin [this message]
2009-07-01 11:03   ` Sergey
2009-07-01 12:01     ` Ivan Fedorov
2009-07-01 12:27       ` Sergey
2009-07-01 14:14         ` Ivan Fedorov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090701101923.GJ5988@altlinux.org \
    --to=at@altlinux.ru \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git