I'm trying to install Jenkins on an Azure VM with Ubuntu 20.04 following the next command lines:
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-get update -y
sudo apt-get install jenkins -y
But when I try to install Jenkins with the last command, this happens:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
jenkins
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 91.4 MB of archives.
After this operation, 95.0 MB of additional disk space will be used.
Err:1 https://pkg.jenkins.io/debian-stable binary/ jenkins 2.332.3
Redirection from https to 'http://mirrors.jenkins.io/debian-stable/jenkins_2.332.3_all.deb' is forbidden [IP: 146.75.30.133 443]
E: Failed to fetch https://pkg.jenkins.io/debian-stable/binary/jenkins_2.332.3_all.deb Redirection from https to 'http://mirrors.jenkins.io/debian-stable/jenkins_2.332.3_all.deb' is forbidden [IP: 146.75.30.133 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
How can I solve this issue?
CodePudding user response:
i have some problem like you too,
CodePudding user response:
I actually solved the problem, I don't know why with the actuall Jenkins installation guide it doesn't work but i solved it with these 2 command lines:
wget https://pkg.jenkins.io/debian-stable/binary/jenkins_2.332.3_all.deb
sudo dpkg -i jenkins_2.332.3_all.deb
I've been trying with some versions till I found the one that worked, and now Jenkins is working.
https://deb.pkgs.org/packages/jenkins/jenkins_2.332.3_all.deb.html