unmet dependencies: postgresql-contrib-9.1

Tom H tomh0665 at gmail.com
Wed Aug 20 07:53:10 UTC 2014


On Sat, Aug 16, 2014 at 1:13 AM, Sabniveesu Shashank <shashank at linux.com> wrote:
> On Thu, Aug 14, 2014 at 11:34 PM, Noah <noah-list at enabled.com> wrote:
>
> 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 ***

Running "apt-get autoclean" after "apt-get clean" doesn't make sense.

"clean" removes all downloaded deb files from "/var/cache/apt/archives/".

"autoclean" removes all downloaded deb files from
"/var/cache/apt/archives/" that are no longer downloadable from the
repositories.

Running "rm /var/cache/apt/archives/*" after running "apt-get clean"
doesn't make sense either. Not only won't there be any deb files there
to remove but that command won't delete files in
"/var/cache/apt/archives/partial/".

If you don't want to run "apt-get clean", you could replace it with
"find /var/cache/apt/archives -type f -delete".

(FTR, there's no relationship between "apt-get clean" and "apt-get
update". The latter downloads files to "/var/lib/apt/lists/".)




More information about the ubuntu-users mailing list