Closed welikesingh closed 11 months ago
we need to run below before install command which was missing
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \ https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \ https://pkg.jenkins.io/debian-stable binary/ | sudo tee \ /etc/apt/sources.list.d/jenkins.list > /dev/null
I have created ubuntu ec2 instance sudo apt update sudo apt install openjdk-17-jdk -y sudo apt-get install jenkins -y
on this command getting error : E: Package 'jenkins' has no installation candidate