Speedtest uninstall from OH 3.x version

I have been using the script version that calls a python version of speedtest for many years now. I want to use the binding versions now.

I have uninstalled the pip3 version of speedtest but apt still says it’s on the system.

[08:56:58] root@openhabian:~# apt list speedtest*
Listing… Done
speedtest-cli/oldstable 2.1.3-2 all

sudo apt remove speedtest-cli
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package ‘speedtest-cli’ is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

sudo apt search speedtest-cli
Sorting… Done
Full Text Search… Done
speedtest-cli/oldstable 2.1.3-2 all Command line interface for testing internet bandwidth

I have tried all of these options also:

  • sudo rm /etc/apt/sources.list.d/speedtest.list
  • sudo apt-get remove speedtest
  • sudo apt-get remove speedtest-cli
  • sudo apt purge speedtest
  • sudo apt purge speedtest-cli

The newest version of SpeedTest is 2.2.4 via curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash

Here’s what I get try installing it:

pi@openhabian:~ $ curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
Detected operating system as raspbian/bullseye.
Checking for curl…
Detected curl…
Checking for gpg…
Detected gpg…
Detected apt version as 2.2.4
Running apt-get update… done.
Installing apt-transport-https… done.
Installing /etc/apt/sources.list.d/ookla_speedtest-cli.list…done.
Importing packagecloud gpg key… Packagecloud gpg key imported to /etc/apt/keyrings/ookla_speedtest-cli-archive-keyring.gpg
done.
Running apt-get update… done.

The repository is setup! You can now install packages.
pi@openhabian:~ $ sudo apt-get install speedtest
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package speedtest
pi@openhabian:~ $

Any help would be appreciated.

Best, Jay

Here’s the solution, issues with this script

curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash

Solution:

A possibility might be exchanging “raspbian” with “debian” in the corresponding file under /etc/apt/sources.list.d/ and running apt update again, since the Raspberry’s architecture should be supported.

Best, Jay