Page 1 of 1

[SOLVED] How can I Purge expired gnome-pomodoro

Posted: Tue Apr 09, 2019 6:05 pm
by ovrflo
Almost 2 years aga, I managed to install gnome-pomodoro after great difficulty _ I had to use a PPA to get it to work.
Now the key is expired on the PPA, and it is constantly causing errors with the automatic update.
It appears that the author hasn't updated the key:

Code: Select all

$ apt-key list
pub   2048R/C18AFDEC 2014-01-28 [expired: 2018-07-08]
uid                  home:kamilprusko OBS Project <home:kamilprusko@build.opensuse.org>

$ apt-key adv --keyserver keys.gnupg.net --recv-keys C18AFDEC
Executing: /tmp/tmp.Pz7XdLI5bQ/gpg.1.sh --keyserver
keys.gnupg.net
--recv-keys
C18AFDEC
gpg: requesting key C18AFDEC from hkp server keys.gnupg.net
gpg: key C18AFDEC: "home:kamilprusko OBS Project <home:kamilprusko@build.opensuse.org>" not changed
gpg: Total number processed: 1
gpg:              unchanged: 1
Now I can't update the package and ppa-purge doesn't work either. (I want to keep the system clean by removing unused packages if possible without breaking anything).

Can someone please advise me as to the best way to deal with this.

Here is my failed attempts at purging the package:

Code: Select all

$ ls /etc/apt
apt.conf.d      auth.conf.d  preferences.d  sources.list  
sources.list.d  trusted.gpg  trusted.gpg~  trusted.gpg.d

$ ls /etc/apt/sources.list.d/
gnome-pomodoro.list  ... [Irrelevant packages deleted]

$ cat /etc/apt/sources.list.d/gnome-pomodoro.list
deb http://download.opensuse.org/repositories/home:/kamilprusko/xUbuntu_16.04/ /


$ sudo ppa-purge http://download.opensuse.org/repositories/home:/kamilprusko/xUbuntu_16.04/
Updating packages lists
W: GPG error: http://download.opensuse.org/repositories/home:/kamilprusko/xUbuntu_16.04  Release: The following signatures were invalid: KEYEXPIRED 1531018396
W: The repository 'http://download.opensuse.org/repositories/home:/kamilprusko/xUbuntu_16.04  Release' is not signed.
PPA to be removed:
http://download.opensuse.org/repositories/home:/kamilprusko/xUbuntu_16.04 ppa
Warning:  Could not find package list for PPA:
http://download.opensuse.org/repositories/home:/kamilprusko/xUbuntu_16.04 ppa

$ sudo ppa-purge gnome-pomodoro.list
Updating packages lists
W: GPG error: http://download.opensuse.org/repositories/home:/kamilprusko/xUbuntu_16.04  Release: The following signatures were invalid: KEYEXPIRED 1531018396
W: The repository 'http://download.opensuse.org/repositories/home:/kamilprusko/xUbuntu_16.04  Release' is not signed.
PPA to be removed: gnome-pomodoro.list ppa
Warning:  Could not find package list for PPA: gnome-pomodoro.list ppa

Re: How can I Purge expired gnome-pomodoro

Posted: Tue Apr 09, 2019 6:36 pm
by kevin987
You should be able to remove in the Update Manager, Software sources, PPAs section.

Re: How can I Purge expired gnome-pomodoro

Posted: Wed Apr 10, 2019 2:32 pm
by ovrflo
Thanks for the reply - just one point needs some clarification.

When I have software sources/PPAs open, does the remove button just remove the highlighted entry, or does it remove ALL the entries that have the Enabled column checked? So removing 2 PPAs would be 2 separate operations?

Since I've never done this before, I don't want to remove everything!

I suld have mentioned Linux Mint v18.3 just in case something has changed between versions.

Is there a way to list which packages the PPA installed, I think I should uninstall them before deleting the PPA shouldn't I?

Re: How can I Purge expired gnome-pomodoro

Posted: Wed Apr 10, 2019 4:42 pm
by Larry78723
ovrflo, with software sources/PPAs open, just highlight the ppa you want to delete and click remove. Then execute the following command in a terminal window

Code: Select all

sudo apt purge gnome-pomodoro
That should remove anything installed by that ppa.

Re: How can I Purge expired gnome-pomodoro

Posted: Wed Apr 10, 2019 10:28 pm
by ovrflo
Thanks Larry78723.... a couple of follow up questions:
Should I purge the package and then remove the PPA, or do it the other way around?
Does removing the PPA remove the info required for the purge?

Re: How can I Purge expired gnome-pomodoro

Posted: Wed Apr 10, 2019 11:39 pm
by smurphos
@ovrflo - The way I'd do this as a general method is remove the repository/PPA using Software Sources, then in Software Sources review any content in Maintenance > Downgrade Foreign Packages with a view to downgrading any present to their standard repo versions, followed by Maintenance > Remove Foreign Packages to remove anything that isn't in the regular repos at all.

Basically removing the repo/PPA will orphan any packages installed from that repo/PPA which will then identify them as 'foreign'

In this case looking at http://download.opensuse.org/repositori ... .04/amd64/ gnome-pomodoro is the only package offered by this repo (technically it's not a PPA is a third party repo) so Larry's command should be all that's needed either before or after removing the repo in any case.

Re: How can I Purge expired gnome-pomodoro

Posted: Thu Apr 11, 2019 11:43 pm
by ovrflo
Thanks everyone, and especially smurphos for the really complete answer!