Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro de checksum ao tentar instalar o Telegraf

Olá, estou com problemas ao tentar executar o seguinte comando

sudo apt-get install telegraf

O seguinte log é apresentado e o Telegraf não é instalado:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  telegraf
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 29.4 MB of archives.
After this operation, 108 MB of additional disk space will be used.
Get:1 https://repos.influxdata.com/ubuntu bionic/stable amd64 telegraf amd64 1.18.3-1 [29.4 MB]
Err:1 https://repos.influxdata.com/ubuntu bionic/stable amd64 telegraf amd64 1.18.3-1
  Hash Sum mismatch
  Hashes of expected file:
   - SHA256:6f5952496aa597a1a0ff93e6f132ba75d9507ba42e5d8474ffe82eb00287a05b
   - SHA1:5d8cccc86299824f8d7417e329f95e80f87b9502 [weak]
   - MD5Sum:1b5cc88cf1982f522db2b4cd9ce9d006 [weak]
   - Filesize:29433322 [weak]
  Hashes of received file:
   - SHA256:5d3435f0499a3ecc251fa68753685cb0e8f4ebbac86c4bdcf54ac9a4c329c44f
   - SHA1:0bc31ffbe5d743e9ec8cf428b04df5086a9cbd74 [weak]
   - MD5Sum:ab9bbb9a07671f7b5cc2c1e3b4bb1577 [weak]
   - Filesize:29433322 [weak]
  Last modification reported: Mon, 24 May 2021 15:23:53 +0000
Fetched 29.4 MB in 6s (4593 kB/s)
E: Failed to fetch https://repos.influxdata.com/ubuntu/pool/stable/t/telegraf/telegraf_1.18.3-1_amd64.deb  Hash Sum mismatch
   Hashes of expected file:
    - SHA256:6f5952496aa597a1a0ff93e6f132ba75d9507ba42e5d8474ffe82eb00287a05b
    - SHA1:5d8cccc86299824f8d7417e329f95e80f87b9502 [weak]
    - MD5Sum:1b5cc88cf1982f522db2b4cd9ce9d006 [weak]
    - Filesize:29433322 [weak]
   Hashes of received file:
    - SHA256:5d3435f0499a3ecc251fa68753685cb0e8f4ebbac86c4bdcf54ac9a4c329c44f
    - SHA1:0bc31ffbe5d743e9ec8cf428b04df5086a9cbd74 [weak]
    - MD5Sum:ab9bbb9a07671f7b5cc2c1e3b4bb1577 [weak]
    - Filesize:29433322 [weak]
   Last modification reported: Mon, 24 May 2021 15:23:53 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Aconteceu um erro semelhante ao tentar instalar o docker.

Alguma ideia do que possa ser?

1 resposta
solução!

Consegui resolver, era só adicionar o --fix-missing, conforme a própria mensagem já indicava.

sudo apt-get install --fix-missing telegraf