poldek install of postgresql-8.3.1-1.i686.rpm fails |
Autor |
Wiadomość |
max
Dołączył: 07 Lip 2005 Posty: 13
|
Wysłany: 25 Maj 2008, 16:41 poldek install of postgresql-8.3.1-1.i686.rpm fails
|
|
|
Hi,
While trying to install postgres the following happened
There are 3 packages to install (2 marked by dependencies):
I postgresql-8.3.1-1.i686
D postgresql-clients-8.3.1-1.i686, postgresql-libs-8.3.1-1.i686
Preparing... ################# [100%]
1:postgresql-libs ################ [ 33%]
2:postgresql-clients ############### [ 67%]
Adding group postgres GID=88.
Adding user postgres UID=88.
Usage: useradd [options] LOGIN
error: %pre(postgresql-8.3.1-1.i686) scriptlet failed, exit status 2
error: install: %pre scriptlet failed (2), skipping postgresql-8.3.1-1
There was no postgres previously installed. Adding the user postgres fails, the why of this is not clear to me. What to do to troubleshoot/debug this?
I am using poldek 0.30 (snap20080225.00) and I am using ftp://ftp.th.pld-linux.org/dists/th as rpm source.
Max. |
|
|
|
 |
KrystianT
Distro: PLD 3.0
Pomógł: 189 razy Dołączył: 26 Paź 2005 Posty: 1920 Skąd: Kamionek
|
Wysłany: 25 Maj 2008, 22:48
|
|
|
Kod: | ls -l /bin/sh
lrwxrwxrwx 1 root root 3 maj 25 21:59 /bin/sh -> ksh |
Section %pre contain useradd -M (big leter M) perhaps it's the problem... |
_________________ Krystian T.
"Errare humanum est." |
|
|
|
 |
max
Dołączył: 07 Lip 2005 Posty: 13
|
Wysłany: 25 Maj 2008, 23:33
|
|
|
when I remove that link then still error:
poldek:/all-avail> install postgresql-8.3.1-1.i686
error: %pre(postgresql-8.3.1-1.i686) scriptlet failed, exit status 255
error: install: %pre scriptlet failed (2), skipping postgresql-8.3.1-1
When I link to /bin/sh to bash then I get:
Executing rpm --upgrade -vh --root /...
Preparing... ################ [100%]
Adding user postgres UID=88.
Usage: useradd [options] LOGIN
Th tcsh was not work at all. Does this still point the -M? |
|
|
|
 |
max
Dołączył: 07 Lip 2005 Posty: 13
|
Wysłany: 26 Maj 2008, 10:21
|
|
|
indeed the useradd tool only knows about -m and not -M. Is there a way I can solve this spec file problem locally? How to inform the folks that write the spec files? |
|
|
|
 |
KrystianT
Distro: PLD 3.0
Pomógł: 189 razy Dołączył: 26 Paź 2005 Posty: 1920 Skąd: Kamionek
|
Wysłany: 26 Maj 2008, 14:01
|
|
|
Have you pwdutils? |
_________________ Krystian T.
"Errare humanum est." |
|
|
|
 |
max
Dołączył: 07 Lip 2005 Posty: 13
|
Wysłany: 26 Maj 2008, 14:19
|
|
|
magic occurred pwdutils was missing. Installed that, and now postgress installed without a flaw. Thanks! Never would have found this myself. |
|
|
|
 |
|