dbTalk Databases Forums  

[Postgresql8.1 & Ubuntu6] removing postgres

comp.databases.postgresql comp.databases.postgresql


Discuss [Postgresql8.1 & Ubuntu6] removing postgres in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Henning Bredel
 
Posts: n/a

Default [Postgresql8.1 & Ubuntu6] removing postgres - 03-09-2007 , 09:32 AM






apologize for cross-posting

Hey there,

i am in trouble with postgres on a linux
platform, because i am quite new with both.

(i guess i cannot say, if the problem i make
is more linux or a postgresql like.)

i wanted to remove my installation of pg and
get a new one for reasons which are no longer
important :-).

using ubuntu, the

$ sudo apt-get remove postgresql

command returns the error message:
¯¯¯¯¯¯`
Reading package lists... Done
Building dependency tree... Done
Package postgresql is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
4 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up postgresql-common (53ubuntu3) ...
(*)
chown: `postgresostgres': invalid group
dpkg: error processing postgresql-common (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql-7.4:
postgresql-7.4 depends on postgresql-common (>= 24); however:
Package postgresql-common is not configured yet.
dpkg: error processing postgresql-7.4 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql-8.1:
postgresql-8.1 depends on postgresql-common (>= 39); however:
Package postgresql-common is not configured yet.
dpkg: error processing postgresql-8.1 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of
postgresql-contrib-8.1:
postgresql-contrib-8.1 depends on postgresql-8.1; however:
Package postgresql-8.1 is not configured yet.
postgresql-contrib-8.1 depends on postgresql-common (>= 39); however:
Package postgresql-common is not configured yet.
dpkg: error processing postgresql-contrib-8.1 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
postgresql-common
postgresql-7.4
postgresql-8.1
postgresql-contrib-8.1
E: Sub-process /usr/bin/dpkg returned an error code (1)

`---------

i guess the problem has s.th. to do with the
message
"chown: `postgresostgres': invalid group"
at line (*)

do you know this problem when removing postgresql on
linux-platforms?

thanks in advance

henning

Reply With Quote
  #2  
Old   
Henning Bredel
 
Posts: n/a

Default Re: [Postgresql8.1 & Ubuntu6] removing postgres - 03-09-2007 , 10:48 AM






Henning Bredel schrieb:
Quote:
apologize for cross-posting

Hey there,

i am in trouble with postgres on a linux
platform, because i am quite new with both.

(i guess i cannot say, if the problem i make
is more linux or a postgresql like.)

i wanted to remove my installation of pg and
get a new one for reasons which are no longer
important :-).

using ubuntu, the

$ sudo apt-get remove postgresql

command returns the error message:
¯¯¯¯¯¯`
Reading package lists... Done
Building dependency tree... Done
Package postgresql is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
4 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up postgresql-common (53ubuntu3) ...
(*)
chown: `postgresostgres': invalid group
dpkg: error processing postgresql-common (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql-7.4:
postgresql-7.4 depends on postgresql-common (>= 24); however:
Package postgresql-common is not configured yet.
dpkg: error processing postgresql-7.4 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql-8.1:
postgresql-8.1 depends on postgresql-common (>= 39); however:
Package postgresql-common is not configured yet.
dpkg: error processing postgresql-8.1 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of
postgresql-contrib-8.1:
postgresql-contrib-8.1 depends on postgresql-8.1; however:
Package postgresql-8.1 is not configured yet.
postgresql-contrib-8.1 depends on postgresql-common (>= 39); however:
Package postgresql-common is not configured yet.
dpkg: error processing postgresql-contrib-8.1 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
postgresql-common
postgresql-7.4
postgresql-8.1
postgresql-contrib-8.1
E: Sub-process /usr/bin/dpkg returned an error code (1)

`---------

i guess the problem has s.th. to do with the
message
"chown: `postgresostgres': invalid group"
at line (*)

do you know this problem when removing postgresql on
linux-platforms?

thanks in advance

henning
so,

now i have removed postgres* with dselect (purge option
enabled), so no config file should remain.

But my reinstallation fails on (nearly) the same error:

¯¯¯¯¯¯`
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
postgresql-client-8.1 postgresql-client-common postgresql-common
Suggested packages:
oidentd ident-server postgresql-doc-8.1
The following NEW packages will be installed
postgresql-8.1 postgresql-client-8.1 postgresql-client-common
postgresql-common
0 upgraded, 4 newly installed, 0 to remove and 10 not upgraded.
Need to get 0B/3868kB of archives.
After unpacking 17.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously deselected package postgresql-client-common.
(Reading database ... 82293 files and directories currently installed.)
Unpacking postgresql-client-common (from
..../postgresql-client-common_53ubuntu3_all.deb) ...
Selecting previously deselected package postgresql-client-8.1.
Unpacking postgresql-client-8.1 (from
..../postgresql-client-8.1_8.1.8-0ubuntu6.06.1_i386.deb) ...
Selecting previously deselected package postgresql-common.
Unpacking postgresql-common (from

.../postgresql-common_53ubuntu3_all.deb) ...
Selecting previously deselected package postgresql-8.1.
Unpacking postgresql-8.1 (from

..../postgresql-8.1_8.1.8-0ubuntu6.06.1_i386.deb) ...
Setting up postgresql-client-common (53ubuntu3) ...
Setting up postgresql-client-8.1 (8.1.8-0ubuntu6.06.1) ...

Setting up postgresql-common (53ubuntu3) ...
(*)
chown: `postgresostgres': invalid group
dpkg: error processing postgresql-common (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql-8.1:
postgresql-8.1 depends on postgresql-common (>= 39); however:
Package postgresql-common is not configured yet.
dpkg: error processing postgresql-8.1 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
postgresql-common
postgresql-8.1
E: Sub-process /usr/bin/dpkg returned an error code (1)

`---------

As you can see, there is the same message in
line (*) . . .

before trying to remove/reinstall pg, i followed
an installation tutorial on

http://www.selflinux.org/selflinux/h...tgresql02.html

at the bottom it is written:

¯¯¯¯¯¯`
root@linux # mkdir /usr/local/pgsql/data
root@linux # chown postgres /usr/local/pgsql/data
root@linux # su - postgres
root@linux postgres# initdb --pwprompt -D /usr/local/pgsql/data

`---------

do i have to consider s.th. which i cannot know
as a beginner in linux and postgres?

no google search or documentation helped me with
this prob . . . or i have no luck with search-words.

thanks again

henning


Reply With Quote
  #3  
Old   
Henning Bredel
 
Posts: n/a

Default Re: [Postgresql8.1 & Ubuntu6] removing postgres - 03-09-2007 , 11:29 AM



Henning Bredel schrieb:
Quote:
Henning Bredel schrieb:
apologize for cross-posting

Hey there,

i am in trouble with postgres on a linux
platform, because i am quite new with both.

(i guess i cannot say, if the problem i make
is more linux or a postgresql like.)

i wanted to remove my installation of pg and
get a new one for reasons which are no longer
important :-).

using ubuntu, the

$ sudo apt-get remove postgresql

command returns the error message:
¯¯¯¯¯¯`
Reading package lists... Done
Building dependency tree... Done
Package postgresql is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
4 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up postgresql-common (53ubuntu3) ...
(*)
chown: `postgresostgres': invalid group
dpkg: error processing postgresql-common (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql-7.4:
postgresql-7.4 depends on postgresql-common (>= 24); however:
Package postgresql-common is not configured yet.
dpkg: error processing postgresql-7.4 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of postgresql-8.1:
postgresql-8.1 depends on postgresql-common (>= 39); however:
Package postgresql-common is not configured yet.
dpkg: error processing postgresql-8.1 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of
postgresql-contrib-8.1:
postgresql-contrib-8.1 depends on postgresql-8.1; however:
Package postgresql-8.1 is not configured yet.
postgresql-contrib-8.1 depends on postgresql-common (>= 39); however:
Package postgresql-common is not configured yet.
dpkg: error processing postgresql-contrib-8.1 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
postgresql-common
postgresql-7.4
postgresql-8.1
postgresql-contrib-8.1
E: Sub-process /usr/bin/dpkg returned an error code (1)

`---------

i guess the problem has s.th. to do with the
message
"chown: `postgresostgres': invalid group"
at line (*)

do you know this problem when removing postgresql on
linux-platforms?

thanks in advance

henning

so,

now i have removed postgres* with dselect (purge option
enabled), so no config file should remain.

But my reinstallation fails on (nearly) the same error:

¯¯¯¯¯¯`
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
postgresql-client-8.1 postgresql-client-common postgresql-common
Suggested packages:
oidentd ident-server postgresql-doc-8.1
The following NEW packages will be installed
postgresql-8.1 postgresql-client-8.1 postgresql-client-common
postgresql-common
0 upgraded, 4 newly installed, 0 to remove and 10 not upgraded.
Need to get 0B/3868kB of archives.
After unpacking 17.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously deselected package postgresql-client-common.
(Reading database ... 82293 files and directories currently installed.)
Unpacking postgresql-client-common (from
.../postgresql-client-common_53ubuntu3_all.deb) ...
Selecting previously deselected package postgresql-client-8.1.
Unpacking postgresql-client-8.1 (from
.../postgresql-client-8.1_8.1.8-0ubuntu6.06.1_i386.deb) ...
Selecting previously deselected package postgresql-common.
Unpacking postgresql-common (from

.../postgresql-common_53ubuntu3_all.deb) ...
Selecting previously deselected package postgresql-8.1.
Unpacking postgresql-8.1 (from

.../postgresql-8.1_8.1.8-0ubuntu6.06.1_i386.deb) ...
Setting up postgresql-client-common (53ubuntu3) ...
Setting up postgresql-client-8.1 (8.1.8-0ubuntu6.06.1) ...

Setting up postgresql-common (53ubuntu3) ...
(*)
chown: `postgresostgres': invalid group
dpkg: error processing postgresql-common (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of postgresql-8.1:
postgresql-8.1 depends on postgresql-common (>= 39); however:
Package postgresql-common is not configured yet.
dpkg: error processing postgresql-8.1 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
postgresql-common
postgresql-8.1
E: Sub-process /usr/bin/dpkg returned an error code (1)

`---------

As you can see, there is the same message in
line (*) . . .

before trying to remove/reinstall pg, i followed
an installation tutorial on

http://www.selflinux.org/selflinux/h...tgresql02.html

at the bottom it is written:

¯¯¯¯¯¯`
root@linux # mkdir /usr/local/pgsql/data
root@linux # chown postgres /usr/local/pgsql/data
root@linux # su - postgres
root@linux postgres# initdb --pwprompt -D /usr/local/pgsql/data

`---------

do i have to consider s.th. which i cannot know
as a beginner in linux and postgres?

no google search or documentation helped me with
this prob . . . or i have no luck with search-words.

thanks again

henning
i suddenly removed postgresql with

$ sudo apt-get remove --purge postgresql*

which didn´t work before (?!). Nevertheless, i could
not install the postgresql-package again.

But then ubuntu was setting up more than in the last
tries -- then the idea: delete user 'postgres', which
was added sometimes before . . .

Yes -- that was the problem :-).

$ sudo userdel postgres

did its work! -- the problem was the failure in
configuring postgresql-common and postgresql-8.1 !

after running

$ sudo dpkg --configure postgresql-common
$ sudo dpkg --configure postgresql-8.1

postgresql is now re-installed again.

this for closing this posting .. perhaps it helps
someone, who is the same blind i am sometimes 8-)

greetz

h


Reply With Quote
  #4  
Old   
CBFalconer
 
Posts: n/a

Default Re: [Postgresql8.1 & Ubuntu6] removing postgres - 03-09-2007 , 04:04 PM



Henning Bredel wrote:
Quote:
.... snip ...

do i have to consider s.th. which i cannot know
as a beginner in linux and postgres?
What is "s.th."? I assume some sort of configuration file.

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>


--
Posted via a free Usenet account from http://www.teranews.com



Reply With Quote
  #5  
Old   
Henning Bredel
 
Posts: n/a

Default Re: [Postgresql8.1 & Ubuntu6] removing postgres - 03-09-2007 , 04:12 PM



CBFalconer schrieb:
Quote:
Henning Bredel wrote:
... snip ...
do i have to consider s.th. which i cannot know
as a beginner in linux and postgres?

What is "s.th."? I assume some sort of configuration file.

only an abbreviation ;-)

s.th. == something


Reply With Quote
  #6  
Old   
Lew
 
Posts: n/a

Default Re: [Postgresql8.1 & Ubuntu6] removing postgres - 03-09-2007 , 10:22 PM



Henning Bredel wrote:
Quote:
CBFalconer schrieb:
Henning Bredel wrote:
... snip ...
do i have to consider s.th. which i cannot know
as a beginner in linux and postgres?

What is "s.th."? I assume some sort of configuration file.

only an abbreviation ;-)

s.th. == something
Why are so many prejudiced against the use of words?

-- Lew


Reply With Quote
  #7  
Old   
Henning Bredel
 
Posts: n/a

Default Re: [Postgresql8.1 & Ubuntu6] removing postgres - 03-10-2007 , 04:25 AM



Lew schrieb:
Quote:
Henning Bredel wrote:
CBFalconer schrieb:
Henning Bredel wrote:
... snip ...
do i have to consider s.th. which i cannot know
as a beginner in linux and postgres?

What is "s.th."? I assume some sort of configuration file.

only an abbreviation ;-)

s.th. == something

Why are so many prejudiced against the use of words?

-- Lew
well, i think it is a quite popular abbreviation . . .

=> BTW <= i don´t know any newsgroup, where you /don´t/
use any abbreviation -- i am not against using
words.

greets

h


Reply With Quote
  #8  
Old   
jpd
 
Posts: n/a

Default Re: [Postgresql8.1 & Ubuntu6] removing postgres - 03-10-2007 , 05:18 AM



Begin <45f287d4$0$6394$9b4e6d93 (AT) newsspool2 (DOT) arcor-online.net>
On 2007-03-10, Henning Bredel <h.bredel (AT) gmx (DOT) de> wrote:
[snip: ``s.th.'']
Quote:
well, i think it is a quite popular abbreviation . . .
At least three posters disagree with you on that.


Quote:
=> BTW <= i don´t know any newsgroup, where you /don´t/
use any abbreviation -- i am not against using
words.
There are cases where one may use abbreviations. In general, though,
just spelling out the words is hard enough for most, so best put some
effort in that before venturing to figure out what are and what are not
acceptable abbreviations.


--
j p d (at) d s b (dot) t u d e l f t (dot) n l .
This message was originally posted on Usenet in plain text.
Any other representation, additions, or changes do not have my
consent and may be a violation of international copyright law.


Reply With Quote
  #9  
Old   
Henning Bredel
 
Posts: n/a

Default Re: [Postgresql8.1 & Ubuntu6] removing postgres - 03-10-2007 , 05:31 AM



jpd schrieb:
Quote:
Begin <45f287d4$0$6394$9b4e6d93 (AT) newsspool2 (DOT) arcor-online.net
On 2007-03-10, Henning Bredel <h.bredel (AT) gmx (DOT) de> wrote:
[snip: ``s.th.'']
well, i think it is a quite popular abbreviation . . .

At least three posters disagree with you on that.

Maybe you can ask for whom this is a popular abbreviation
and i guess you three (or some more) are the minority --
but when i am wrong: sorry sorry sorry.

Quote:
=> BTW <= i don´t know any newsgroup, where you /don´t/
use any abbreviation -- i am not against using
words.

There are cases where one may use abbreviations. In general, though,
just spelling out the words is hard enough for most, so best put some
effort in that before venturing to figure out what are and what are not
acceptable abbreviations.


Well, no problem -- but i hope you can see, there appear
always some missunderstandings, when talking in the net or
when people come from different countries or whatever.

i have no problem with giving an answere on that things
which were not understood. I always try to write under-
standable postings.

greetz

h

--


Reply With Quote
  #10  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: [Postgresql8.1 & Ubuntu6] removing postgres - 03-12-2007 , 03:36 AM



Henning Bredel <h.bredel (AT) gmx (DOT) de> wrote:
Quote:
Well, no problem -- but i hope you can see, there appear
always some missunderstandings, when talking in the net or
when people come from different countries or whatever.

i have no problem with giving an answere on that things
which were not understood. I always try to write under-
standable postings.
I am happy that you did not mind this bickering.

Thanks for sharing your experiences with PostgreSQL on Ubuntu!

Yours,
Laurenz Albe


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.