FOG v1.54 erroring on Ubuntu Server 18.04 LTS



  • Hi all,
    I backed up all my previous images from FOG to a external USB drive, and cleanly installed Ubuntu Server 18.4 LTS and updated it with the necessities, as well as git.
    I followed the instructions from FOG Wiki for FOG v1.54, and started the install. I’m getting almost all the way through the installer until “Installing now everything is updated… Failed!” There is no firewall or advanced setup, everything is basic on my Ubuntu box. I previously had a Ubuntu 14.04 LTS install with FOG v1.2, but with UEFI/Windows 10, I now have to re-do our FOG server. I tried 16.04 and was sucessfull in installing FOG, but there was an issue with the NICs not working correctly. So I wiped the machine clean, and installed 18.04 LTS.

    From what I read from about 6 months ago, there was a work in progress to get a version working for this OS. Is there a solid, working version out there of FOG v1.54 for Ubuntu Server 18.04 LTS?

    Any assistance would be very appreciative.



  • That’s it thanks guys. I used sudo add-apt-repository universe, and there were about 20 packages out there. Now, if I can remember how to finish this project off. It’s been 7 years since I built a fog server. lol


  • Developer

    @dbrilliant Either Wayne’s commands or a simple sudo add-apt-repository universe should to the trick for you.



  • @dbrilliant The below commands will add some repositories to /etc/apt/sources.list. I’m thinking this will fix your problem.

    echo 'deb http://archive.ubuntu.com/ubuntu bionic universe' >> /etc/apt/sources.list
    echo 'deb-src http://archive.ubuntu.com/ubuntu bionic universe' >> /etc/apt/sources.list
    echo 'deb http://archive.ubuntu.com/ubuntu bionic-updates universe' >> /etc/apt/sources.list
    echo 'deb-src http://archive.ubuntu.com/ubuntu bionic-updates universe' >> /etc/apt/sources.list
    

    Then try to run the installer again.



  • Let me know if you need the remainder of the foginstall.log output, it will only allow me to copy one page at a time via nano.



  • grubb@fogserver:~$ sudo -i
    [sudo] password for grubb:
    root@fogserver:~# cat /etc/apt/sources.list
    deb http://archive.ubuntu.com/ubuntu bionic main
    deb http://archive.ubuntu.com/ubuntu bionic-security main
    deb http://archive.ubuntu.com/ubuntu bionic-updates main
    root@fogserver:~#
    This is the output of:
    cat /etc/apt/sources.list



  • @Sebastian-Roth said in FOG v1.54 erroring on Ubuntu Server 18.04 LTS:

    @dbrilliant Please post the contents of /etc/apt/sources.list

    There was an issue with Ubuntu 18.04 that I fixed in the working branch. See my comments here: https://github.com/FOGProject/fogproject/issues/258

    @dbrilliant What Sebastian is asking for is the output of this basically:
    cat /etc/apt/sources.list



  • @dbrilliant :

      GNU nano 2.9.3                                              foginstall.log                                                         
    
     * Here are the settings FOG will use:
     * Base Linux: Debian
     * Detected Linux Distribution: Ubuntu
     * Server IP Address: 192.168.2.1
     * Server Subnet Mask: Error: g is not recognized
     * Interface: eno1
     * Installation Type: Normal Server
     * Internationalization: 0
     * Image Storage Location: /images
     * Using FOG DHCP: Yes
     * DHCP router Address:
    
    
     * Are you sure you wish to continue (Y/N)
     * Installation Started
    
     * Installing required packages, if this fails
     | make sure you have an active internet connection.
    
     * Adding needed repository....................................OK
     * Preparing Package Manager...................................OK
     * Packages to be installed:
    
            apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gzip htmldoc isc-dhcp-server isolinux lftp libapache2-mod-php7.$
    
    
     * Installing package: apache2.................................OK
     * Skipping package:   bc......................................(Already Installed)
     * Installing package: build-essential.........................OK
     * Skipping package:   cpp.....................................(Already Installed)
     * Skipping package:   curl....................................(Already Installed)
     * Skipping package:   g++.....................................(Already Installed)
     * Skipping package:   gawk....................................(Already Installed)
     * Skipping package:   gcc.....................................(Already Installed)
     * Skipping package:   genisoimage.............................(Already Installed)
     * Skipping package:   gzip....................................(Already Installed)
     * Skipping package: htmldoc...................................(Does not exist)
     * Installing package: isc-dhcp-server.........................OK
     * Installing package: isolinux................................OK
     * Installing package: lftp....................................OK
     * Installing package: libapache2-mod-php7.1...................OK
     * Skipping package:   libc6...................................(Already Installed)
     * Skipping package:   libcurl4................................(Already Installed)
     * Installing package: liblzma-dev.............................OK
     * Installing package: m4......................................OK
     * Installing package: mysql-client............................OK
     * Installing package: mysql-server............................OK
    


  • @dbrilliant Ubuntu 18.04 desktop or server? My daily tests use the server edition.



  • @dbrilliant

    • Here are the settings FOG will use:

    • Base Linux: Debian

    • Detected Linux Distribution: Ubuntu

    • Server IP Address: 192.168.2.1

    • Server Subnet Mask: Error: g is not recognized

    • Interface: eno1

    • Installation Type: Normal Server

    • Internationalization: 0

    • Image Storage Location: /images

    • Using FOG DHCP: Yes

    • DHCP router Address:

    • Are you sure you wish to continue (Y/N)

    • Installation Started

    • Installing required packages, if this fails
      | make sure you have an active internet connection.

    • Adding needed repository…OK

    • Preparing Package Manager…OK

    • Packages to be installed:



  • Here’s my output from FOG -installfog.log:

       Version: 1.5.4 Installer/Updater
    
      What version of Linux would you like to run the installation for?
    
              1) Redhat Based Linux (Redhat, CentOS, Mageia)
              2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
              3) Arch Linux
    
      Choice: [2]
    
    
      Starting Debian based Installation
    
    
     *** Detected a potential need to reinstall apache and php files.
     *** This will remove the /etc/php* and /etc/apache2* directories
     ***  and remove/purge the apache and php files from this system.
     *** If you're okay with this please type Y, anything else will
     ***  continue the installation, but may mean you will need to
     ***  remove the files later and make proper changes as
     ***  necessary. (Y/N):
     * Removing apache and php files...............................Done
     * Stopping web services.......................................Failed
     * Removing the apache and php packages........................Done
     * Resetting our variables to specify php version 7.1..........Done
      FOG Server installation modes:
          * Normal Server: (Choice N)
              This is the typical installation type and
              will install all FOG components for you on this
              machine.  Pick this option if you are unsure what to pick.
    
          * Storage Node: (Choice S)
              This install mode will only install the software required
              to make this server act as a node in a storage group
    
      More information:
         http://www.fogproject.org/wiki/index.php?title=InstallationModes
    
      What type of installation would you like to do? [N/s (Normal/Storage)]
      What is the IP address to be used by this FOG Server? [192.168.7.150]
      Would you like to change the default network interface from ?
      If you are not sure, select No. [y/N]   What network interface would you like to use? ../lib/common/functions.sh: line 149: /8: sy$
    
      Would you like to setup a router address for the DHCP server? [Y/n]
      Would you like DHCP to handle DNS? [Y/n]   What DNS address should DHCP allow? [127.0.0.53]
      Would you like to use the FOG server for DHCP service? [y/N]
      This version of FOG has internationalization support, would
    

  • Developer

    @dbrilliant Please post the contents of /etc/apt/sources.list

    There was an issue with Ubuntu 18.04 that I fixed in the working branch. See my comments here: https://github.com/FOGProject/fogproject/issues/258


  • Moderator

    Since you are using the git method (good), inspect the log file in the ./fogproject/bin/logs directory. There should be an install log that will tell us what went wrong. FOG installs are automatically tested against all major linux distros every day.

    http://fogtesting.theworkmans.us/

    The log file may give us an idea what is missing.


 

578
Online

5.4k
Users

12.6k
Topics

118.8k
Posts