Por razões que desconheço me foi apresentado o erro abaixo ao tentar instalar o jenkins.
Get:2 http://mirrors.ubuntu.com/mirrors.txt Mirrorlist [373 B]
Get:3 http://mirror.ufscar.br/ubuntu bionic/universe amd64 daemon amd64 0.6.4-1build1 [99.5 kB]
Get:1 https://pkg.jenkins.io/debian-stable binary/ jenkins 2.222.3 [65.2 MB]
Err:1 https://pkg.jenkins.io/debian-stable binary/ jenkins 2.222.3
Hash Sum mismatch
Hashes of expected file:
- SHA512:f82719ab225b48eae2b35d66ecb777af2039c121129749d7265c7d3bfdb9d953cb6a0484344105d00294fcd3f4a451d01e7f938cbae2c7324089038e536cd716
- SHA256:1294ece4ee9f48554ac32c6ad5e8a415a333a3a4245f6083d8db22a3188b4069
- SHA1:1707906b7619b6a4c78dd4f63384742d3361b399 [weak]
- MD5Sum:81761109af7378e854db6757b423062a [weak]
- Filesize:65193472 [weak]
Hashes of received file:
- SHA512:63ab4bd246ef1676b8e061067099ca0903cae26806f19e89d9c7e64a0eaac652c2ddf516b34ae1e3d7b56665ccb66eecb786481b4416eb745c41471cccc36275
- SHA256:dc08a2f46f82973519188e35edc9869fe9229780f49b8766265ff02ef28dfc08
- SHA1:fd78d7bbb430d45308a989255fb3ed22fe56f211 [weak]
- MD5Sum:cd86a936d5d8e7bf767e3415cbe1e5c6 [weak]
- Filesize:65193472 [weak]
Last modification reported: Fri, 24 Apr 2020 23:13:11 +0000
Fetched 65.3 MB in 13s (5145 kB/s)
E: Failed to fetch https://prodjenkinsreleases.blob.core.windows.net/debian-stable/jenkins_2.222.3_all.deb Hash Sum mismatch
Hashes of expected file:
- SHA512:f82719ab225b48eae2b35d66ecb777af2039c121129749d7265c7d3bfdb9d953cb6a0484344105d00294fcd3f4a451d01e7f938cbae2c7324089038e536cd716
- SHA256:1294ece4ee9f48554ac32c6ad5e8a415a333a3a4245f6083d8db22a3188b4069
- SHA1:1707906b7619b6a4c78dd4f63384742d3361b399 [weak]
- MD5Sum:81761109af7378e854db6757b423062a [weak]
- Filesize:65193472 [weak]
Hashes of received file:
- SHA512:63ab4bd246ef1676b8e061067099ca0903cae26806f19e89d9c7e64a0eaac652c2ddf516b34ae1e3d7b56665ccb66eecb786481b4416eb745c41471cccc36275
- SHA256:dc08a2f46f82973519188e35edc9869fe9229780f49b8766265ff02ef28dfc08
- SHA1:fd78d7bbb430d45308a989255fb3ed22fe56f211 [weak]
- MD5Sum:cd86a936d5d8e7bf767e3415cbe1e5c6 [weak]
- Filesize:65193472 [weak]
Last modification reported: Fri, 24 Apr 2020 23:13:11 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Após muita pesquisa encontrei que existe certa recorrência em erros desse tipo e que pode ser um problema de cache no provedor de internet. De toda forma esses sites propuseram alguns comandos que juntei e deixo abaixo caso ajude alguém, para mim ainda precisei de mais coisas.
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get clean
sudo apt-get update -o Acquire::CompressionTypes::Order::=gz --fix-missing
sudo apt-get install jenkins
Alterei até os mirrors utilizados com a seguinte inserção no início do arquivo /etc/apt/souces.list
deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse
Enfim, o que funcionou para mim foi similar ao feito pelo Antonio (https://cursos.alura.com.br/forum/topico-erro-ao-instalar-jenkins-110859). Deixo o script abaixo.
wget https://pkg.jenkins.io/debian-stable/binary/jenkins_2.222.3_all.deb
sudo dpkg -i jenkins_2.222.3_all.deb
sudo apt --fix-broken install
No meu caso a instalação do jenkings via dpkg reclamou de uma dependência que foi resolvida no comando seguinte.