Solucionado (ver solução)
Solucionado
(ver solução)
3
respostas

[Bug] E: Package 'jenkins' has no installation candidate

Fala pessoal, blz? Estou precisando de uma ajuda. Não to conseguindo instalar o jenkins na minha maquina.

Tentei alterando o arquivo jenkins.sh como foi mencionado em um topico anterior, mas tbm não rolou.

Ja instalei o Java 11 tbm

vagrant@ubuntu-bionic:/vagrant/scripts$ sudo ./jenkins.sh                                                             
OK                                                                                                                    
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease                                                       
Ign:2 https://pkg.jenkins.io/debian-stable binary/ InRelease                                                          
Get:3 https://pkg.jenkins.io/debian-stable binary/ Release [2044 B]                                                   
Get:4 https://pkg.jenkins.io/debian-stable binary/ Release.gpg [833 B]                                                
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                                           
Hit:6 http://archive.ubuntu.com/ubuntu bionic InRelease                                                               
Ign:4 https://pkg.jenkins.io/debian-stable binary/ Release.gpg                                                        
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                                             
Get:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [83.3 kB]                                           
Reading package lists... Done                                                                                         
W: GPG error: https://pkg.jenkins.io/debian-stable binary/ Release: The following signatures couldn't be verified beca
use the public key is not available: NO_PUBKEY 5BA31D57EF5975CA                                                       
E: The repository 'https://pkg.jenkins.io/debian-stable binary/ Release' is not signed.                               
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.                                  
Reading package lists... Done                                                                                         
Building dependency tree                                                                                              
Reading state information... Done                                                                                     
Package jenkins is not available, but is referred to by another package.                                              
This may mean that the package is missing, has been obsoleted, or                                                     
is only available from another source                                                                                 
3 respostas
solução!

Bom dia,

Corrigi utilizando o seguinte site https://pkg.jenkins.io/debian/

Para a correção, atualizei conforme os posts anteriores, mas com um endereço diferente:

https://pkg.jenkins.io/debian/jenkins.io-2023.key

Funcionou para mim, usando esse script, alterei o endereço confome o colega falou acima

wget -q -O - https://pkg.jenkins.io/debian/jenkins.io-2023.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 sudo apt-get install jenkins

wget -q -O - https://pkg.jenkins.io/debian/jenkins.io-2023.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
sudo apt-get install jenkins