unmet dependencies: postgresql-contrib-9.1

Noah noah-list at enabled.com
Sun Aug 17 19:10:04 UTC 2014


Hi there,

here is the current list of things I did and the suggested courses of 
action still did not clear up the problem.

noah at virt:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
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.
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.
Do you want to continue [Y/n]? y
(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)
You have new mail in /var/mail/noah
noah at virt:~$  sudo apt-get clean
noah at virt:~$ sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
noah at virt:~$ sudo rm /var/cache/apt/archives/*
rm: cannot remove `/var/cache/apt/archives/partial': Is a directory
noah at virt:~$ sudo apt-get update
Hit http://us.archive.ubuntu.com precise Release.gpg
Hit http://us.archive.ubuntu.com precise-updates Release.gpg
Hit http://us.archive.ubuntu.com precise-backports Release.gpg
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://us.archive.ubuntu.com precise Release
Hit http://us.archive.ubuntu.com precise-updates Release
Hit http://security.ubuntu.com precise-security Release
Hit http://pkg.duosecurity.com precise Release.gpg
Hit http://us.archive.ubuntu.com precise-backports Release
Hit http://security.ubuntu.com precise-security/main Sources
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main amd64 Packages
Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/restricted Sources
Hit http://security.ubuntu.com precise-security/universe Sources
Hit http://security.ubuntu.com precise-security/multiverse Sources
Hit http://security.ubuntu.com precise-security/main amd64 Packages
Hit http://security.ubuntu.com precise-security/restricted amd64 Packages
Hit http://security.ubuntu.com precise-security/universe amd64 Packages
Hit http://security.ubuntu.com precise-security/multiverse amd64 Packages
Hit http://security.ubuntu.com precise-security/main i386 Packages
Hit http://security.ubuntu.com precise-security/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Hit http://pkg.duosecurity.com precise Release
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/main Sources
Hit http://us.archive.ubuntu.com precise-updates/restricted Sources
Hit http://us.archive.ubuntu.com precise-updates/universe Sources
Hit http://us.archive.ubuntu.com precise-updates/multiverse Sources
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://pkg.duosecurity.com precise/main amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/main amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise-updates/main i386 Packages
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://pkg.duosecurity.com precise/main i386 Packages
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/main Sources
Hit http://us.archive.ubuntu.com precise-backports/restricted Sources
Hit http://us.archive.ubuntu.com precise-backports/universe Sources
Hit http://us.archive.ubuntu.com precise-backports/multiverse Sources
Hit http://us.archive.ubuntu.com precise-backports/main amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/multiverse 
TranslationIndex
Ign http://pkg.duosecurity.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/restricted 
TranslationIndex
Hit http://us.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Hit http://us.archive.ubuntu.com precise-updates/main Translation-en
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-backports/universe Translation-en
Ign http://pkg.duosecurity.com precise/main Translation-en_US
Ign http://pkg.duosecurity.com precise/main Translation-en
  sudo apt-get install -f  9%
Reading package lists... Done
noah at virt:~$  sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
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.
21 not fully installed or removed.
Need to get 4,310 kB of archives.
After this operation, 4,096 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main 
postgresql-9.1 amd64 9.1.14-0ubuntu0.12.04 [4,310 kB]
Fetched 4,310 kB in 2s (1,642 kB/s)
(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)
noah at virt:~$ sudo apt-get dist-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.
You have new mail in /var/mail/noah
noah at virt:~$


Cheers,
Noah



On 8/15/14 11:53 PM, Colin Law wrote:
> On 16 August 2014 06:13, Sabniveesu Shashank <shashank at linux.com> wrote:
>> 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!
>
> sudo apt-get dist-upgrade
> would also be a good idea to make sure everything already installed is
> up to date.
>
> Colin
>
>> *** Go ahead with whatever you want to install ***
>




More information about the ubuntu-users mailing list