Answer the question
In order to leave comments, you need to log in
How to install jenkins if Hash Sum mismatch?
Trying to install on a clean ubuntu 18.04 Jenkins but getting an error. Java installed: openjdk-8-jre.
Other packages download fine.
Installation from documentation:
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt update
sudo apt install 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 63.3 MB of archives.
After this operation, 63.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ru.archive.ubuntu.com/ubuntu bionic/universe amd64 daemon amd64 0.6.4-1build1 [99.5 kB]
Get:2 https://pkg.jenkins.io/debian-stable binary/ jenkins 2.204.5 [63.2 MB]
Err:2 https://pkg.jenkins.io/debian-stable binary/ jenkins 2.204.5
Hash Sum mismatch
Hashes of expected file:
- SHA512:60f60f02747d9993ab35185910352834a8d25750b3c62258dd1f616eb9716f7e697fe2a1a7252632f140159167a4cc56ee1db2165 d65868db4d0ea108e08a739
- SHA256:05ee55d82d5baa12094877bb6f9e74e0ca63cacdb0a0c222815a77b59b3ccd12
- SHA1:379ad8ee386b6cc5f9c6c4513e8d045ed5c2aab7 [weak]
- MD5Sum:93c550f232b9d1874e310da37b6c26c5 [weak]
- Filesize:63201636 [weak]
Hashes of received file:
- SHA512:94284388c1406901045ea7cd3b691615c65999fbce1b2a831164e14fbacd03c6b2e9295e5a21a4d2c1b23420d096fca5e6f0d5b43 1e40b2f4f44687e9906f25b
- SHA256:4e23722374a911aafd4c97ab6aae0c22a3091b5a105877c741a8d6497455acbd
- SHA1:c54edf8b56cc3b4e69184f91da4276eedc90857d [weak]
- MD5Sum:0014490c3200ff69af2b1cc70643a242 [weak]
- Filesize:63201636 [weak]
Last modification reported: Sat, 07 Mar 2020 21:33:04 +0000
Fetched 63.3 MB in 2min 5s (506 kB/s)
E: Failed to fetch https://prodjenkinsreleases.blob.core.windows.net/debian-stable/jenkins_2.204.5_all.deb Hash Sum mismatch
Hashes of expected file:
- SHA512:60f60f02747d9993ab35185910352834a8d25750b3c62258dd1f616eb9716f7e697fe2a1a7252632f140159167a4cc56ee1db216 5d65868db4d0ea108e08a739
- SHA256:05ee55d82d5baa12094877bb6f9e74e0ca63cacdb0a0c222815a77b59b3ccd12
- SHA1:379ad8ee386b6cc5f9c6c4513e8d045ed5c2aab7 [weak]
- MD5Sum:93c550f232b9d1874e310da37b6c26c5 [weak]
- Filesize:63201636 [weak]
Hashes of received file:
- SHA512:94284388c1406901045ea7cd3b691615c65999fbce1b2a831164e14fbacd03c6b2e9295e5a21a4d2c1b23420d096fca5e6f0d5b4 31e40b2f4f44687e9906f25b
- SHA256:4e23722374a911aafd4c97ab6aae0c22a3091b5a105877c741a8d6497455acbd
- SHA1:c54edf8b56cc3b4e69184f91da4276eedc90857d [weak]
- MD5Sum:0014490c3200ff69af2b1cc70643a242 [weak]
- Filesize:63201636 [weak]
Last modification reported: Sat, 07 Mar 2020 21:33:04 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get clean
sudo apt-get update
sudo apt install --fix-missing jenkins
Answer the question
In order to leave comments, you need to log in
Probably the latest version is broken.
Try
apt install jenkins=2.204.4
Or you can try
sudo rm -rf /var/lib/apt/lists/*
sudo apt clean
sudo apt update
to redownload the package
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question