1

After I installed virtualbox, I cannot install some packages. So I removed virtualbox, then I still cannot install the packages.

  • This is the package:

    enter image description here

  • And this is the error I received.

    enter image description here

  • After I ran sudo apt-get update && sudo apt-get upgrade, there is no error and the result is as this:

    enter image description here

  • After I ran sudo apt-get dist-upgrade, I was asked to install libav-tools, then I chose y, and then the error appeared.

    enter image description here

tqjustc
  • 810

3 Answers3

2

Ok, here is the short answer.

sudo apt-get remove ffmpeg
sudo apt-get install libav-tools
A.B.
  • 90,397
  • hi, I still cannot solve it and also I find one more error. I have updated the question. – tqjustc Mar 20 '15 at 21:04
  • Please add a list of your repositories and replace the graphics in your question through the text output of programs. – A.B. Mar 22 '15 at 19:56
  • 2
    What is output when you run a sudo aptitude remove ffmpeg? Answer the security question with 'N'! – A.B. Mar 22 '15 at 20:01
  • Hi, the problem is that the version of ffmpeg I install conflicted with libav-tools. After I removed my ffmpeg, I can install libav-tools and everything becomes fine. Thanks. but could you please edit your answer? – tqjustc Mar 24 '15 at 20:26
  • @A.B. downvote was from me, when I did it your answer was different. – c0rp Mar 28 '15 at 03:19
  • Very short answer! ;-) – Fabby Aug 09 '15 at 20:42
0

Run

sudo dpkg --configure -a
sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get dist-upgrade

and if that doesn't help

cd /tmp    
wget http://de.archive.ubuntu.com/ubuntu/pool/universe/h/hwloc/libhwloc-plugins_1.8-1ubuntu1_amd64.deb
sudo dpkg -i libhwloc-plugins_1.8-1ubuntu1_amd64.deb
sudo apt-get -f install
Kalle Richter
  • 6,180
  • 21
  • 70
  • 103
-1

The screenshots are somewhat limited in what they show, but can you try the following,

Visit the answer below and follow the steps to get the default sources for apt. Can't tell if you have added any.

How do I restore the default repositories?

( alternative http://www.tuxgarage.com/2011/01/restore-your-sources-list-to-defaults.html )

Just to be sure, remove the left overs of lib-avtools,

apt-get remove lib-avtools

&

apt-get clean

Try again,

apt-get update && apt-get dist-upgrade

If it fails again, is there any more information in /var/log/dpkg.log?

Sinn3d
  • 179