How to Install GoLand on Ubuntu 22.04 or 20.04

JetBrains GoLand is a premier integrated development environment (IDE) designed explicitly for Go programming. JetBrains developed this IDE to streamline the coding process, enhance productivity, and facilitate efficient code writing.

Key Features of GoLand

  • Coding Assistance: GoLand offers intelligent code completions, quick fixes, and refactoring options.
  • Integrated Tools: The IDE incorporates essential tools like Version Control Systems, REST Client, and Docker, all within a unified environment.
  • Debugging: Robust debugging features are built in, allowing in-IDE debugging for a smooth development experience.
  • Testing: GoLand supports test-driven development with its built-in test runner and coverage tool.
  • Cross-Platform: Available on Windows, macOS, and Linux, GoLand is a genuinely cross-platform IDE.

GoLand’s robust features make it a top choice for Go developers, regardless of their experience level. Our forthcoming guide will focus on how to install GoLand on Ubuntu 22.04 Jammy Jellyfish or Ubuntu 20.04 Focal Fossa LTS Linux. We’ll cover multiple installation methods, including APT with an unofficial JetBrains PPA, snap, and flatpak.

Section 1: Install GoLand via APT PPA on Ubuntu 22.04 or 20.04

Step 1: Preparation of the Ubuntu System for GoLand

Before initiating the installation process of any new software, it is essential to update the local package database of our system. This step ensures that our Ubuntu system remains current with the newest versions of all available software, thereby providing a seamless platform for future installations. To achieve this, execute the command:

sudo apt update

After refreshing the package database, it is highly recommended to upgrade the system. This step helps ensure that all the installed software on your system is updated to the latest versions, thereby contributing to a more secure and stable operating environment. To upgrade the system, run the following command:

sudo apt upgrade

Step 2: Adding Necessary Packages

We need to install a few essential packages on our system for the installation process to proceed smoothly. These packages, which include dirmngr, ca-certificates, software-properties-common, apt-transport-https, curl, and lsb-release, enable secure file transfers, manage repositories, and perform other critical package-related functions. To install these packages, execute the following command:

sudo apt install dirmngr ca-certificates software-properties-common apt-transport-https curl lsb-release -y

Step 3: Import JetBrains PPA by Jonas Groeger on Ubuntu

At this point, it’s necessary to add the JetBrains Personal Package Archive (PPA) to the list of repositories in our system. Adding this repository to our system enables APT to fetch JetBrains GoLand directly from JetBrains’ PPA.

To ensure the authenticity of packages, it’s important to import the GPG key for the JetBrains repository. The GNU Privacy Guard (GPG), which adheres to the OpenPGP standard, verifies the genuineness of the packages in the repository, thus ensuring that the packages are genuinely from JetBrains. To import the GPG key, execute the following command:

curl -s | gpg --dearmor | sudo tee /usr/share/keyrings/jetbrains-ppa-archive-keyring.gpg > /dev/null

Next, import the repository with the following command:

echo "deb [signed-by=/usr/share/keyrings/jetbrains-ppa-archive-keyring.gpg] any main" | sudo tee /etc/apt/sources.list.d/jetbrains-ppa.list > /dev/null

Step 4: Updating the APT Package Index after GoLand PPA Import on Ubuntu

Once we have added a new repository to our system, updating the APT package database is crucial. This action ensures our system knows the latest package information from the newly added JetBrains PPA. To update the APT package database, execute the following command:

sudo apt update

Step 5: Install GoLand on Ubuntu 22.04 or 20.04 via APT Command

We are now ready to install JetBrains GoLand. Our system is prepared with the GoLand package details from the JetBrains PPA and is set to download and install it. To begin the installation process, use the following APT install command:

sudo apt install goland

Once this command is executed, APT will download JetBrains GoLand, resolve any dependencies that may be required, and install them on your system. The next two sections offer snap or flatpak methods for users who prefer using these package managers instead of this PPA.

Section 2: Install GoLand via Snap on Ubuntu 22.04 or 20.04

Snap, a package management and software deployment system, was conceived by Canonical, the creator of Ubuntu. This tool was designed to simplify software installation and ongoing maintenance across various Linux distributions. This section will elaborate on installing JetBrains GoLand using the Snap package manager.

Step 1: Verification of Snap Presence on Ubuntu

Canonical, the creators of Ubuntu, have included Snap as a default feature in most Ubuntu distributions. However, in certain scenarios, Snap might not be pre-installed or could have been manually removed. In such situations, Snap can be reinstalled on your system using the following command:

sudo apt install snapd -y

The execution of this command results in the installation of the Snap Daemon (snapd), a background service that manages and maintains Snap packages on your system.

Step 2: Enable Classic Snap Support on Ubuntu for GoLand

Certain Snap packages necessitate ‘classic’ confinement, a feature that allows the Snap package to access your system’s resources, similar to conventional software. To ensure broad compatibility and smooth operation of these packages, we create a symbolic link (symlink) using the following command:

sudo ln -s /var/lib/snapd/snap /snap

The execution of the above command forms a symlink between /var/lib/snapd/snap and /snap, effectively enabling classic Snap support on your system.

Step 3: Installing the Core Snap

Before commencing JetBrains GoLand, it is essential to install the ‘core’ Snap. This core Snap is a base for other Snaps, providing the necessary libraries and services they depend upon. This proactive step helps avoid potential conflicts or problems that may arise in the future. To install the core Snap, execute the following command:

sudo snap install core

Step 4: Install GoLand on Ubuntu 22.04 or 20.04 via Snap Command

Now that we have set up the prerequisites, we are ready to install JetBrains GoLand. The installation can be accomplished by executing the following command:

sudo snap install goland --classic

In the above command, sudo is used to grant elevated privileges, snap invokes the Snap package manager, install indicates the action to install a package, goland is the package we’re targeting for installation, and the --classic option allows GoLand to access your system’s resources, similar to a conventionally packaged application.

Section 3: Install GoLand via Flatpak and Flathub on Ubuntu 22.04 or 20.04

Flatpak is a universal package management system built with the Linux ecosystem in mind. Although it resembles Snap, Flatpak has a unique sandboxing feature. This function creates a safe, contained environment for applications, effectively isolating them from the rest of the system. This isolation boosts system security and reduces the potential for software conflicts. This section thoroughly explains how to install JetBrains GoLand using Flatpak and Flathub.

Step 1: Enable Flathub Repository for GoLand on Ubuntu

As we embark on the journey to install JetBrains GoLand using Flatpak, our initial step involves enabling the Flathub repository. Flathub functions as a trusted platform for distributing Flatpak applications. It operates similarly to an online app store, providing access to many applications ready for installation.

To integrate the Flathub repository into your system’s configuration, execute the following command in your terminal:

sudo flatpak remote-add --if-not-exists flathub

Executing the command above integrates the Flathub repository seamlessly into your Flatpak configuration. This integration paves the way for a broad spectrum of applications, including JetBrains GoLand.

Step 2: Install GoLand on Ubuntu 22.04 or 20.04 via Flatpak Command

Having successfully integrated the Flathub repository into your system, the next step in the sequence involves the installation of JetBrains GoLand. This process employs the flatpak install command. The specific command for installing JetBrains GoLand is as follows:

flatpak install flathub com.jetbrains.GoLand -y

This command triggers the download and installation of JetBrains GoLand from the Flathub repository, ensuring the latest stable version of the application is secured for use.

It’s important to note that if your system does not currently support Flatpak, it must be installed in advance. For a comprehensive guide on how to install the most recent supported version of Flatpak on Ubuntu, we recommend visiting our detailed guide on installing Flatpak.

Section 4: Launching GoLand on Ubuntu 22.04 or 20.04

Upon successfully installing JetBrains GoLand on your Ubuntu system, the subsequent step involves starting the application. There are two main ways to initiate GoLand: the command-line interface (CLI) and the graphical user interface (GUI). Each method provides flexibility, catering to user preferences and how they interact with their system. This section illuminates the procedure of starting GoLand using both of these methods.

Starting GoLand through the Command-Line Interface (CLI) on Ubuntu

The command-line interface is an essential tool within the Linux environment, and the launch of applications such as JetBrains GoLand is no exception. The following subsections will outline how to start GoLand using different command sets, depending on your chosen installation method—APT, Snap, and Flatpak.

Launching GoLand using the APT Command on Ubuntu

To start GoLand using the APT command, open your terminal and input the following command:


Executing this command starts the Integrated Development Environment (IDE), preparing it for your coding projects.

Launching GoLand using the Snap Command on Ubuntu

If you have installed JetBrains GoLand using Snap, the command to initiate it is:

snap run goland

On execution, this command starts GoLand, provided the installation process is completed successfully.

Launching GoLand using the Flatpak Command on Ubuntu

If you have opted for Flatpak as your installation method, you can initiate GoLand using the following command in your terminal:

flatpak run com.jetbrains.GoLand

This command will kick-start GoLand, provided the installation completed successfully.

Starting GoLand through the Graphical User Interface (GUI) on Ubuntu

Ubuntu’s graphical user interface (GUI) offers an alternate way to start GoLand for those who favor a more visual approach. Here is the step-by-step process:

  • Access the Activities menu: This can be found at the top-left corner of your desktop screen.
  • Select the ‘Show Applications’ icon: This is situated at the bottom of the Activities overlay.
  • Search for GoLand: You can manually scroll through your applications or use the search bar for a quicker find.
  • Start GoLand: Finally, click the GoLand icon to start the IDE, preparing it for your coding tasks.
GoLand application icon on Ubuntu 22.04 or 20.04 Linux desktop for launching the software.Pin
Screenshot of the GoLand application icon used to launch the IDE on Ubuntu 22.04 or 20.04 Linux.

Section 5: Tips for Getting Started with GoLand on Ubuntu 22.04 or 20.04

Once you’ve successfully installed JetBrains GoLand on your Ubuntu system, several tips can help you make the most of your new IDE and enhance your coding experience. Here, we discuss general tips, customization options, and other handy advice.

General Tips for GoLand on Ubuntu

These general tips can help you navigate GoLand, increasing productivity and making your coding experience more efficient and enjoyable.

  • Master the Keyboard Shortcuts: Familiarize yourself with GoLand’s various keyboard shortcuts. They can significantly speed up your coding and navigation within the IDE. JetBrains has an excellent reference guide on its official website.
  • Leverage the Power of the Built-In Terminal: GoLand has a built-in terminal. You can use this terminal just as you would use your regular system terminal without having to leave the IDE. This can be a real-time saver when working on your projects.
  • Use Code Completion: GoLand features smart code completion that predicts and suggests what you’re about to type. This can save you a lot of time and effort when writing code. It’s a valuable tool, especially when new to a programming language or framework.
  • Explore the Debugging Tools: GoLand comes with powerful debugging tools. Learning to use these is worth it, as they can be incredibly beneficial when identifying and resolving issues in your code.
  • Regularly Update GoLand: JetBrains frequently releases updates for GoLand, aiming to fix bugs, improve performance, or add new features. Keep your IDE updated to ensure a smooth and efficient coding experience.

Customization Tips for GoLand on Ubuntu

Customizing your IDE can make it more comfortable to work with. Here are some ways you can tailor GoLand to your liking.

  • Adjust the Theme: GoLand allows you to choose from several pre-configured themes or create your own. You can adjust the IDE and editor themes separately, enabling you to create a personalized coding environment.
  • Configure the Editor: GoLand lets you customize your editor extensively. You can adjust font size, line spacing, and color schemes to suit your preferences.
  • Manage Tool Windows: GoLand features several tool windows that provide additional functionality. You can customize their layout, size, and visibility, among other things, to create a workspace that best suits your workflow.
  • Create Your Own Keymap: If you’re uncomfortable with the default keyboard shortcuts, GoLand allows you to create your own keymap or modify the existing one. You can set up intuitive shortcuts that are easy to remember.

Other Tips for GoLand on Ubuntu

Here are a few more tips to enhance your GoLand experience.

  • Use VCS Integration: GoLand offers excellent integration with various Version Control Systems (VCS), including Git. Use this feature to manage and track changes to your codebase effectively.
  • Make Use of Plugins: GoLand’s functionality can be extended using plugins. You can browse and install plugins directly from within the IDE. These plugins can help improve productivity, provide additional language support, integrate with other tools, and more.
  • Explore Code Refactoring Tools: GoLand provides various tools for code refactoring, like renaming and moving methods, variables, classes, and files. These tools can help you keep your code clean and maintainable.

Remember, the key to mastering any tool is practice. Spend time exploring and using GoLand, and you’ll become more proficient and comfortable.

Default user interface of GoLand by JetBrains on Ubuntu 22.04 or 20.04 Linux.Pin
Screenshot displaying the default user interface of GoLand by JetBrains on Ubuntu 22.04 or 20.04 Linux.

Section 6: GoLand Management on Ubuntu 22.04 or 20.04

In this section, we delve into the techniques of managing GoLand on your Ubuntu Linux platform. Our primary focus will be to employ specific command-line actions for updating and uninstalling this Integrated Development Environment (IDE). We will cover unique commands for diverse package managers, such as APT, Snap, and Flatpak.

Update GoLand on Ubuntu 22.04 or 20.04

Keeping software applications up-to-date is an indispensable practice in the digital realm. Regular updates usher in new features and bring about important security patches and performance enhancements. Therefore, acquiring the various package manager commands to update GoLand is a critical skill.

Updating GoLand Using the APT Command on Ubuntu

The Advanced Package Tool, often abbreviated as APT, is a prominent package management utility in Ubuntu. Updating GoLand using APT comprises two essential steps. First, the package list is refreshed to mirror the most recent versions of all packages. Subsequently, an upgrade command is invoked to apply the updates. The commands that accomplish these operations are as follows:

sudo apt update
sudo apt upgrade goland

Refreshing GoLand via the Snap Command on Ubuntu

Snap, a software packaging and deployment system designed by Canonical, provides a simple method to update GoLand. The following command triggers this action:

sudo snap refresh goland

If you installed GoLand as a snap package, updates are performed automatically. Snaps are refreshed in the background every day.

Using Flatpak to Update GoLand on Ubuntu

Flatpak is a versatile tool for software deployment, package management, and application virtualization in Linux environments. To carry out a GoLand update via Flatpak, execute the command given below:

sudo flatpak update com.jetbrains.GoLand

Remove GoLand on Ubuntu 22.04 or 20.04

You might need to remove GoLand from your Ubuntu Linux system in certain situations. The forthcoming subsections elucidate the steps required to carry out this procedure.

Uninstalling GoLand Using the APT Command on Ubuntu

To uninstall GoLand employing APT, the command below should be executed:

sudo apt remove goland

If you do not intend to reinstall GoLand or use the JetBrains third-party APT PPA in the future, the repository and GPG key can also be purged with these commands:

sudo rm /etc/apt/sources.list.d/jetbrains-ppa.list
sudo rm /usr/share/keyrings/jetbrains-ppa-archive-keyring.gpg

Removing GoLand via the Snap Command on Ubuntu

Uninstalling GoLand using Snap is as simple as issuing the following command:

sudo snap remove goland

Using the Flatpak Command to Uninstall GoLand on Ubuntu

Finally, to uninstall GoLand employing Flatpak, the command below should be executed:

sudo flatpak uninstall com.jetbrains.GoLand


In conclusion, GoLand is an invaluable tool for developers working on the Ubuntu Linux platform. With its feature-rich environment and adaptable management through various package managers, it delivers a seamless coding experience. The coverage in this guide on how to install, launch, and manage GoLand will undeniably help novices and experts streamline their Go development process on Ubuntu. The granular level of detail in each step underscores the thoroughness required to ensure a smooth and error-free installation and usage experience.

Share to...