Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I followed directions to add medibuntu but it has messed up some codecs and dependencies so I can no longer watch videos

I have run this command, originated by a forum post:

sean@sean-P55-USB3:~$ sudo -E wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update

How do I reverse this?

share|improve this question

2 Answers 2

up vote 7 down vote accepted

Just as a warning, I have not tested these commands, but I cannot see how they could fail. If they did fail, please let me know and I'll update the answer.

Run these commands in a terminal:

sudo apt-get purge medibuntu-keyring
sudo rm /etc/apt/sources.list.d/medibuntu.list
sudo apt-get update

Notice that this will only disable the repository! If you want to remove the packages you installed from that repository, you can use this command:

PKGS=$(dpkg -l | awk '{print $2}' | grep -e aacgain -e aacplusenc -e acroread-fonts -e alsa-firmware -e app-install-data-medibuntu -e apport-hooks-medibuntu -e hot-babe -e ices -e libavcodec-extra-53 -e libavdevice-extra-53 -e libav-extra-dbg -e libavfilter-extra-2 -e libavformat-extra-53 -e libavutil-extra-51 -e libdvdcss2 -e libdvdcss-dev -e libpostproc-extra-52 -e libswscale-extra-2 -e medibuntu-keyring -e mencoder -e mplayer-dbg -e mplayer-doc -e mplayer-gui -e mplayer -e non-free-codecs -e rmconverter -e w32codecs -e w64codecs | tr '\n' ' '); sudo apt-get purge $PKGS

Hope this helps!

share|improve this answer
2  
Thanks for your reply :-) That worked –  sean farley Dec 7 '12 at 9:04
    
This removes gimp, vlc, totem et al, and leaves 50 dependencies unresolved (12.04) –  sds Oct 11 '13 at 15:45
    
@sds Okay, re-install gimp, vlc, totem, and all of the other ones that got uninstalled, and then everything should work. –  MiJyn Oct 11 '13 at 20:30

Open Software sources

Under the other tab find the Medibuntu source. Click Edit simply to see the source link. Then click cancel.

Install ppa-purge sudo apt-get install ppa-purge

Then run sudo ppa-purge ppa:repository-name/subdirectory

It will remove all packages installed through the ppa, put the standard versions if any and disable the ppa.

share|improve this answer
1  
Would have been really easy if it was just that, but medibuntu is not a PPA :( –  MiJyn Nov 28 '12 at 21:06
    
Yes it is a ppa –  wojox Nov 28 '12 at 21:08
1  
not a launchpad.net PPA (that's what I meant) –  MiJyn Nov 29 '12 at 0:17
    
Thanks though I used the method above :-) –  sean farley Dec 7 '12 at 9:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.