2

Recently I did a clean install of Ubuntu 14.04. Then I wanted to install latest vlc (2.2.1), and googled for it. Then I came across this ppa: ppa:mc3man/trusty-media and added it to my repositories by following command.

sudo add-apt-repository ppa:mc3man/trusty-media

Then I issued following commands:

sudo apt-get update
sudo apt-get install vlc

But there was an error regarding mesa packages and I again googled for a solution and found that adding ppa:xorg-edgers/ppa would solve the issue. So I used following commands:

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get install vlc

Now vlc installed successfully. Then I upgraded my system:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

After that I removed above two ppas from the system

sudo add-apt-repository --remove ppa:mc3man/trusty-media
sudo add-apt-repository --remove ppa:xorg-edgers/ppa

Now when I can not install some softwares or upgrades. For example, if I do apt-get purge vlc && apt-get install vlc I get some dependency problem. Also I got some dependency problem when tried to install inkscape add ons through Software Center.

So how can I revert my Ubuntu system to packages provided by ubuntu repositories only?

Thanks in advance.

UPDATE 1

Purged the 2 ppas along with downgrading ppa provided packages. Still sudo apt-get install vlc gives Dependency error.

UPDATE 2

Executed:aptitude install vlc. There found that the problem was with vlc-data. So executed following commands to install vlc successfully.

apt-get purge vlc-data
apt-get install vlc
nlern
  • 391

1 Answers1

3

Follow below steps to solve the problem.

1) Install ppa-purge.

sudo apt-get update && sudo apt-get install ppa-purge

2) Add again the ppas, to revert ppa provided packages to official ones

sudo add-apt-repository ppa:xorg-edgers/ppa
sudo add-apt-repository ppa:mc3man/trusty-media

3) Purge the ppas and revert ppa provided packages to official ones by ppa-purge

sudo ppa-purge ppa:xorg-edgers/ppa
sudo ppa-purge ppa:mc3man/trusty-media

4) Use aptitude install package_name to check if there is any dependency conflict. If there is then go through the aptitude provided dependency resolution options one by one and apply suitable changes.

5) Some dependency arises because the installing package depends on old libraries. In this case symlinking updates libraries to old ones or downgrading solves the problem.

nlern
  • 391