digiKam disaster

Liam Proven lproven at gmail.com
Tue Feb 11 11:54:15 UTC 2014


On 11 February 2014 07:54, Pete Smout <smoutpete at gmail.com> wrote:
>>> Oops sorry :) sudo apt-get -f install
>>
>> Is this to install, or done after install?
>
> This should force (-f) all dependencies and missing lib files that your
> system thinks it needs to be installed, hopefully ending any missing
> dependency errors!

`apt-get install -f` just means "fix". It tries to sort any dependency
problems by adding or removing dependencies without needing to also
add or remov any additional whole programs.

>>> Sudo apt-get configure -a
>
> oops sorry that should have been sudo dpkg configure -a (too early for
> me ;))
> that should configure all (-a) see

I was going to query that. I am not sure but I think you have still
given it wrongly. I think you are trying to say that Rikona should use
the `dpkg-reconfigure` command?

This generates fresh configuration files for an installed package.

However, what nobody has mentioned is `apt-get purge` which is a
useful command, which removes all config files for a program that has
been removed.

The sequence would normally go

[1] dpkg-reconfigure foo

# Write a fresh config for program `foo`

`foo` still not working? Then:

[2] apt-get install -f

`foo` still not working? Then:

[3]

apt-get remove foo

# uninstall program

apt-get autoremove

# uninstall any other programs nothing now depends upon

apt-get clean

# empty the APT cache

apt-get autoclean

# more APT housekeeping

apt-get purge

# delete config files for anything no longer installed

apt-get update

# refresh APT repository database

apt-get install foo -y

# reinstall a clean copy with any dependencies

-- 
Liam Proven * Profile: http://lproven.livejournal.com/profile
Email: lproven at cix.co.uk * GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: lproven at hotmail.com * Skype/AIM/Yahoo/LinkedIn: liamproven
Tel: +44 20-8685-0498 * Cell: +44 7939-087884




More information about the ubuntu-users mailing list