← Back to team overview

desktop-packages team mailing list archive

[Bug 1207920] Re: postgresql-9.1 fails to remove: Error: /var/lib/postgresql/9.1/main is not accessible or does not exist

 

here is the output of "pg_lsclusters"

Version Cluster   Port Status Owner    Data directory                     Log file
9.1     main      5432 down   <unknown> /var/lib/postgresql/9.1/main       /var/log/postgresql/postgresql-9.1-main.log

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to postgresql-9.1 in Ubuntu.
https://bugs.launchpad.net/bugs/1207920

Title:
  postgresql-9.1 fails to remove: Error: /var/lib/postgresql/9.1/main is
  not accessible or does not exist

Status in postgresql-9.1 package in Ubuntu:
  Expired

Bug description:
  root@b7gray:~# apt-get purge postgresql-9.1
  Lendo listas de pacotes... Pronto
  Construindo árvore de dependências       
  Lendo informação de estado... Pronto
  Os pacotes a seguir serão REMOVIDOS:
    postgresql-9.1*
  0 pacotes atualizados, 0 pacotes novos instalados, 1 a serem removidos e 0 não atualizados.
  1 pacotes não totalmente instalados ou removidos.
  Depois desta operação, 11,7 MB de espaço em disco serão liberados.
  Você quer continuar [S/n]? s
  (Lendo banco de dados ... 339456 ficheiros e directórios actualmente instalados.)
  Removendo postgresql-9.1 ...
   * Stopping PostgreSQL 9.1 database server                                                                              * Error: /var/lib/postgresql/9.1/main is not accessible or does not exist
                                                                                                                  [fail]
  invoke-rc.d: initscript postgresql, action "stop" failed.
  dpkg: erro ao processar postgresql-9.1 (--purge):
   sub-processo script pre-removal instalado retornou estado de saída de erro 1
  Nenhum relatório do apport gravado porque MaxReports já foi atingido
                                                                      Erros foram encontrados durante o processamento de:
   postgresql-9.1
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  ProblemType: Package
  DistroRelease: Ubuntu 13.04
  Package: postgresql-9.1 9.1.9-1ubuntu1
  ProcVersionSignature: Ubuntu 3.8.0-26.38-generic 3.8.13.2
  Uname: Linux 3.8.0-26-generic x86_64
  NonfreeKernelModules: wl
  ApportVersion: 2.9.2-0ubuntu8.1
  AptOrdering:
   postgresql-9.1: Purge
   postgresql-client-9.1: Purge
  Architecture: amd64
  Date: Fri Aug  2 19:10:06 2013
  DpkgTerminalLog:
   Removendo postgresql-9.1 ...
   /var/lib/dpkg/info/postgresql-9.1.prerm: 9: .: Can't open /usr/share/postgresql-common/maintscripts-functions
   dpkg: erro ao processar postgresql-9.1 (--purge):
    sub-processo script pre-removal instalado retornou estado de saída de erro 2
  DuplicateSignature: package:postgresql-9.1:9.1.9-1ubuntu1:sub-processo script pre-removal instalado retornou estado de saída de erro 2
  ErrorMessage: sub-processo script pre-removal instalado retornou estado de saída de erro 2
  InstallationDate: Installed on 2013-06-19 (44 days ago)
  InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
  MarkForUpload: True
  SourcePackage: postgresql-9.1
  Title: package postgresql-9.1 9.1.9-1ubuntu1 failed to install/upgrade: sub-processo script pre-removal instalado retornou estado de saída de erro 2
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postgresql-9.1/+bug/1207920/+subscriptions