LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to repair "broken packages" in Mint 11 (https://www.linuxquestions.org/questions/linux-software-2/how-to-repair-broken-packages-in-mint-11-a-884468/)

Uaebuntu 06-04-2011 02:52 AM

How to repair "broken packages" in Mint 11
 
2.6.38-8-generic
Mint 11 32bit

I got an Upgrade manager notification in my panel so clicked it to see what needed upgrading. However when I went to upgrade I got an error message saying I had to fix broken packages first. See Screen shot. I opened Synaptic and this says there are no broken packages see synaptic screen shot...

Is there a CLI way to look at and repair installed packages?

(I checked other threads on LQ and found some advice for Fedora 8 which suggests running an rpm command, however rpm is not the package manager of choice for Mint.)

EricTRA 06-04-2011 03:01 AM

Hello,

Look at the man page for apt-get.
Quote:

-f, --fix-broken
Fix; attempt to correct a system with broken dependencies in place.
This option, when used with install/remove, can omit any packages
to permit APT to deduce a likely solution. If packages are
specified, these have to completely correct the problem. The option
is sometimes necessary when running APT for the first time; APT
itself does not allow broken package dependencies to exist on a
system. It is possible that a system's dependency structure can be
so corrupt as to require manual intervention (which usually means
using dselect(1) or dpkg --remove to eliminate some of the
offending packages). Use of this option together with -m may
produce an error in some situations. Configuration Item:
APT::Get::Fix-Broken.
If I'm not mistaking mintupdate is just another front-end for apt-get and packages are saved in /var/cache/apt/archive. So if the apt-get -f doesn't resolve your problem you might want to delete the files in that directory (not the partial directory itself but if there are files in there, delete those too), run apt-get update and upgrade again. See where that leads you.

Kind regards,

Eric

Uaebuntu 06-04-2011 06:42 AM

Thanks
 
Seems to have done the job.

Code:

sudo apt-get -f upgrade
Thanks

EricTRA 06-04-2011 07:54 AM

Hi,

You're welcome! Have fun with Linux.

Kind regards,

Eric


All times are GMT -5. The time now is 12:18 PM.