[SOLVED] How can I Purge expired gnome-pomodoro

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ovrflo
Level 3
Level 3
Posts: 110
Joined: Sat Feb 25, 2017 3:12 pm

[SOLVED] How can I Purge expired gnome-pomodoro

Post 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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
kevin987
Level 5
Level 5
Posts: 801
Joined: Fri Dec 11, 2015 12:35 pm

Re: How can I Purge expired gnome-pomodoro

Post by kevin987 »

You should be able to remove in the Update Manager, Software sources, PPAs section.
Linux Mint 20.3 (Cinnamon)
Linux Mint 19.3 (Cinnamon)
Bodhi Linux 6.0 (MokshaArcGreen)
Fedora 35 (Cinnamon)
ovrflo
Level 3
Level 3
Posts: 110
Joined: Sat Feb 25, 2017 3:12 pm

Re: How can I Purge expired gnome-pomodoro

Post 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?
User avatar
Larry78723
Level 14
Level 14
Posts: 5476
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: How can I Purge expired gnome-pomodoro

Post 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.
Image
If you have found the solution to your initial post, please open your original post, click on the pencil, and add (Solved) to the Subject, it helps other users looking for help, and keeps the forum clean.
ovrflo
Level 3
Level 3
Posts: 110
Joined: Sat Feb 25, 2017 3:12 pm

Re: How can I Purge expired gnome-pomodoro

Post 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?
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: How can I Purge expired gnome-pomodoro

Post 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.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
ovrflo
Level 3
Level 3
Posts: 110
Joined: Sat Feb 25, 2017 3:12 pm

Re: How can I Purge expired gnome-pomodoro

Post by ovrflo »

Thanks everyone, and especially smurphos for the really complete answer!
Locked

Return to “Beginner Questions”