Raspberry Pi Removing packages
Author
Discussion

thebraketester

Original Poster:

15,438 posts

160 months

Hi. Ive got a RPI running pi hole, and it won't update (either the RPI or pihole) because of a mod (speediest by ookla) that is installed which will not update due troubleshooting the repository not being maintained. How does one remove the mod? Im connecting via SSH

Thanks

thebraketester

Original Poster:

15,438 posts

160 months

sudo apt update etc returns the following


pi@raspberrypi:~ $ sudo apt-get update
Hit:1 http://raspbian.raspberrypi.org/raspbian bookworm InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Ign:3 https://packagecloud.io/ookla/speedtest-cli/raspbi... bullseye InRelease
Err:4 https://packagecloud.io/ookla/speedtest-cli/raspbi... bullseye Release
404 Not Found [IP: 54.177.160.181 443]

dundarach

5,957 posts

250 months

If it's just the pihole you need, isn't it just easier to flatten it and start again, it'll not take long.

The0perator

659 posts

51 months

Did you add a repository to install it when you added it?
You might need to do something like
sudo add-apt-repository -r ppa: *one to remove*

Of course the key thing is to know which one

camel_landy

5,373 posts

205 months

I'm assuming you're wanting to remove the repository it's referring to, rather than the package??

To remove the repo, I just edit the entry in '/etc/apt/sources.list' or the file in '/etc/apt/sources.list.d'

HTH

M

thebraketester

Original Poster:

15,438 posts

160 months

dundarach said:
If it's just the pihole you need, isn't it just easier to flatten it and start again, it'll not take long.
Very possibly, yes.

Is it possible to do this via SSH, is it possible to reset the install, or will I need to pull out the SD card and flash it again

Edited by thebraketester on Thursday 26th February 09:58

thebraketester

Original Poster:

15,438 posts

160 months

The0perator said:
Did you add a repository to install it when you added it?
You might need to do something like
sudo add-apt-repository -r ppa: *one to remove*

Of course the key thing is to know which one
Good question, not sure. The mod never worked correctly from the start.

The0perator

659 posts

51 months

thebraketester said:
The0perator said:
Did you add a repository to install it when you added it?
You might need to do something like
sudo add-apt-repository -r ppa: *one to remove*

Of course the key thing is to know which one
If you are lucky it might be in your log

"history "Pipe" grep add-apt-repository" #I can't seem to put a pipe character as it stops me posting!

See if you can see what you added?

camel_landy

5,373 posts

205 months

thebraketester said:
The0perator said:
Did you add a repository to install it when you added it?
You might need to do something like
sudo add-apt-repository -r ppa: *one to remove*

Of course the key thing is to know which one
Good question, not sure. The mod never worked correctly from the start.
IIRC, the command will be something like: 'sudo add-apt-repository --list'

M

budgie smuggler

5,926 posts

181 months

Or you can find the repo file and nuke it.

It installs somewhere like
/etc/apt/sources.list.d/ookla_speedtest-cli.list

so you can go into that directory
cd /etc/apt/sources.list.d/

list the contents:
ls -l

look for something to do with speedtest or ookla, then:

sudo rm name_of_file_you_found.list

Then you probably also want to remove the speedtest package.

sudo apt remove --purge speedtest*



Edited by budgie smuggler on Thursday 26th February 11:01


Edited by budgie smuggler on Thursday 26th February 11:01