LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2015, 11:24 AM   #1
kresica35
LQ Newbie
 
Registered: Jun 2015
Distribution: Linux Mint 18.2 Sonya
Posts: 19

Rep: Reputation: Disabled
Fix broken packages in Linux Mint


I tried to install ffmpeg so I could use FF Multi Converter and he says "Unable to proced, fix broken packages first".
But nothing really happens after clicking Edit > Fix broken packages, and the same message re-appers in Synaptic Package Manager upon trying to install ffmpeg.
I can't remember now what was the last installed package before this one. Could be Update Manager earlier in morning, but I'm not quite sure.
Please help undoing that!

My distro is Linux Mint 17.1 Rebecca
Kernel Linux 3.13.0-51-generic
Mate 1.8.1.

Last edited by kresica35; 06-29-2015 at 11:26 AM.
 
Old 06-29-2015, 11:46 AM   #2
ltwilliams58
LQ Newbie
 
Registered: Jun 2015
Distribution: Mint Ubuntu
Posts: 29

Rep: Reputation: 3
Try going into a shell (Ctrl+Alt+T) and then there type
Code:
sudo apt-get install -f
Enter your password and then observe the output. The -f option tells aptitude to fix broken packages
 
Old 06-29-2015, 12:31 PM   #3
kresica35
LQ Newbie
 
Registered: Jun 2015
Distribution: Linux Mint 18.2 Sonya
Posts: 19

Original Poster
Rep: Reputation: Disabled
Input:
Quote:
sudo apt-get install -f
Output:
Quote:
kresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $ sudo apt-get install -f
[sudo] password for kresica:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
cabextract deepin-ui gstreamer0.10-ffmpeg libkeybinder0 libvlc5 libvlccore7
python-cddb python-cssselect python-decorator python-deepin-gsettings
python-deepin-utils python-keybinder python-mutagen python-numpy
python-pyquery python-scipy python-webob unshield vlc vlc-data vlc-nox
vlc-plugin-notify vlc-plugin-pulse
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
kresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $
Same message appears during ffmpeg installation: "Unable to proced, fix broken packages first".

Last edited by kresica35; 06-29-2015 at 12:33 PM.
 
Old 06-29-2015, 12:46 PM   #4
ltwilliams58
LQ Newbie
 
Registered: Jun 2015
Distribution: Mint Ubuntu
Posts: 29

Rep: Reputation: 3
OK, so it may have fixed what was broken, what happens when you now try
Code:
sudo apt-get install ffmpeg
 
Old 06-29-2015, 01:05 PM   #5
kresica35
LQ Newbie
 
Registered: Jun 2015
Distribution: Linux Mint 18.2 Sonya
Posts: 19

Original Poster
Rep: Reputation: Disabled
Output:
Quote:
kresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $ sudo apt-get install ffmpeg
[sudo] password for kresica:
Sorry, try again.
[sudo] password for kresica:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
ffmpeg : Depends: libavcodec54 (>= 7:1.2.5~) but 6:9.18-0ubuntu0.14.04.1 is to be installed or
libavcodec-extra-54 (>= 7:1.2.5~) but it is not going to be installed
Depends: libavdevice53 (>= 7:1.2.5~) but it is not going to be installed
Depends: libavfilter3 (>= 7:1.2.5~) but it is not going to be installed
Depends: libavformat54 (>= 7:1.2.5~) but 6:9.18-0ubuntu0.14.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.
kresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $
 
Old 06-29-2015, 01:40 PM   #6
ltwilliams58
LQ Newbie
 
Registered: Jun 2015
Distribution: Mint Ubuntu
Posts: 29

Rep: Reputation: 3
Ah, ok. That's different. It means ffmpeg can't be installed because the dependencies can't be resolved. You could try adding them to the install command, or try a different package like avconv.
 
Old 06-29-2015, 02:17 PM   #7
kresica35
LQ Newbie
 
Registered: Jun 2015
Distribution: Linux Mint 18.2 Sonya
Posts: 19

Original Poster
Rep: Reputation: Disabled
Mmm. I'll look arround for some instructions on adding dependencies to ffmpeg install command then, but that avconv seems to me as roughly the same package as ffmpeg.
Thanks, mate!
 
Old 06-29-2015, 02:46 PM   #8
ltwilliams58
LQ Newbie
 
Registered: Jun 2015
Distribution: Mint Ubuntu
Posts: 29

Rep: Reputation: 3
Adding the dependencies would be to simply choose them in the GUI (install them first via software manager, mark them in synaptic) or add them to the apt-get install command:
Code:
sudo apt-get install ffmpeg libavcodec-extra-54 ...
But you may run into version problems if what's needed is not available.
 
Old 06-29-2015, 03:59 PM   #9
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
To me this looks like something is wrong with your sources.list or you pinned some packages that better should not have been pinned.
Is this an original 17.1 install or did you upgrade from a previous release?

Can you post the output of
Code:
cat /etc/apt/sources.list.d/*
and
Code:
cat/etc/apt/preferences.d/*
 
Old 06-29-2015, 04:47 PM   #10
kresica35
LQ Newbie
 
Registered: Jun 2015
Distribution: Linux Mint 18.2 Sonya
Posts: 19

Original Poster
Rep: Reputation: Disabled
It's orignal Joe, first installation of some Linux distro (over win xp sp3).

Outputs are as follows:

Quote:
cat /etc/apt/sources.list.d/*
Quote:
kresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $ cat /etc/apt/sources.list.d/*
deb http://ppa.launchpad.net/ffmulticonverter/stable/ubuntu trusty main
deb-src http://ppa.launchpad.net/ffmulticonverter/stable/ubuntu trusty main
# deb http://archive.getdeb.net/ubuntu trusty-getdeb apps
deb http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu trusty main
deb-src http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu trusty main
# Do not edit this file manually, use Software Sources instead.

deb http://packages.linuxmint.com rebecca main upstream import #id:linuxmint_main
deb http://extra.linuxmint.com rebecca main #id:linuxmint_extra

deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partnerkresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $
Quote:
cat/etc/apt/preferences.d/*
Quote:
kresica@kresica-HP-Compaq/*c7800-Small-Form-Factor ~ $ cat/etc/apt/preferences.d
bash: cat/etc/apt/preferences.d/*: No such file or directory
kresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $


Note: that "Quote" parts should be "Code".

Last edited by kresica35; 06-29-2015 at 04:54 PM.
 
Old 06-30-2015, 12:23 PM   #11
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Hmm, this might be a bit tricky. libavcodec54 6:9.18-0ubuntu0.14.04.1 seems to be the version in the Ubuntu trusty repos (see e.g. http://packages.ubuntu.com/de/trusty/libavcodec54) which is why the install fails. (The ffmpeg package is claiming a newer version.)

So for that to work, you'd have to install a newer version of libavcodec54.

That said, I think itwilliams' recommendation to rather use avconv is probably the better way to go. This page here: http://community.linuxmint.com/software/view/ffmpeg explicitly states that ffmpeg is deprecated and avconv should be used instead...
 
Old 07-01-2015, 03:43 AM   #12
kresica35
LQ Newbie
 
Registered: Jun 2015
Distribution: Linux Mint 18.2 Sonya
Posts: 19

Original Poster
Rep: Reputation: Disabled
Fix broken packages in Linux Mint

Tried to apply ppa bug too..
Code:
apt policy libavcodec54 libavcodec-extra-54 libavdevice53 libavfilter3 libavformat54
Code:
    kresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $ apt policy libavcodec54 libavcodec-extra-54 libavdevice53 libavfilter3 libavformat54
    libavcodec54:
      Installed: 6:9.18-0ubuntu0.14.04.1
      Candidate: 7:1.2.5-1~trusty1
      Version table:
         7:1.2.5-1~trusty1 0
            500 http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu/ trusty/main i386 Packages
     *** 6:9.18-0ubuntu0.14.04.1 0
            500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe i386 Packages
            500 http://security.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages
            100 /var/lib/dpkg/status
         6:9.11-2ubuntu2 0
            500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
    libavcodec-extra-54:
      Installed: (none)
      Candidate: 7:1.2.5-1~trusty1
      Version table:
         7:1.2.5-1~trusty1 0
            500 http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu/ trusty/main i386 Packages
         6:9.18-0ubuntu0.14.04.1 0
            500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe i386 Packages
            500 http://security.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages
         6:9.11-2ubuntu2 0
            500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
    libavdevice53:
      Installed: (none)
      Candidate: 7:1.2.5-1~trusty1
      Version table:
         7:1.2.5-1~trusty1 0
            500 http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu/ trusty/main i386 Packages
         6:9.18-0ubuntu0.14.04.1 0
            500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe i386 Packages
            500 http://security.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages
         6:9.11-2ubuntu2 0
            500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
    libavfilter3:
      Installed: (none)
      Candidate: 7:1.2.5-1~trusty1
      Version table:
         7:1.2.5-1~trusty1 0
            500 http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu/ trusty/main i386 Packages
         6:9.18-0ubuntu0.14.04.1 0
            500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe i386 Packages
            500 http://security.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages
         6:9.11-2ubuntu2 0
            500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
    libavformat54:
      Installed: 6:9.18-0ubuntu0.14.04.1
      Candidate: 7:1.2.5-1~trusty1
      Version table:
         7:1.2.5-1~trusty1 0
            500 http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu/ trusty/main i386 Packages
     *** 6:9.18-0ubuntu0.14.04.1 0
            500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe i386 Packages
            500 http://security.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages
            100 /var/lib/dpkg/status
         6:9.11-2ubuntu2 0
            500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
    kresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $
Then, attempted ffmpeg / avconv installation in Package Manager: "Unable to proced, fix broken packages first" - in both cases.

Opened Synaptic Manager then to try Fix broken packages option under Packages tab again. Results: "Couldn't proced. The following details are provided:
E: Unable to correct problems, you have held broken packages.
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
E: Unable to correct problems, you have held broken packages.
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
E: Unable to correct problems, you have held broken packages.
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies"

Nothing broken listed in Status > broken panel on the left in the Synaptic Manager either.

Tried searching for the newer version of libavcodec54 too but couldn't found any.

Found following shell inputs on neighbouring Linux Mint forum:
Code:
apt autoremove
Output:
Code:
kresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $ apt autoremove
[sudo] password for kresica:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  cabextract deepin-ui gstreamer0.10-ffmpeg libkeybinder0 libvlc5 libvlccore7
  python-cddb python-cssselect python-decorator python-deepin-gsettings
  python-deepin-utils python-keybinder python-mutagen python-numpy
  python-pyquery python-scipy python-webob unshield vlc vlc-data vlc-nox
  vlc-plugin-notify vlc-plugin-pulse
0 upgraded, 0 newly installed, 23 to remove and 58 not upgraded.
After this operation, 107 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 229991 files and directories currently installed.)
Removing cabextract (1.4-4) ...
Removing deepin-ui (1.1+20141029135629~trusty) ...
Removing gstreamer0.10-ffmpeg:i386 (0.10.13-5ubuntu1~trusty2) ...
Removing python-keybinder (0.3.0-2) ...
Removing libkeybinder0 (0.3.0-2) ...
Removing vlc-plugin-pulse (2.1.6-0ubuntu14.04.1) ...
Removing vlc-plugin-notify (2.1.6-0ubuntu14.04.1) ...
Removing vlc (2.1.6-0ubuntu14.04.1) ...
Removing python-cddb (1.4-5.1ubuntu2) ...
Removing python-pyquery (1.2.4-1) ...
Removing python-cssselect (0.9.1-1) ...
Removing python-scipy (0.13.3-1build1) ...
Removing python-decorator (3.4.0-2build1) ...
Removing python-deepin-gsettings (0.1.1-a~trusty~NoobsLab.com) ...
Removing python-deepin-utils (0.0.2+20140703165416~trusty~NoobsLab.com) ...
Removing python-mutagen (1.22-1ubuntu2) ...
Removing python-numpy (1:1.8.2-0ubuntu0.1) ...
Removing python-webob (1.3.1-1) ...
Removing unshield (1.0-1) ...
Removing vlc-nox (2.1.6-0ubuntu14.04.1) ...
Removing libvlc5 (2.1.6-0ubuntu14.04.1) ...
Removing libvlccore7 (2.1.6-0ubuntu14.04.1) ...
Removing vlc-data (2.1.6-0ubuntu14.04.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
kresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $
and:
Code:
apt policy libavcodec54 libavcodec-extra-54 libavdevice53 libavfilter3 libavformat54
Shell output:
Code:
    kresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $ apt policy libavcodec54 libavcodec-extra-54 libavdevice53 libavfilter3 libavformat54
    libavcodec54:
      Installed: 6:9.18-0ubuntu0.14.04.1
      Candidate: 7:1.2.5-1~trusty1
      Version table:
         7:1.2.5-1~trusty1 0
            500 http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu/ trusty/main i386 Packages
     *** 6:9.18-0ubuntu0.14.04.1 0
            500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe i386 Packages
            500 http://security.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages
            100 /var/lib/dpkg/status
         6:9.11-2ubuntu2 0
            500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
    libavcodec-extra-54:
      Installed: (none)
      Candidate: 7:1.2.5-1~trusty1
      Version table:
         7:1.2.5-1~trusty1 0
            500 http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu/ trusty/main i386 Packages
         6:9.18-0ubuntu0.14.04.1 0
            500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe i386 Packages
            500 http://security.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages
         6:9.11-2ubuntu2 0
            500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
    libavdevice53:
      Installed: (none)
      Candidate: 7:1.2.5-1~trusty1
      Version table:
         7:1.2.5-1~trusty1 0
            500 http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu/ trusty/main i386 Packages
         6:9.18-0ubuntu0.14.04.1 0
            500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe i386 Packages
            500 http://security.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages
         6:9.11-2ubuntu2 0
            500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
    libavfilter3:
      Installed: (none)
      Candidate: 7:1.2.5-1~trusty1
      Version table:
         7:1.2.5-1~trusty1 0
            500 http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu/ trusty/main i386 Packages
         6:9.18-0ubuntu0.14.04.1 0
            500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe i386 Packages
            500 http://security.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages
         6:9.11-2ubuntu2 0
            500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
    libavformat54:
      Installed: 6:9.18-0ubuntu0.14.04.1
      Candidate: 7:1.2.5-1~trusty1
      Version table:
         7:1.2.5-1~trusty1 0
            500 http://ppa.launchpad.net/noobslab/deepin-sc/ubuntu/ trusty/main i386 Packages
     *** 6:9.18-0ubuntu0.14.04.1 0
            500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe i386 Packages
            500 http://security.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages
            100 /var/lib/dpkg/status
         6:9.11-2ubuntu2 0
            500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
    kresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $
No changes in ffmpeg / avconv installation afterwards. Same message appears "Unable to proced, fix broken packages first" - in both cases.

Last edited by kresica35; 07-01-2015 at 03:49 AM.
 
Old 07-01-2015, 04:30 AM   #13
linom
Member
 
Registered: May 2015
Location: India
Distribution: Debian, CentOS,Redhat, Fedora, Ubuntu
Posts: 91

Rep: Reputation: 13
Thumbs up

First try:
# apt-cache update

then
# apt-get -f install
 
Old 07-01-2015, 06:34 AM   #14
kresica35
LQ Newbie
 
Registered: Jun 2015
Distribution: Linux Mint 18.2 Sonya
Posts: 19

Original Poster
Rep: Reputation: Disabled
Fix broken packages in Linux Mint

Shell output:

kresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $ # apt-cache update
kresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $ # apt-get -f install
kresica@kresica-HP-Compaq-dc7800-Small-Form-Factor ~ $

No changes in ffmpeg / avconv installation.

Last edited by kresica35; 07-01-2015 at 06:36 AM.
 
Old 07-01-2015, 06:54 AM   #15
linom
Member
 
Registered: May 2015
Location: India
Distribution: Debian, CentOS,Redhat, Fedora, Ubuntu
Posts: 91

Rep: Reputation: 13
please try
sudo apt-get update

and then
sudo apt-get -f install

Note: Do not put hash (#) before the above command. It is just an indicative that you are in the command prompt.

Also, do bear with me for incorrectly mentioning apt-cache, instead of apt-get.

Last edited by linom; 07-01-2015 at 07:00 AM.
 
  


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
[SOLVED] Broken packages linux mint 16 tony044 Linux - Newbie 3 05-23-2014 04:43 AM
Trying to fix Broken packages -f prickee Debian 12 05-11-2011 06:20 AM
Fix broken packages ervini Linux Mint 1 12-18-2010 06:59 PM
Fix broken packages ervini LQ Suggestions & Feedback 1 12-18-2010 05:53 PM
could not apply changes. Fix broken packages first amritpalpathak Linux - Software 2 04-23-2010 11:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:20 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