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
  • 880
  • 4
  • 15
  • 28

3 Answers3

2

Ok, here is the short answer.

sudo apt-get remove ffmpeg
sudo apt-get install libav-tools
A.B.
  • 92,125
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
-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
  • 189