Cannot install FOG 1.5.8 on Ubuntu
-
I’ve been using FOG for over a year on an isolated network, however, we’re now going to migrate it to our main network in a different VLAN. Since our old build had DHCP, I tried to install FOG on new hardware on Ubuntu, but after installing all of the packages, I get the message “Updating packages as needed” and it gets stuck there. I’ve tried a lot of fresh installs, and in some of them, it just randomly reboots, the fogproject user is created but I cannot access the management dashboard.
What I tried:
- Older releases of FOG
- Ubuntu 20, 18 and 16
- Different networks
- Different hard drives
- Different hardware
Does anyone have any idea of what can be causing the issue? Thank you!
UPDATE: Copy of the terminal
* Installation Started * Testing internet connection.................................Done * Adjusting repository (can take a long time for cleanup).....OK * Preparing Package Manager...................................OK * Packages to be installed: apache2 bc build-essential cpp curl g++ gawk gcc genisoimage git gzip htmldoc isolinux lftp libapache2-mod-php7.3 libc6 libcurl4 liblzma-dev m4 mariadb-client mariadb-server net-tools nfs-kernel-server openssh-server php7.3 php7.3-bcmath php7.3-cli php7.3-curl php7.3-fpm php7.3-gd php7.3-json php7.3-ldap php7.3-mbstring php7.3-mysql php7.3-mysqlnd php-gettext tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g * Installing package: apache2.................................OK * Skipping package: bc......................................(Already Installed) * Installing package: build-essential.........................OK * Skipping package: cpp.....................................(Already Installed) * Installing package: curl....................................OK * Skipping package: g++.....................................(Already Installed) * Installing package: gawk....................................OK * Skipping package: gcc.....................................(Already Installed) * Skipping package: genisoimage.............................(Already Installed) * Installing package: git.....................................OK * Skipping package: gzip....................................(Already Installed) * Installing package: htmldoc.................................OK * Installing package: isolinux................................OK * Installing package: lftp....................................OK * Skipping package: libapache2-mod-php7.3.....................(Does not exist) * Skipping package: libc6...................................(Already Installed) * Skipping package: libcurl4................................(Already Installed) * Installing package: liblzma-dev.............................OK * Installing package: m4......................................OK * Installing package: mariadb-client..........................OK * Installing package: mariadb-server..........................OK * Installing package: net-tools...............................OK * Installing package: nfs-kernel-server.......................OK * Installing package: openssh-server..........................OK * Skipping package: php7.3....................................(Does not exist) * Skipping package: php7.3-bcmath.............................(Does not exist) * Skipping package: php7.3-cli................................(Does not exist) * Skipping package: php7.3-curl...............................(Does not exist) * Skipping package: php7.3-fpm................................(Does not exist) * Skipping package: php7.3-gd.................................(Does not exist) * Skipping package: php7.3-json...............................(Does not exist) * Skipping package: php7.3-ldap...............................(Does not exist) * Skipping package: php7.3-mbstring...........................(Does not exist) * Skipping package: php7.3-mysql..............................(Does not exist) * Skipping package: php7.3-mysqlnd............................(Does not exist) * Skipping package: php-gettext...............................(Does not exist) * Skipping package: tar.....................................(Already Installed) * Installing package: tftpd-hpa...............................OK * Installing package: tftp-hpa................................OK * Skipping package: unzip...................................(Already Installed) * Installing package: vsftpd..................................OK * Skipping package: wget....................................(Already Installed) * Installing package: xinetd..................................OK * Skipping package: zlib1g..................................(Already Installed) * Updating packages as needed.................................
-
I can confirm Ubuntu 18.04 installs the latest version of fog just fine.
I run the daily fog installation tests, which test if the various branches of the fogproject github repo can install on the latest patched versions of various operating systems. I’ve been running these tests for maybe four years now, every day. The daily results are in my signature. While Ubuntu has been problematic sometimes, at the moment it installs fine.
My recommendation to you is to fully update your Ubuntu system before installing fog. This is what my daily installation tests do before installing fog:
apt-get update;apt-get -y dist-upgrade;apt-get -y autoclean;apt-get -y autoremove
and then reboot before proceeding.Further suggestions: Debian and CentOS are by-far the most stable Linux distributions that you can run FOG on. A couple years ago before a major re-write of the daily installation tests, I tracked success streaks of the various OSs and various fogproject branches. CentOS and Debian were neck-and-neck for 1st for the majority of the time on the
master
branch of the fogproject repo. If you want better luck overall with stability, it would be my modest recommendation to move to one of these distributions. -
You need to add archive repos for php7.3
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo add-apt-repository ppa:ondrej/apache2
And you will be good to go. If you will run into problem with DB password -
https://stackoverflow.com/questions/41645309/mysql-error-access-denied-for-user-rootlocalhost
-
@geezer it’s my understanding that the fog installer installs everything needed on the supported operating systems. People shouldn’t have to install anything beforehand.
-
Right. People should not
-
Hello, I forgot to give you an update. Your solutions fixed the problem! Thank you