3

I have added Transmission PPA. After adding PPA, when I tried to open software updater I got the following messege.

Failed to load the package list

This is a serious problem. Try again later. If this problem appears again, please report an error to the developers.

Even I could'nt open software sources, ubuntu software center, and sypnatic package manager.

What I have to do. Is there any command to remove the PPA.

Ashok
  • 200
  • 7

3 Answers3

3

The following command removes the ppa.

$ sudo add-apt-repository --remove ppa:PPANAME
$ sudo apt-get update
3

The answer from Sagar Rakshe is correct.
Here I explain how to perform it manually.

Remove the repository

First, identify your wrong file in /etc/apt/sources.list.d
(you may also have to check the main file /etc/apt/sources.list)

cd /etc/apt/sources.list.d 
head *.list

Then, rename the file to disable it:

sudo mv  WRONGFILE.list  WRONGFILE.list.backup 

Or instead of renaming the file, create a backup directory and move the file there:

sudo mkdir             backup_on_date_YYYMMDD
sudo mv WRONGFILE.list backup_on_date_YYYMMDD

For your information, add-apt-repository is a python script adding or commenting lines in your *.list files. Personally I prefer to handle myself these operations in order to keep clear & secure *.list files.

Remove the package signing keys

Show the installed apt keys with apt-key list and find the key for the repo you want to remove, for example:

pub   2048R/5044912E 2010-02-11
uid                  Dropbox Automatic Signing Key <linux@dropbox.com>

You can then use sudo apt-key del 5044912E to remove this key.

amc
  • 7,292
oHo
  • 1,182
0

The graphical way of removing ppa repositories is as follows:

  • open your System Settings
  • click on the Softare & Updates icon
  • go to the Other Software tab
  • select the repository you want to remove
  • click the Remove button

I hope this helps

Joren
  • 5,074