Removing ppa in ubuntu without using ppa-purge

I used third-party PPAs to install OpenCV 2.3 on my Ubuntu 11.10. Now, when updating, I ran into some problems with these packages and their unsatisfied dependencies. So I wanted to remove ppas. But for this I will need a package called ppa-purge, which I cannot install now, because my package structure seems to be broken.

Workarounds for this problem?

Thanks.

+6
source share
3 answers
sudo add-apt-repository --remove ppa:PPA_Name/ppa 

Replace the name "PPA_Name" with the name of your PPA.

+5
source

Manually modify / etc / apt / sources.list, remove the problem URL, then apt-get update, and then update.

+2
source

If you encounter problems with Broken packages, first uninstall this package by checking the dependencies first, and then decisively remove this package and never forget to reboot when you make huge changes to your system. To remove this package, use shell commands

 $ sudo su 

Then enter your password

 # apt-cache rdepends package-name # apt-get --purge remove --force package-name 

Use these shell commands

 # apt-get clean # apt-get autoclean # apt-get update # apt-get upgrade # apt-get dist-upgrade # reboot 

It worked for me, try it, I believe that it will fix all your problems, good luck.

0
source

Source: https://habr.com/ru/post/906392/


All Articles