How to upgrade GitLab CE from Ubuntu 16.04 to Ubuntu 18.04? - gitlab

Can someone explain me how I can upgrade a running gitlab CE on Ubuntu 16.04 to Ubuntu 18.04?
I could not find any relevant documentation for this upgrade path
It is clear to upgrade ubuntu with
sudo apt update
sudo apt upgrade
sudo do-release-upgrade
But what is needed to tell rerun the setup/upgrade on gitlab?

If you upgrade your Ubuntu Version from 16.04 to 18.04, you also need to alter the repository path for debian packages provided by GitLab Inc.
If you inspect the installation/configuration script available on GitLab.com, you will see that there should be a file in /etc/apt/sources.list.d/ which contains gitlab in its filename.
Simply replace its content with the following lines:
deb https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu/ bionic main
deb-src https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu/ bionic main
You are now able to upgrade GitLab using the new package repository for your upgraded Ubuntu System:
sudo apt update
sudo apt upgrade

If you mean update Ubuntu from 16.04 to 18.04 then here's the steps:
I did that a couple of days ago.
lsb_release -a # This is just to check the. Ubuntu version
sudo apt update
sudo apt upgrade
This will make sure that you have all the packages updated. The upgrade will not start if you don't have them upgraded.
Then for the actual upgrade
sudo do-release-upgrade
NOTE
1 - The above command might fail because "you have to upgrade all the packages before" please inspect the output of sudo apt upgrade maybe you have a dependency issue & not all the packages are upgraded
2- Please make sure you have all your data backed up before doing the upgrade. I'm assuming that you doing the upgrade via SSH which may be troublesome.
For me, the upgrade got stuck while trying to update the openSSH config files. What I did is that I closed the current SSH session ( tmux ) opened a new session & rebooted the server.
After the server is rebooted
lsb_release -a
Should show
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic

Related

rabbitmq-server : Depends: socat but it is not going to be installed. Cannot install rabbitMQ

I have been trying now for a few hours to install rabbitMQ on my linux VM.
I am currently running:
Linux 4.18.0-15-generic x86_64
<pre>Distributor ID: Ubuntu
Description: Ubuntu 18.10
Release: 18.10
Codename: cosmic
I am following the instructions specified on rabbitMQ page
After running sudo apt-get install rabbitmq-server I receive the title error. Can someone confirm that there is no support for version 18.10 cosmic? That is the only thing I can think of that might explain it.
I fixed the problem. I was correct. I had to downgrade the version of Ubuntu I was using from 18.10 to 18.04.

How to install JavaPackage on ubuntu

I came across a debian application by the name JavaPackage which can create a debian installation file (.deb) form a java binary (.tar.gz) which you can then install using dpkg -i application_name.deb. With Ubuntu being a debian-based linux distribution, it is possible that it can be installed on ubuntu as well.
How do I go about installing it on Ubuntu/Kubuntu 16.04.2 LTS?
java-package is available in the official ubuntu repositories. All you need to do is update the repository with the latest version then install it as shown below:
sudo apt-get update
sudo apt-get install java-package

VirtualBox VERR_VM_DRIVER_VERSION_MISMATCH on Ubuntu

I trying to install VirtualBox on Ubuntu 14.04. I've installed VirtualBox from Ubuntu repository:
sudo apt-get install virtualbox
Then I added my user to vboxusers:
sudo usermod -G vboxusers -a user
I also installed an extrapack for my vb vsion:
wget http://download.virtualbox.org/virtualbox/5.0.10/Oracle_VM_VirtualBox_Extension_Pack-4.3.36-105129.vbox-extpack
sudo vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.0.10-104061.vbox-extpack
But when I trying to start vm, I get an error:
RTR3InitEx failed with rc=-1912 (rc=-1912)The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing '/etc/init.d/vboxdrv setup'may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.
where: supR3HardenedMainInitRuntime
what: 4
VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user.
And I have no /etc/init.d/vboxdrv file.
How can I fix this problem?
I've removed all the virualbox packages:
sudo apt-get purge 'virtualbox*'
Then I've installed virtualbox v.5
sudo apt-get install virtualbox-5.0
After that I've enabled virtualization in BIOS.
Now it works.
Check what version of virtualbox you installed
dpkg --list 'virtualbox*'
may be it's not aligned with the Extension pack.
Remove your installation
sudo apt-get autoremove 'virtualbox*'
Don't install fron Ubuntu repositories but run a fresh installation following the instuctions from official Oracle Virtualbox Download page about Debian-based Linux distributions.
Check that Virtualbox is running before installing the Extension pack.
I had the same error starting a vm client in ubuntu 16.4 .
Coincidentally I noticed in the file /var/crash/_usr_lib_virtualbox_VirtualBox.0.crash the following message:
Title: VirtualBox crashed with SIGABRT in QMessageLogger::fatal()
UnreportableReason: Sie haben einige veraltete Paketversionen
installiert. Bitte aktualisieren Sie die folgenen Pakete und prüfen
Sie, ob das Problem danach noch auftritt:
virtualbox-dkms
Translated: You have some outdated package versions installed. Please update the following packages and check, if the problem still occurs after that:
After the command:
sudo apt-get install --only-upgrade virtualbox-dkms
all was OK :)

unable to update gitlab-ce on linux mint 17.3

I have gitlab-ce 8.6.6 on Linux mint 17.3.
Gitlab-ce is now upto 8.11.2. If I do an apt-get install gitlab-ce then it tells me that I am already at the newest version.
When I cat /etc/apt/sources.list.d/gitlab_gitlab-ce.list, it shows
deb https://packages.gitlab.com/gitlab/gitlab-ce/linuxmint/ rosa main
This address is no longer available. Running
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
overwrites the above repository entry with identical entry and running
sudo apt-get install gitlab-ce=8.11.2-ce.1
gives me an error of
E: Version ‘8.11.2-ce.1’ for ‘gitlab-ce’ was not found
Is Linux mint no longer supported? Do I need to upgrade to Linux mint 18 (based on Ubuntu 16.04)?
And a few weeks after I tried this, it suddenly worked and showed up on update. So I presume that the mint repository went from gitlab 8.6.x to 8.11.x.

Is "Ubuntu Server 14.04.3 LTS + LAMP" production-ready?

Installing a fresh copy of Ubuntu Server 14.04.3 LTS and then:
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install lamp-server^
Is this configuration production-ready in terms of security and stability?
No. Almost no system will be "production-ready" without configuring it properly according to your needs. Neither in terms of security nor stability/performance.

Resources