RPM package not installing

Fraser Campbell fraser-eicrhRFjby5dCsDujFhwbypxlwaOVQ5f at public.gmane.org
Wed Jul 25 22:03:36 UTC 2007


The upgrade is failing because the preinstall scripts in the RPM expect to 
find a running postgres databse and to do a dump of the data.

If you do have an existing database it would be a very good idea to backup 
(manually) prior to upgrading.

Perhaps it's as simple as starting your existing postgres install before doing 
this update.

If you don't have data that you care about remove your existing RPMs and do 
install (-i) not update (-U).

If the thing still bites you then you can run rpm install (or update, erase, 
etc.) with --noscripts option (I don't recommend that unless you're really, 
really stuck.

I didn't really read your whole mail so take several grains of salt with 
anything I suggested ;-)

-- 
Fraser Campbell <fraser-Txk5XLRqZ6CsTnJN9+BGXg at public.gmane.org>
Georgetown, Ontario, Canada

On Wednesday 25 July 2007 12:55:19 Gary Layng wrote:
> Yes, and with some help from linuxquestions.org, I managed to get this far:
>
>
> ftp://ftp.ps.pl/mirrors/Mandrakelinux/official/2007.0/i586/media/main/updat
>es/postgresql-server-8.1.9-0.1mdv2007.0.i586.rpm installing
> postgresql-server-8.1.9-0.1mdv2007.0.i586.rpm
> from /var/cache/urpmi/rpms
> Preparing...                    
> #############################################
>
> *******************
> * Starting backup *
> *******************
> Cannot find postgresql service
> Usage: service -[Rfshv] SERVICE ARGUMENTS
>         -f|--full-restart:      Do a fullrestart of the service.
>         -R|--full-restart-all:  Do a fullrestart of all services currently
> running.
>         -s|--status-all:        Print a status of all services.
>         -d|--debug:             Launch with debug.
>         -h|--help:              This help.
> Backuping configuration
> into /var/lib/pgsql/backups/config.8.1.9-0.1mdv2007.0.tar
> Overriding pg_hba.conf to allow local connection
> Cannot find postgresql service
> Usage: service -[Rfshv] SERVICE ARGUMENTS
>         -f|--full-restart:      Do a fullrestart of the service.
>         -R|--full-restart-all:  Do a fullrestart of all services currently
> running.
>         -s|--status-all:        Print a status of all services.
>         -d|--debug:             Launch with debug.
>         -h|--help:              This help.
> Dumping database into /var/lib/pgsql/backups/db.8.1.9-0.1mdv2007.0.gz
> pg_dumpall: could not connect to database "template1": could not connect to
> server: No such file or directory
>         Is the server running locally and accepting
>         connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
>
> psql: could not connect to server: No such file or directory
>         Is the server running locally and accepting
>         connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
> error: %pre(postgresql-server-8.1.9-0.1mdv2007.0.i586) scriptlet failed,
> exit status 1
> error:   install: %pre scriptlet failed (2), skipping
> postgresql-server-8.1.9-0.1mdv2007.0
> ----------------------------------------------------------------------
> More information on package postgresql-server-8.1.9-0.1mdv2007.0.i586
> ----------------------------------------------------------------------
>
> On Tuesday 24 July 2007 23:21, Jason Carson wrote:
> > Did you try installing the package from the command line?
> >
> > > I'm trying to install the Postgresql server
> > > package "postgresql-server-8.1.9-0.1mdv2007.0".
> > >
> > > Every time after I try to load the package, the Software Management
> > > application returns that as one of the packages that hasn't been
> > > installed,
> > > but is still available to install.
> > >
> > > There are supposed to be release notes with this package, but clicking
> > > on that
> > > gives me a blank field, which may or may not be a symptom of my
> > > problem.
> > >
> > > I'm running Powerpack 2007 on 32-bit using a Pentium 3 (ancient but
> > > hey, it
> > > works).
> > >
> > > All of the other available packages for Postgresql are installed.
> > >
> > > Any suggestions or answers will be gratefully received. Thanks!
> > > --
> > > there's no place like 127.0.0.1
> > > --
> > > The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> > > TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> > > How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
> >
> > --
> > The Toronto Linux Users Group.      Meetings: http://gtalug.org/
> > TLUG requests: Linux topics, No HTML, wrap text below 80 columns
> > How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists


--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list