LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-03-2015, 07:49 PM   #1
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Rep: Reputation: 6
broken pakage


[Linux Mint]

I was recently running an update when I started having network trouble. Anyway, now I have a broken package but I don't know which package it is or how to fix it. The error I got suggested that I use the broken filter but I can't get the synaptic package manager to work and I only know the basics with apt-get. Any ideas? Thanks.
 
Old 12-03-2015, 08:36 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
From my Debian days I remember one has to do apt-get update, followed by apt-get upgrade. If there are any errors apt-get will tell you how to fix them.
 
Old 12-03-2015, 08:36 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Try

Code:
apt-get -f
From the man page:

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 s pecified, 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 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.

Last edited by frankbell; 12-03-2015 at 08:38 PM.
 
Old 12-05-2015, 06:08 PM   #4
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Original Poster
Rep: Reputation: 6
garrett@mint-desktop /etc/apt $ sudo apt-get update -f
E: Command line option 'f' [from -f] is not known.
garrett@mint-desktop /etc/apt $ sudo apt-get update --fix-broken
E: Command line option --fix-broken is not understood
garrett@mint-desktop /etc/apt $ sudo apt-get -fupdate
E: Command line option 'f' [from -fupdate] is not known.
garrett@mint-desktop /etc/apt $ sudo apt-get -f update
E: Command line option 'f' [from -f] is not known.
garrett@mint-desktop /etc/apt $ sudo apt-get --fix-broken update
E: Command line option --fix-broken is not understood
garrett@mint-desktop /etc/apt $
 
Old 12-05-2015, 08:48 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Not this:

Quote:
sudo apt-get update -f
This:

Code:
sudo apt-get -f
See man apt-get for more.
 
Old 12-06-2015, 09:56 AM   #6
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Try
Code:
sudo apt-get -f install
That should fix most errors and complete the installation.
 
1 members found this post helpful.
Old 12-08-2015, 05:02 PM   #7
Garrett85
Member
 
Registered: Jan 2011
Posts: 332

Original Poster
Rep: Reputation: 6
Thanks sgosnell, that got it.
 
  


Reply



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
Xmgr plotting pakage on RHEL The_Watcher Linux - Enterprise 2 06-08-2008 03:11 AM
pakage gtk was not found .... SpellChainz Linux - Software 1 06-25-2007 03:35 PM
window-win WOL pakage? Bobymc General 8 06-12-2006 02:17 PM
how to extract rpm pakage from the system guduke Linux - General 1 04-05-2006 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:48 AM.

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
Open Source Consulting | Domain Registration