QT-DevOps / AzureIssues

This repository is for questions
8 stars 27 forks source link

Jenkin install issue #115

Closed welikesingh closed 11 months ago

welikesingh commented 11 months ago

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

image

welikesingh commented 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