How to Safely Install Jenkins on Linux(Ubuntu) Without Errors

Software Engineer | Developer Advocate | Technical Writer | Content Creator
Search for a command to run...

Software Engineer | Developer Advocate | Technical Writer | Content Creator
No comments yet. Be the first to comment.
Installations, bug fixes, methodologies, tools, containers, configuration management, and many other topics are covered in the DevOps series.
It's already Friday 🥳, and I'm glad you're here. We'll see how it goes with another day of problem-solving. What is Nginx? Nginx is a free and open-source web server that's frequently used as a reverse proxy or HTTP cache. It's entirely free for Lin...
Step-by-Step Solidity Guide for Beginners: Building Your First Token

Prioritizing Depth Instead of Going with Trends

Cross-chain messaging allows seamless communication and interaction between different blockchain ecosystems, from Ethereum Virtual Machine (EVM)-based chains to Cosmos-based chains. Axelar has long been the best way to connect EVM and Cosmos chains v...

You have millions of unique images in your gallery, each representing a piece of private or personal data stored on your phone. After an incident, you lost your device, but it was returned to you after many months, with claims that the images hadn't ...

Marking a Year of Contributions to Axelar: Pioneering the Future of Interoperability

It's already Friday 🥳, and I'm glad you're here.
Time to share knowledge. Of course, it's another day of problem-solving.
As a result, DevOps engineers interested in using the latest Ubuntu features in their CI should undertake an Ubuntu 20.04 Jenkins installation, which is the subject of this post.
We will install Jenkins on our Ubuntu server in a few steps in this article. I discovered some information about this, but it failed when I tried to install it, and I will tell you how I could fix it because you may run into the same problem.
sudo apt-get update
Here is an important step that I don't know about, which made me ran into an error.
Several developers, including myself, have encountered the dreaded Failed to start LSB: Start Jenkins at boot time problem when installing Jenkins on Ubuntu with Java 11.
However, we will use openjdk-8-jdk to ensure we don't run into the same error again.
Use the command below to install openjdk-8-jdk
sudo apt-get install openjdk-8-jdk
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -
then
sudo sh -c 'echo deb https://pkg.jenkins.io/debian binary/ > \
/etc/apt/sources.list.d/jenkins.list'
sudo apt-get update
sudo apt-get install jenkins
Voila 🥳 we are good to go.
On the terminal, we will see a prompt on configuring administrator on Jenkins and getting started.
That's it, for this Friday, I hope you find this information useful.
I'd love to connect with you at Twitter | LinkedIn | GitHub | Portfolio
See you next Friday in DevOpsFriday series. Take care!!!