unmet dependencies: postgresql-contrib-9.1

Sabniveesu Shashank shashank at linux.com
Sat Aug 16 05:13:58 UTC 2014


On Thu, Aug 14, 2014 at 11:34 PM, Noah <noah-list at enabled.com> wrote:

> Hi,
>
> I guess I am not clear what to force the upgrade
>
> noah at virt:~$ sudo apt-get install -f  postgresql-contrib-9.1
>
No!! Just "sudo apt-get install -f".

Don't get carried away by the word 'install'!
-f is a switch to 'apt-get install' that says "fix missing"

If that alone doesn't help, do the following:

1)  sudo apt-get clean              --     cleans up cache of "apt-get"
2) sudo apt-get autoclean         --     removes files temporarily
downloaded by "apt-get" (downloaded for installation)
3) sudo rm /var/cache/apt/archives/* -- removes all (including 'partial')
downloads by "apt-get"
4) sudo apt-get update                     --  build fresh and updated
cache of package information
*** Now your system would come to a predictable state ***
5) sudo apt-get install -f                    -- Just in case!
*** Go ahead with whatever you want to install ***


> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> postgresql-contrib-9.1 is already the newest version.
> postgresql-contrib-9.1 set to manually installed.
> You might want to run 'apt-get -f install' to correct these:
> The following packages have unmet dependencies:
>  postgresql-contrib-9.1 : Depends: postgresql-9.1 (=
> 9.1.14-0ubuntu0.12.04) but 9.1.13-0ubuntu0.12.04 is to be installed
> E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
> specify a solution).
> noah at virt:~$ sudo apt-get install -f  postgresql-9.1
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> 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.
> 21 not fully installed or removed.
> Need to get 0 B/4,310 kB of archives.
> After this operation, 4,096 B of additional disk space will be used.
> (Reading database ... 103613 files and directories currently installed.)
> Preparing to replace postgresql-9.1 9.1.13-0ubuntu0.12.04 (using
> .../postgresql-9.1_9.1.14-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.14-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.14-0ubuntu0.12.04_amd64.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>
> On 8/14/14 6:33 PM, Sabniveesu Shashank wrote:
>
>> On Thu, Aug 14, 2014 at 8:07 PM, Noah <noah-list at enabled.com
>> <mailto:noah-list at enabled.com>> wrote:
>>
>>     Hi there,
>>
>>     What is the best way to circumvent this issue and install
>>     postgresql-contrib-9.1
>>
>>     # apt-get upgrade
>>     Reading package lists... Done
>>     Building dependency tree
>>     Reading state information... Done
>>     You might want to run 'apt-get -f install' to correct these.
>>     The following packages have unmet dependencies:
>>       postgresql-contrib-9.1 : Depends: postgresql-9.1 (=
>>     9.1.14-0ubuntu0.12.04) but 9.1.13-0ubuntu0.12.04 is installed
>>     E: Unmet dependencies. Try using -f.
>>
>> .. says it all. Issue "sudo apt-get install -f"
>>
>>
>>     Cheers
>>
>>     --
>>     ubuntu-users mailing list
>>     ubuntu-users at lists.ubuntu.com <mailto:ubuntu-users at lists.ubuntu.com>
>>     Modify settings or unsubscribe at:
>>     https://lists.ubuntu.com/__mailman/listinfo/ubuntu-users
>>     <https://lists.ubuntu.com/mailman/listinfo/ubuntu-users>
>>
>>
>>
>>
>>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20140816/49f7940e/attachment.html>


More information about the ubuntu-users mailing list