{"id":51772,"date":"2026-05-06T12:30:00","date_gmt":"2026-05-06T17:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=51772"},"modified":"2026-05-02T17:27:44","modified_gmt":"2026-05-02T22:27:44","slug":"how-to-install-gitlab-on-ubuntu-26-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/","title":{"rendered":"How to Install GitLab on Ubuntu 26.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/05\/how-to-install-gitlab-on-ubuntu-26.04.webp\" alt=\"How to Install GitLab on Ubuntu 26.04\" class=\"wp-image-51889\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/05\/how-to-install-gitlab-on-ubuntu-26.04.webp 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/05\/how-to-install-gitlab-on-ubuntu-26.04-300x169.webp 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/05\/how-to-install-gitlab-on-ubuntu-26.04-150x84.webp 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/05\/how-to-install-gitlab-on-ubuntu-26.04-768x432.webp 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>GitLab is open source software. With GitLab, users can manage their projects more easily through features designed to support collaborative development. GitLab provides remote access to Git repositories, including code hosting, bug tracking, software development lifecycle management, and social coding. Because of the advantage that brings development, operations, and security teams into a single application, GitLab is now widely used across the globe. In this article, we will show you how to install GitLab on Ubuntu 26.04.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69fb94da74f8b\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69fb94da74f8b\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#Step-1-Update-the-System\" >Step 1. Update the System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#Step-2-Install-Dependencies\" >Step 2. Install Dependencies<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#Step-3-Add-a-System-User\" >Step 3. Add a System User<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#Step-4-Add-User-to-Sudoer\" >Step 4. Add User to Sudoer<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#Step-5-Install-Docker\" >Step 5. Install Docker<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#Step-6-Run-Docker-without-Sudo\" >Step 6. Run Docker without Sudo<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#Step-7-Run-the-GitLab-Container\" >Step 7. Run the GitLab Container<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#Step-8-Access-GitLab\" >Step 8. Access GitLab<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-prerequisites\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">Ubuntu 26.04 VPS<\/a> with at least 8GB of RAM<\/li>\n\n\n\n<li>SSH root access, or a user with sudo privileges<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-conventions\">Conventions<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># \u2013 given commands should be executed with root privileges either directly as a root user or by use of sudo command\n$ \u2013 given commands should be executed as a regular user<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-1-update-the-system\"><span class=\"ez-toc-section\" id=\"Step-1-Update-the-System\"><\/span>Step 1. Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First of all, we need to log in to our Ubuntu 26.04 VPS through SSH:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh root@IP_Address -p Port_number<\/code><\/pre>\n\n\n\n<p>Replace &#8220;root&#8221; with a user that has sudo privileges. Additionally, replace &#8220;IP_Address&#8221; and &#8220;Port_Number&#8221; with your server\u2019s respective IP address and SSH port number. Next, let\u2019s make sure that we\u2019re on Ubuntu 26.04. You can verify it with this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># lsb_release -a<\/code><\/pre>\n\n\n\n<p>You should get this as the output:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>No LSB modules are available.\nDistributor ID: Ubuntu\nDescription:    Ubuntu Resolute Raccoon \nRelease:        26.04\nCodename:       resolute<\/code><\/pre>\n\n\n\n<p>Then, run the following command to make sure that all installed packages on the server are updated to their latest available versions:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># apt update <\/code><\/pre>\n\n\n\n<p>That&#8217;s it, the system package information should be updated now.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-2-install-dependencies\"><span class=\"ez-toc-section\" id=\"Step-2-Install-Dependencies\"><\/span>Step 2. Install Dependencies<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Almost every package we install relies on other packages to run properly or to enable installation. Before proceeding with the other steps, we need to install the dependencies.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># apt install ca-certificates curl gnupg git sudo<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-3-add-a-system-user\"><span class=\"ez-toc-section\" id=\"Step-3-Add-a-System-User\"><\/span>Step 3. Add a System User<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Let&#8217;s create a new system user called &#8216;master&#8217;, run this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \/usr\/sbin\/adduser master<\/code><\/pre>\n\n\n\n<p>You will be prompted to create a password. Make sure to use a strong password when prompted.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-4-add-user-to-sudoer\"><span class=\"ez-toc-section\" id=\"Step-4-Add-User-to-Sudoer\"><\/span>Step 4. Add User to Sudoer<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>On Debian systems, administrative privileges are typically granted by adding users to the sudo group. To give a regular user full sudo access (i.e., the ability to run commands as root with sudo), add them to the sudo group using one of these commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \/usr\/sbin\/usermod -aG sudo master<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-5-install-docker\"><span class=\"ez-toc-section\" id=\"Step-5-Install-Docker\"><\/span>Step 5. Install Docker<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>There are some methods to install Docker on a Debian 13 system. In this step, we are going to install Docker Engine from Docker&#8217;s Apt repository. This is by far the best and most recommended way to install Docker because we can perform the update easily. Before installing Docker Engine for the first time on a new host machine, you need to configure the Docker Apt repository. Then you can install and update Docker from the repository.<br>Execute these commands to add and set up Docker&#8217;s Apt repository.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># install -m 0755 -d \/etc\/apt\/keyrings\n# curl -fsSL https:\/\/download.docker.com\/linux\/debian\/gpg | gpg --dearmor -o \/etc\/apt\/keyrings\/docker.gpg\n# chmod a+r \/etc\/apt\/keyrings\/docker.gpg<\/code><\/pre>\n\n\n\n<p>Then, add Docker&#8217;s APT repository to the APT source.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \\\n  \"deb &#91;arch=\"$(dpkg --print-architecture)\" signed-by=\/etc\/apt\/keyrings\/docker.gpg] https:\/\/download.docker.com\/linux\/debian \\\n  \"$(. \/etc\/os-release &amp;&amp; echo \"$VERSION_CODENAME\")\" stable\" | \\\n   tee \/etc\/apt\/sources.list.d\/docker.list &gt; \/dev\/null<\/code><\/pre>\n\n\n\n<p>Once added, update the package index files on the system.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># apt update<\/code><\/pre>\n\n\n\n<p>Finally, install the Docker packages.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin<\/code><\/pre>\n\n\n\n<p>That&#8217;s it, Docker has been installed on your Debian system. We can run the command below to verify the installation.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># docker version<\/code><\/pre>\n\n\n\n<p>It will show you an output like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Client: Docker Engine - Community\n Version:           29.3.1\n API version:       1.54\n Go version:        go1.25.8\n Git commit:        c2be9cc\n Built:             Wed Mar 25 16:13:43 2026\n OS\/Arch:           linux\/amd64\n Context:           default\n\nServer: Docker Engine - Community\n Engine:\n  Version:          29.3.1\n  API version:      1.54 (minimum version 1.40)\n  Go version:       go1.25.8\n  Git commit:       f78c987\n  Built:            Wed Mar 25 16:13:43 2026\n  OS\/Arch:          linux\/amd64\n  Experimental:     false\n containerd:\n  Version:          v2.2.2\n  GitCommit:        301b2dac98f15c27117da5c8af12118a041a31d9\n runc:\n  Version:          1.3.4\n  GitCommit:        v1.3.4-0-gd6d73eb8\n docker-init:\n  Version:          0.19.0\n  GitCommit:        de40ad0<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-6-run-docker-without-sudo\"><span class=\"ez-toc-section\" id=\"Step-6-Run-Docker-without-Sudo\"><\/span>Step 6. Run Docker without Sudo<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The Docker daemon binds to a Unix socket. When running the Docker command without sudo, you will get this error message:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>permission denied while trying to connect to the docker API at unix:\/\/\/var\/run\/docker.sock<\/code><\/pre>\n\n\n\n<p>To run Docker commands without sudo, we need to add the user we want to the Docker group:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \/usr\/sbin\/usermod -aG docker $USER<\/code><\/pre>\n\n\n\n<p>For example, let&#8217;s add the user &#8220;master&#8221; to the Docker group:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \/usr\/sbin\/usermod -aG docker master<\/code><\/pre>\n\n\n\n<p>Now, you can switch to the user &#8216;master&#8217; and run Docker without sudo.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># su - master\n``<\/code><\/pre>\n\n\n\n<p>$ sudo mkdir -p \/opt\/gitlab\/{config, logs, data}<br>$ sudo chown -R master: \/opt\/gitlab<\/p>\n\n\n\n<p>Now, let&#8217;s create a docker-compose.yml file in your desired directory (e.g., \/opt\/gitlab): <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ cd \/opt\/gitlab<br>$ nano docker-compose.yml<\/pre>\n\n\n\n<p>Paste the following configuration into the file; do not forget to replace gitlab.yourdomain.com with your actual domain name:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">services:<br>  web:<br>    image: 'gitlab\/gitlab-ce:latest'<br>    container_name: 'gitlab'<br>    restart: always<br>    hostname: 'gitlab.yourdomain.com' <br>    environment:<br>      GITLAB_OMNIBUS_CONFIG: |<br>        external_url 'https:\/\/gitlab.yourdomain.com' <br>        gitlab_rails['gitlab_shell_ssh_port'] = 2222<br>    ports:<br>      - '80:80'<br>      - '443:443'<br>      - '2222:22'<br>    volumes:<br>      - '\/opt\/gitlab\/config:\/etc\/gitlab'<br>      - '\/opt\/gitlab\/logs:\/var\/log\/gitlab'<br>      - '\/opt\/gitlab\/data:\/var\/opt\/gitlab'<br>    shm_size: '256m'<\/pre>\n\n\n\n<p>Save and exit the editor. Here is the explanation:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/opt\/gitlab\/config:\/etc\/gitlab: This volume is used to persist GitLab configuration data.<br>\/opt\/gitlab\/logs:\/var\/log\/gitlab: This volume is used to persist GitLab log data.<br>\/opt\/gitlab\/data:\/var\/opt\/gitlab: This volume is used to persist GitLab application data.<\/pre>\n\n\n\n<p>If you do not have a domain or subdomain, you can replace the value of &#8216;hostname&#8217; and &#8216;external_url&#8217; with your server&#8217;s IP address.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-7-run-the-gitlab-container\"><span class=\"ez-toc-section\" id=\"Step-7-Run-the-GitLab-Container\"><\/span>Step 7. Run the GitLab Container<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>At the time of this writing, GitLab has not released its support for Ubuntu 26.04. So, we cannot use their APT repository to install GitLab. In this step, we will install GitLab using the Docker Compose method. Let&#8217;s start the GitLab container in detached mode using Docker Compose:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ docker compose up -d<\/pre>\n\n\n\n<p>The image will start downloading, and the container will begin running. Please be informed that this process may take several minutes to complete. You can monitor the progress with:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ docker logs -f gitlab<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-8-access-gitlab\"><span class=\"ez-toc-section\" id=\"Step-8-Access-GitLab\"><\/span>Step 8. Access GitLab <span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Open your web browser and navigate to your configured external_url (e.g., https:\/\/gitlab.yourdomain.com).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"837\" height=\"666\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/gitlab-login.jpg\" alt=\"Install GitLab on Ubuntu 26.04\" class=\"wp-image-51774\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/gitlab-login.jpg 837w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/gitlab-login-300x239.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/gitlab-login-150x119.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/gitlab-login-768x611.jpg 768w\" sizes=\"(max-width: 837px) 100vw, 837px\" \/><\/figure>\n\n\n\n<p><br>You can log in as root with the password in the file. To see the password, execute the command below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ docker exec -it gitlab grep 'Password:' \/etc\/gitlab\/initial_root_password<\/pre>\n\n\n\n<p>It will print the password:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Password: ucRuwEgHEd08Xfmhh6w9OppSeuO4zHsmwNRR+QBBiQI=<\/pre>\n\n\n\n<p>Once logged in, you will see the GitLab dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"625\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/gitlab-dashboard-1024x625.jpg\" alt=\"GitLab Dashboard\" class=\"wp-image-51773\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/gitlab-dashboard-1024x625.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/gitlab-dashboard-300x183.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/gitlab-dashboard-150x92.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/gitlab-dashboard-768x469.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/gitlab-dashboard-1320x806.jpg 1320w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/04\/gitlab-dashboard.jpg 1471w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>At this point, you can start customizing and working on your GitLab website.<\/p>\n\n\n\n<p>That&#8217;s it all! You have learned how to install GitLab on Ubuntu 26.04<\/p>\n\n\n\n<p>Of course, you don\u2019t have to install GitLab on Ubuntu 26.04 if you use one of our <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">managed Ubuntu Hosting services<\/a>, in which case you can simply ask our expert Linux admins to install GitLab on Ubuntu 26.04 for you. They are available 24\u00d77 and will address your request immediately. Managing a website is not just about installation; we can help you optimize it if you have an active service with us.<\/p>\n\n\n\n<p>If you liked this post on installing GitLab on Ubuntu 26.04, please share it with your friends or leave a comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitLab is open source software. With GitLab, users can manage their projects more easily through features designed to support collaborative &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install GitLab on Ubuntu 26.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#more-51772\" aria-label=\"Read more about How to Install GitLab on Ubuntu 26.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":51889,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1698],"tags":[286,2312,2308],"class_list":["post-51772","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-gitlab","tag-how-it-install","tag-ubuntu-26-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install GitLab on Ubuntu 26.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"Learn how to install GitLab on Ubuntu 26.04. Follow our easy guide for remote project management and collaboration.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install GitLab on Ubuntu 26.04\" \/>\n<meta property=\"og:description\" content=\"How to Install GitLab on Ubuntu 26.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-06T17:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/05\/how-to-install-gitlab-on-ubuntu-26.04.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitlab-on-ubuntu-26-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitlab-on-ubuntu-26-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install GitLab on Ubuntu 26.04\",\"datePublished\":\"2026-05-06T17:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitlab-on-ubuntu-26-04\\\/\"},\"wordCount\":871,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitlab-on-ubuntu-26-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/how-to-install-gitlab-on-ubuntu-26.04.webp\",\"keywords\":[\"gitlab\",\"How it Install\",\"ubuntu 26.04\"],\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitlab-on-ubuntu-26-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitlab-on-ubuntu-26-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitlab-on-ubuntu-26-04\\\/\",\"name\":\"How to Install GitLab on Ubuntu 26.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitlab-on-ubuntu-26-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitlab-on-ubuntu-26-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/how-to-install-gitlab-on-ubuntu-26.04.webp\",\"datePublished\":\"2026-05-06T17:30:00+00:00\",\"description\":\"Learn how to install GitLab on Ubuntu 26.04. Follow our easy guide for remote project management and collaboration.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitlab-on-ubuntu-26-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitlab-on-ubuntu-26-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitlab-on-ubuntu-26-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/how-to-install-gitlab-on-ubuntu-26.04.webp\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/how-to-install-gitlab-on-ubuntu-26.04.webp\",\"width\":1024,\"height\":576,\"caption\":\"How to Install GitLab on Ubuntu 26.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitlab-on-ubuntu-26-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install GitLab on Ubuntu 26.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install GitLab on Ubuntu 26.04 | RoseHosting","description":"Learn how to install GitLab on Ubuntu 26.04. Follow our easy guide for remote project management and collaboration.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install GitLab on Ubuntu 26.04","og_description":"How to Install GitLab on Ubuntu 26.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2026-05-06T17:30:00+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/05\/how-to-install-gitlab-on-ubuntu-26.04.webp","type":"image\/webp"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install GitLab on Ubuntu 26.04","datePublished":"2026-05-06T17:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/"},"wordCount":871,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/05\/how-to-install-gitlab-on-ubuntu-26.04.webp","keywords":["gitlab","How it Install","ubuntu 26.04"],"articleSection":["Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/","name":"How to Install GitLab on Ubuntu 26.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/05\/how-to-install-gitlab-on-ubuntu-26.04.webp","datePublished":"2026-05-06T17:30:00+00:00","description":"Learn how to install GitLab on Ubuntu 26.04. Follow our easy guide for remote project management and collaboration.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/05\/how-to-install-gitlab-on-ubuntu-26.04.webp","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2026\/05\/how-to-install-gitlab-on-ubuntu-26.04.webp","width":1024,"height":576,"caption":"How to Install GitLab on Ubuntu 26.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitlab-on-ubuntu-26-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install GitLab on Ubuntu 26.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/51772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=51772"}],"version-history":[{"count":6,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/51772\/revisions"}],"predecessor-version":[{"id":51890,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/51772\/revisions\/51890"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/51889"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=51772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=51772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=51772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}