[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: removing postgres



Thank You for Your time and answer, Jochen:

> Sthu Deus:
> > 
> > I can not remove the following:
> > 
> > $ sudo /usr/bin/dpkg -r postgresql-8.3 postgresql-client-8.3
> 
> Why do you use dpkg for that? Have you tried apt-get or aptitude? I
> guess they will do what you want to achieve.
> 
> J.

I've tried that already. Please check this:

The following packages will be REMOVED:
  postgresql-8.3 [8.3.11-0lenny1]  postgresql-client-8.3
[8.3.12-0lenny1] 0 packages upgraded, 0 newly installed, 2 to remove
and 0 not upgraded. Need to get 0B of archives. After unpacking 20.8MB
...
Removing postgresql-8.3 ...
/var/lib/dpkg/info/postgresql-8.3.prerm: line
17: /usr/share/postgresql-common/maintscripts-functions: No such file
or directory dpkg: error processing postgresql-8.3 (--remove):
subprocess pre-removal script returned error exit status 1 dpkg:
postgresql-client-8.3: dependency problems, but removing anyway as you
request: postgresql-8.3 depends on postgresql-client-8.3. Removing
postgresql-client-8.3 ... /var/lib/dpkg/info/postgresql-client-8.3.prerm:
line 8: /usr/share/postgresql-common/maintscripts-functions: No such
file or directory dpkg: error processing postgresql-client-8.3
(--remove): subprocess pre-removal script returned error exit status
1 /var/lib/dpkg/info/postgresql-client-8.3.postinst: line
5: /usr/share/postgresql-common/maintscripts-functions: No such file or
directory dpkg: error while cleaning up: subprocess post-installation
script returned error exit status 1 Errors were encountered while
processing: postgresql-8.3 postgresql-client-8.3
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done


Reply to: