이럴땐 어떻게 하냐고?
키를 다시 발급받아주면 된다.
간단하구만
curl "https://packages.gitlab.com/gpg.key" -o /tmp/omnibus_gitlab_gpg.key sudo apt-key add /tmp/omnibus_gitlab_gpg.key sudo apt update
curl "https://packages.gitlab.com/gpg.key" -o /tmp/omnibus_gitlab_gpg.key sudo apt-key add /tmp/omnibus_gitlab_gpg.key sudo apt update
root@devops:~# systemctl status jenkins.service ● jenkins.service - Jenkins Continuous Integration Server Loaded: loaded (/lib/systemd/system/jenkins.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/jenkins.service.d └─override.conf Active: failed (Result: exit-code) since Fri 2022-03-11 09:51:28 KST; 9s ago Process: 2226 ExecStart=/usr/bin/jenkins (code=exited, status=1/FAILURE) Main PID: 2226 (code=exited, status=1/FAILURE) Mar 11 09:51:27 devops systemd[1]: jenkins.service: Main process exited, code=exited, status=1/FAILURE Mar 11 09:51:27 devops systemd[1]: jenkins.service: Failed with result 'exit-code'. Mar 11 09:51:27 devops systemd[1]: Failed to start Jenkins Continuous Integration Server. Mar 11 09:51:28 devops systemd[1]: jenkins.service: Scheduled restart job, restart counter is at 5. Mar 11 09:51:28 devops systemd[1]: Stopped Jenkins Continuous Integration Server. Mar 11 09:51:28 devops systemd[1]: jenkins.service: Start request repeated too quickly. Mar 11 09:51:28 devops systemd[1]: jenkins.service: Failed with result 'exit-code'. Mar 11 09:51:28 devops systemd[1]: Failed to start Jenkins Continuous Integration Server.
root@devops:/# update-alternatives --config java There are 3 choices for the alternative java (providing /usr/bin/java). Selection Path Priority Status ------------------------------------------------------------ 0 /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1711 auto mode * 1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual mode 2 /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1711 manual mode 3 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode Press <enter> to keep the current choice[*], or type selection number: