Ubuntu k6 install error: File mismatch

  • What Grafana version and what operating system are you using?
    Grafana Version: latest (i think 0.54)
    OS: Ubuntu 20.04.6 LTS

  • What are you trying to achieve?
    I am trying to install k6 on WSL v2

  • How are you trying to achieve it?
    by following the instructions listed on the Grafana K6 website install page for Linux/Ubuntu:
    https[:]//grafana[.] com/docs/k6/latest/set-up/install-k6/linux

  • What happened?
    i had k6 installed, but when i went to reinstall it i am not getting an error.

this is the error:


$ sudo apt-get install k6
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
k6
0 upgraded, 1 newly installed, 0 to remove and 224 not upgraded.
Need to get 28.7 MB of archives.
After this operation, 65.3 MB of additional disk space will be used.
Get:1 https: //dl . k6 . io/deb stable/main amd64 k6 amd64 0.55.1 [28.7 MB]
Err:1 https: //dl . k6 . io/deb stable/main amd64 k6 amd64 0.55.1
File has unexpected size (28726870 != 28726866). Mirror sync in progress?
Hashes of expected file:

  • SHA512:ba485f4455f5203ea6401dcb89efd500002c9bb2951b8b927dd7b2ca504d195358de84c4bfa28f538df836206c01d613d395850f4d0bfd8d167c6a2c270f9874
  • SHA256:2dcaf1223f67366edbd829433ab7fe79af5c7debfa2f37b99fc5afc36d0710c5
  • SHA1:26b043f66299c9904d24c9cd23226c63837aafeb [weak]
  • MD5Sum:eeb70d9835a3c723e3d7ee3bbd21a1fb [weak]
  • Filesize:28726866 [weak]
    E: Failed to fetch https [:] // dl [.] k6[.] io/deb/dists/stable/main/binary-amd64/k6-v0.55.1-amd64.deb File has unexpected size (28726870 != 28726866). Mirror sync in progress?
    Hashes of expected file:
    - SHA512:ba485f4455f5203ea6401dcb89efd500002c9bb2951b8b927dd7b2ca504d195358de84c4bfa28f538df836206c01d613d395850f4d0bfd8d167c6a2c270f9874
    - SHA256:2dcaf1223f67366edbd829433ab7fe79af5c7debfa2f37b99fc5afc36d0710c5
    - SHA1:26b043f66299c9904d24c9cd23226c63837aafeb [weak]
    - MD5Sum:eeb70d9835a3c723e3d7ee3bbd21a1fb [weak]
    - Filesize:28726866 [weak]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

I have already tried the following:

  • apt-get purge k6 (with and without autoremove)
  • apt-get clean
  • apt-update
  • re-running the install script
  • removing and adding the k6 gpg keys
  • What did you expect to happen?
    I expected k6 to be installed

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    n/a

  • Did you follow any online instructions? If so, what is the URL?
    https://grafana.com/docs/k6/latest/set-up/install-k6/#linux

*** disclaimer the links are slightly modified because i could not post more than 2

1 Like

Hey, bumping this thread as we’re facing the same issue at the moment.

It seems like the deb version may have changed? see link below

https://dl.k6.io/

this is by no means a solution, but I got around my issue by installing the binary:

wget https://github.com/grafana/k6/releases/download/v0.55.1/k6-v0.55.1-linux-amd64.tar.gz