1
resposta

Erro instalar Jenkins

Aula r do curso: Jenkins e Docker: Pepilne de entrega continua.

Erro ao usar o script: jenkins.sh (fornecido no curso)

vagrant@ubuntu-bionic:/vagrant/scripts$ sudo apt install --fix-missing jenkins Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: daemon The following NEW packages will be installed: daemon jenkins 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 65.1 MB of archives. After this operation, 66.8 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:2 http://archive.ubuntu.com/ubuntu bionic/universe amd64 daemon amd64 0.6.4-1build1 [99.5 kB] Get:1 https://pkg.jenkins.io/debian-stable binary/ jenkins 2.235.3 [65.0 MB] Err:1 https://pkg.jenkins.io/debian-stable binary/ jenkins 2.235.3 Hash Sum mismatch Hashes of expected file:

  • SHA512:8cec42fb71d4c5258b02f2e961c3b17f881ba57229ea74a6854a0cb5a741f6c21acb4bc0e8c6129379f9f24e07ebf373dbfb1e3cf348fa77b3ab744fe334dcc3
  • SHA256:b8d3286e03c4c01f4d23a41230b19b079908e50c97f07211e3448b74983ba616
  • SHA1:89a37ed1b3c8c14ff94cc66c3f2254f281b60794 [weak]
  • MD5Sum:561e4c2274841ca77c11ac6eb03ec621 [weak]
  • Filesize:64958476 [weak] Hashes of received file:
  • SHA512:67021e3256c4d43b638fef836d2f606d958c48dbfcb34e7bbf3228269f8b50cde0cd42f44e1ea19414675cfbecadb2701d713f571f19c3cbdabd3bbf18c978e0
  • SHA256:29a0777b16ef5ee9a5f96f1a6811b3119531e54dfc8d9908e80306ac1ddebf3d
  • SHA1:7df410a317ac6abf6938d9b06f675f5f2d40ec4e [weak]
  • MD5Sum:bef7633e5eddcfc4a2b452f9ad486df1 [weak]
  • Filesize:64958476 [weak] Last modification reported: Mon, 27 Jul 2020 17:29:09 +0000 Fetched 65.1 MB in 38s (1700 kB/s) Selecting previously unselected package daemon. (Reading database ... 84227 files and directories currently installed.) Preparing to unpack .../daemon_0.6.4-1build1_amd64.deb ... Unpacking daemon (0.6.4-1build1) ... Setting up daemon (0.6.4-1build1) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... E: Failed to fetch https://prodjenkinsreleases.blob.core.windows.net/debian-stable/jenkins_2.235.3_all.deb Hash Sum mismatch Hashes of expected file:
    • SHA512:8cec42fb71d4c5258b02f2e961c3b17f881ba57229ea74a6854a0cb5a741f6c21acb4bc0e8c6129379f9f24e07ebf373dbfb1e3cf348fa77b3ab744fe334dcc3
    • SHA256:b8d3286e03c4c01f4d23a41230b19b079908e50c97f07211e3448b74983ba616
    • SHA1:89a37ed1b3c8c14ff94cc66c3f2254f281b60794 [weak]
    • MD5Sum:561e4c2274841ca77c11ac6eb03ec621 [weak]
    • Filesize:64958476 [weak] Hashes of received file:
    • SHA512:67021e3256c4d43b638fef836d2f606d958c48dbfcb34e7bbf3228269f8b50cde0cd42f44e1ea19414675cfbecadb2701d713f571f19c3cbdabd3bbf18c978e0
    • SHA256:29a0777b16ef5ee9a5f96f1a6811b3119531e54dfc8d9908e80306ac1ddebf3d
    • SHA1:7df410a317ac6abf6938d9b06f675f5f2d40ec4e [weak]
    • MD5Sum:bef7633e5eddcfc4a2b452f9ad486df1 [weak]
    • Filesize:64958476 [weak] Last modification reported: Mon, 27 Jul 2020 17:29:09 +0000 vagrant@ubuntu-bionic:/vagrant/scripts$
1 resposta

Olá Alexandre, tudo bem? Você tentou entrar na VM e executar os comandos abaixo como é apresentado na documentação:

  • Baixar as keys:
    wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
  • Adicionar o repositório:
    deb https://pkg.jenkins.io/debian-stable binary/
  • Atualizar os pacotes e instalar o Jenkins:
    sudo apt-get update
    sudo apt-get install jenkins

Fala pra gente o resultado!