4

When I run

sudo apt-get update

I get the following error:

W: GPG error: http://download.opensuse.org ./ Release: The following signatures were invalid: KEYEXPIRED 1436387333

How can I locate and remove the PPA which is causing this error?

  • 2
    grep -r 'download.opensuse.org' /etc/apt – A.B. Nov 6 '15 at 16:41
  • how to remove the ppa after locating it? – Subhadip Roy Nov 6 '15 at 17:22
  • What is the output of the command above? Run this command in your terminal. – A.B. Nov 6 '15 at 17:25
  • /etc/apt/sources.list.save:deb http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/ ./ /etc/apt/sources.list.save:# deb-src http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/ ./ /etc/apt/sources.list:deb http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/ ./ /etc/apt/sources.list:# deb-src http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/ ./ @A.B. – Subhadip Roy Nov 6 '15 at 17:33
  • 1
    sudo sed -i '/download.opensuse.org/d' /etc/apt/sources.list; sudo apt-get update – A.B. Nov 6 '15 at 17:34
4

The command

grep -r 'download.opensuse.org' /etc/apt

shows where the repository is configured, e.g.:

/etc/apt/sources.list.save:deb http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/ ./ 
/etc/apt/sources.list.save:# deb-src http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/ ./ 
/etc/apt/sources.list:deb http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/ ./ 
/etc/apt/sources.list:# deb-src http://download.opensuse.org/repositories/home:/sarimkhan/xUbuntu_14.04/ ./

In your case it is in

/etc/apt/sources.list

With this knowledge you can remove the entry with the help of sed

sudo sed -i '/download.opensuse.org/d' /etc/apt/sources.list

and to avoid confusion in the future you also should remove the entry in your backup file

sudo sed -i '/download.opensuse.org/d' /etc/apt/sources.list.save

Now update the package information

sudo apt-get update

and the problem is gone.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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