Public bug reported:

Binary package hint: postgresql-8.1

Hello, I am currently using Kubuntu Dapper Drake and I've installed the
package postgresql-8.1 via the Adept package manager, but an error
ocurred. Now I cannot re-install the package nor can I remove it.

When I type apt-get install postgresql-8.1 in the prompt or when I
install another package I get this error message:

(Reading database ... 75947 files and directories currently installed.)
Preparing to replace postgresql-8.1 8.1.4-0ubuntu1 (using 
postgresql-8.1_8.1.4-0ubuntu1_i386.deb) ...
 * Stopping PostgreSQL 8.1 database server                                      
                            * Error: specified cluster does not exist
                                                                                
                    [fail]
invoke-rc.d: initscript postgresql-8.1, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
 * Stopping PostgreSQL 8.1 database server                                      
                            * Error: specified cluster does not exist
                                                                                
                    [fail]
invoke-rc.d: initscript postgresql-8.1, action "stop" failed.
dpkg: error processing postgresql-8.1_8.1.4-0ubuntu1_i386.deb (--install):
 subprocess new pre-removal script returned error exit status 1
 * Starting PostgreSQL 8.1 database server                                      
                            * Error: specified cluster does not exist
                                                                                
                    [fail]
invoke-rc.d: initscript postgresql-8.1, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 postgresql-8.1_8.1.4-0ubuntu1_i386.deb

When I try to remove it I get this error message:

Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  postgresql-8.1
0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.
14 not fully installed or removed.
Need to get 0B of archives.
After unpacking 12.9MB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: error processing postgresql-8.1 (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Aborted
[EMAIL PROTECTED]:~# Errors were encountered while processing:
 postgresql-8.1

I've also tryed:
apt-get --reinstall install postgresql-8.1
apt-get --reinstall -f install postgresql-8.1
apt-get -f install postgresql-8.1
dpkg -i postgresql-8.1
dpkg -i --force-all postgresql-8.1
But all ended up with the same error message.

When I try to remove the package through apt-get remove postgresql-8.1 I
get:

Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  postgresql-8.1
0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded.
14 not fully installed or removed.
Need to get 0B of archives.
After unpacking 12.9MB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: error processing postgresql-8.1 (--remove):
 Package is in a very bad inconsistent state - you should
 reinstall it before attempting a removal.
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct NULL not valid
Aborted
[EMAIL PROTECTED]:~# Errors were encountered while processing:
 postgresql-8.1

I've also tryed:
apt-get remove -f --purge postgresql-8.1
apt-get remove -f postgresql-8.1
apt-get remove -f postgresql-8.1
dpkg -r --force-all postgresql-8.1
dpkg -P --force-all postgresql-8.1
dpkg -r postgresql-8.1
dpkg -P postgresql-8.1
But all ended with the same result.

Thank you,
Komyg

** Affects: postgresql-8.1 (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

-- 
postgresql won't re-install or be removed
https://launchpad.net/bugs/55830

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to