-
Bug
-
Resolution: Not A Defect
-
Critical
-
None
-
Debian 10 Buster
Jenkins 2.231
Since last week we get an error, when we upgrade jenkins. we have added the new key with "apt-key add" and when we run the update command we get this error message. Also a --fix-missig get this error.
root:~# apt-get update Hit:1 http://ftp.de.debian.org/debian buster InRelease Hit:2 http://ftp.de.debian.org/debian buster-updates InRelease Hit:3 http://security.debian.org/debian-security buster/updates InRelease Ign:4 https://adoptopenjdk.jfrog.io/adoptopenjdk/deb buster InRelease Hit:5 https://adoptopenjdk.jfrog.io/adoptopenjdk/deb buster Release Ign:7 https://pkg.jenkins.io/debian binary/ InRelease Hit:8 https://pkg.jenkins.io/debian binary/ Release Reading package lists... Done root@ser503:~# apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: jenkins 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 64.6 MB of archives. After this operation, 2,048 B of additional disk space will be used. Do you want to continue? [Y/n] Get:1 https://pkg.jenkins.io/debian binary/ jenkins 2.232 [64.6 MB] Err:1 https://pkg.jenkins.io/debian binary/ jenkins 2.232 File has unexpected size (64603200 != 64603188). Mirror sync in progress? [IP: 52.167.88.112 443] Hashes of expected file: - SHA512:18fc1c92d22bcc6b21971f1ae32e042eb619914b2e48c4d657c05a657d92603f8c5de917abd55ed9b7e6be1477625d02dbdd850985527477397dbafe2620988a - SHA256:149255dadb80cbfad25f042b3db338e46182a8ee5d9043031213fa41d5692275 - SHA1:2989c1f14cb9f6ebbbdc8068efe27d397203434d [weak] - MD5Sum:0579b24059d6b45c2631c16cd3cd2cbd [weak] - Filesize:64603188 [weak] E: Failed to fetch https://prodjenkinsreleases.blob.core.windows.net/debian/jenkins_2.232_all.deb File has unexpected size (64603200 != 64603188). Mirror sync in progress? [IP: 52.167.88.112 443] Hashes of expected file: - SHA512:18fc1c92d22bcc6b21971f1ae32e042eb619914b2e48c4d657c05a657d92603f8c5de917abd55ed9b7e6be1477625d02dbdd850985527477397dbafe2620988a - SHA256:149255dadb80cbfad25f042b3db338e46182a8ee5d9043031213fa41d5692275 - SHA1:2989c1f14cb9f6ebbbdc8068efe27d397203434d [weak] - MD5Sum:0579b24059d6b45c2631c16cd3cd2cbd [weak] - Filesize:64603188 [weak] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The we have delete the jenkins repository like the following.
root:~# apt-key list /etc/apt/trusted.gpg -------------------- pub rsa4096 2020-03-30 [SC] [expires: 2023-03-30] 62A9 756B FD78 0C37 7CF2 4BA8 FCEF 32E7 45F2 C3D5 uid [ unknown] Jenkins Project <jenkinsci-board@googlegroups.com> sub rsa4096 2020-03-30 [E] [expires: 2023-03-30] root:~# apt-key del "62A9 756B FD78 0C37 7CF2 4BA8 FCEF 32E7 45F2 C3D5" root:~# rm /etc/apt/sources.list.d/jenkins.list root:~# apt-get update
After then we have added the Repository like this.
root:~# wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | apt-key add - root:~# echo -e "\n\ndeb https://pkg.jenkins.io/debian/debian binary/\n" >>/etc/apt/sources.list
Now we get the error message, the th Release file is not found. Is your mirror corrumpted?
root:~# apt-get update Hit:1 http://ftp.de.debian.org/debian buster InRelease Hit:2 http://ftp.de.debian.org/debian buster-updates InRelease Hit:3 http://security.debian.org/debian-security buster/updates InRelease Ign:4 https://adoptopenjdk.jfrog.io/adoptopenjdk/deb buster InRelease Hit:5 https://adoptopenjdk.jfrog.io/adoptopenjdk/deb buster Release Ign:7 https://pkg.jenkins.io/debian/debian binary/ InRelease Err:8 https://pkg.jenkins.io/debian/debian binary/ Release 404 Not Found [IP: 52.202.51.185 443] Reading package lists... Done E: The repository 'https://pkg.jenkins.io/debian/debian binary/ Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.