"speedtest-cli 2.0.0-1" package outputs incorrect results

Bug #1853204 reported by Matei C.
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
speedtest-cli (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

### OS ###

$ lsb_release -rd
Description: Ubuntu 18.04.3 LTS
Release: 18.04

### PACKAGE ###

$ apt-cache policy speedtest-cli
speedtest-cli:
  Installed: 2.0.0-1
  Candidate: 2.0.0-1
  Version table:
 *** 2.0.0-1 500
        500 http://ports.ubuntu.com bionic/universe arm64 Packages
        500 http://ports.ubuntu.com bionic/universe armhf Packages
        100 /var/lib/dpkg/status
pi@rock64:~

### RESULTS ###

I recently noticed some discrepancies between the "speedtest-cli" results when installed using the "apt" package manager vs running the script itself.

I noticed that when using Armbian Buster OS (https://www.armbian.com/rock64/) on a Rock64 ARM processor based single board computer where "speedtest-cli' was installed via the apt package manager the tool very different results (lower values) when compared to running the speedtest-cli.py (https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py) script using Python 2.7.15.

The repository and package version used to install "speedtest-cli":

speedtest-cli/bionic,bionic,now 2.0.0-1 all [installed]

Example:

localhost:~$ speedtest-cli
Retrieving speedtest.net configuration...
Testing from ISP_CENSURED (IP_CENSURED)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by ISP_CENSURED: 4.866 ms
Testing download speed................................................................................
Download: 233.49 Mbit/s
Testing upload speed......................................................................................................
Upload: 4.08 Mbit/s
localhost:~$ curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -
Retrieving speedtest.net configuration...
Testing from ISP_CENSURED (IP_CENSURED)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by ISP_CENSURED [6.90 km]: 5.145 ms
Testing download speed................................................................................
Download: 468.78 Mbit/s
Testing upload speed................................................................................................
Upload: 272.79 Mbit/s
localhost:~$
I have also tested this on Raspbian Buster and Fedora Workstation 31 and no such discrepancies were noticed.

Regards,

Revision history for this message
piersh (piersh) wrote :

this is a known bug in speedtest-cli and has been long-fixed. please update the version in bionic so we don't have to keep installing this from source.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in speedtest-cli (Ubuntu):
status: New → Confirmed
Revision history for this message
Henry Sprog (henry-sprog) wrote :

This is a really annoying bug to have in an LTS. I can confirm that if you install it from the command line with apt-get it fails to get the correct upload speed only displaying approx 20% of the correct upload speed. Installing the Python version via pip works but is not ideal.

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

Fix released in Focal+

Changed in speedtest-cli (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.