LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-04-2011, 03:52 AM   #1
Uaebuntu
Member
 
Registered: Feb 2011
Location: Dubai
Distribution: Unbuntu 14.04
Posts: 44

Rep: Reputation: 0
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.)
 
Old 06-04-2011, 04:01 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
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
 
Old 06-04-2011, 07:42 AM   #3
Uaebuntu
Member
 
Registered: Feb 2011
Location: Dubai
Distribution: Unbuntu 14.04
Posts: 44

Original Poster
Rep: Reputation: 0
Thanks

Seems to have done the job.

Code:
sudo apt-get -f upgrade
Thanks
 
Old 06-04-2011, 08:54 AM   #4
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hi,

You're welcome! Have fun with Linux.

Kind regards,

Eric
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux People need to build a new "old-lady Mint-OS".. "Mint Julep"... Cosmicb LQ Suggestions & Feedback 2 12-17-2009 05:36 AM
Do i need "RPM Packages" or "SuSe Source code packages" Donati Linux - Software 3 03-19-2009 08:32 PM
"Broken" envirnment variable (MANPATH) and "/etc/profile.d" question. ErV Slackware 3 03-20-2007 10:42 AM


All times are GMT -5. The time now is 05:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration