> Error: Could not create log file
/var/log/postgresql/postgresql-9.1-main.log
Please give me the output of
ls -ld /var /var/log /var/log/postgresql/
** Changed in: postgresql-9.1 (Ubuntu)
Status: New => Incomplete
** Summary changed:
- package postgresql-9.1 9.1.10-0ubuntu12.04 failed to install/upgrade:
subprocess new pre-removal script returned error exit status 1
+ package postgresql-9.1 9.1.10-0ubuntu12.04 failed to install/upgrade: Could
not create log file /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/1258819
Title:
package postgresql-9.1 9.1.10-0ubuntu12.04 failed to install/upgrade:
Could not create log file /var/log/postgresql/postgresql-9.1-main.log
Status in “postgresql-9.1” package in Ubuntu:
Incomplete
Bug description:
$ lsb_release -rd
Description: Ubuntu 12.04.3 LTS
Release: 12.04
$ apt-cache policy postgresql-9.1
postgresql-9.1:
Installed: 9.1.10-0ubuntu12.04
Candidate: 9.1.11-0ubuntu0.12.04
Version table:
9.1.11-0ubuntu0.12.04 0
500 http://mirror.clibre.uqam.ca/ubuntu/ precise-proposed/main amd64
Packages
*** 9.1.10-0ubuntu12.04 0
500 http://mirror.clibre.uqam.ca/ubuntu/ precise-updates/main amd64
Packages
100 /var/lib/dpkg/status
9.1.9-0ubuntu12.04 0
500 http://mirror.clibre.uqam.ca/ubuntu/ precise-security/main amd64
Packages
9.1.3-2 0
500 http://mirror.clibre.uqam.ca/ubuntu/ precise/main amd64 Packages
uninstalled some apps from ubuntu software center among them a postgresql gui
manager (i forget the exact name)
now i try to do apt-get -f install and it fails.. i cannot do apt-get
upgrade ,apt-get update is fine.
here is the output i get from runnin sudo apt-get -f install
$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
vim-gui-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
postgresql-9.1
Suggested packages:
oidentd ident-server locales-all
The following packages will be upgraded:
postgresql-9.1
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0 B/4,295 kB of archives.
After this operation, 90.1 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 343038 files and directories currently installed.)
Preparing to replace postgresql-9.1 9.1.10-0ubuntu12.04 (using
.../postgresql-9.1_9.1.11-0ubuntu0.12.04_amd64.deb) ...
* Stopping PostgreSQL 9.1 database server
* Error: Could not create log file
/var/log/postgresql/postgresql-9.1-main.log
[fail]
invoke-rc.d: initscript postgresql, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
* Stopping PostgreSQL 9.1 database server
* Error: Could not create log file
/var/log/postgresql/postgresql-9.1-main.log
[fail]
invoke-rc.d: initscript postgresql, action "stop" failed.
dpkg: error processing
/var/cache/apt/archives/postgresql-9.1_9.1.11-0ubuntu0.12.04_amd64.deb
(--unpack):
subprocess new pre-removal script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/postgresql-9.1_9.1.11-0ubuntu0.12.04_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
the /var/log/postgresql/postgresql-9.1-main.log is empty and is not
writeable while trying to sudo gedit it..
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: postgresql-9.1 9.1.10-0ubuntu12.04
ProcVersionSignature: Ubuntu 3.2.0-58.88-generic 3.2.53
Uname: Linux 3.2.0-58-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.6
AptOrdering:
postgresql-9.1: Install
postgresql-9.1: Configure
postgresql-contrib-9.1: Configure
Architecture: amd64
Date: Sat Dec 7 12:48:53 2013
DuplicateSignature: package:postgresql-9.1:9.1.10-0ubuntu12.04:subprocess new
pre-removal script returned error exit status 1
ErrorMessage: subprocess new pre-removal script returned error exit status 1
MarkForUpload: True
SourcePackage: postgresql-9.1
Title: package postgresql-9.1 9.1.10-0ubuntu12.04 failed to install/upgrade:
subprocess new pre-removal script returned error exit status 1
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/1258819/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp