• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Adding needed repository failed.

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    6
    525
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jfarmer
      last edited by Sebastian Roth

      When installing a new installation of fog it fails at adding the needed repository the server is running off the latest kubuntu and it has internet connectivity.

      root@FOG:/opt/fogproject/bin# ./installfog.sh
      Installing LSB_Release as needed
       * Attempting to get release information.......................Done
      systemd
      
      
         +------------------------------------------+
         |     ..#######:.    ..,#,..     .::##::.  |
         |.:######          .:;####:......;#;..     |
         |...##...        ...##;,;##::::.##...      |
         |   ,#          ...##.....##:::##     ..:: |
         |   ##    .::###,,##.   . ##.::#.:######::.|
         |...##:::###::....#. ..  .#...#. #...#:::. |
         |..:####:..    ..##......##::##  ..  #     |
         |    #  .      ...##:,;##;:::#: ... ##..   |
         |   .#  .       .:;####;::::.##:::;#:..    |
         |    #                     ..:;###..       |
         |                                          |
         +------------------------------------------+
         |      Free Computer Imaging Solution      |
         +------------------------------------------+
         |  Credits: http://fogproject.org/Credits  |
         |       http://fogproject.org/Credits      |
         |       Released under GPL Version 3       |
         +------------------------------------------+
      
      
         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] 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): 
      y
       * Removing apache and php files...............................Done
       * Stopping web services.......................................Done
       * 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)] n
      
        What is the IP address to be used by this FOG Server? [10.0.1.25]10.0.1.25
      
        Would you like to change the default network interface from eth0?
        If you are not sure, select No. [y/N] n
      
        Would you like to setup a router address for the DHCP server? [Y/n] n
      
        Would you like DHCP to handle DNS? [Y/n] n
      
        Would you like to use the FOG server for DHCP service? [y/N] n
      
        This version of FOG has internationalization support, would  
        you like to install the additional language packs? [y/N] n
      
         ######################################################################
         #     FOG now has everything it needs for this setup, but please     #
         #   understand that this script will overwrite any setting you may   #
         #   have setup for services like DHCP, apache, pxe, tftp, and NFS.   #
         ######################################################################
         # It is not recommended that you install this on a production system #
         #        as this script modifies many of your system settings.       #
         ######################################################################
         #             This script should be run by the root user.            #
         #      It will prepend the running with sudo if root is not set      #
         ######################################################################
         #           ** Notice ** FOG is difficult to setup securely          #
         #        SELinux and IPTables are usually asked to be disabled       #
         #           There have been strides in adding capabilities           #
         #          The recommendations would now be more appropriate         #
         #    to set SELinux to permissive and to disable firewall for now.   #
         #  You can find some methods to enable SELinux and maintain firewall #
         #   settings and ports. If you feel comfortable doing so please do   #
         ######################################################################
         #            Please see our wiki for more information at:            #
         ######################################################################
         #             https://wiki.fogproject.org/wiki/index.php             #
         ######################################################################
      
       * Here are the settings FOG will use:
       * Base Linux: Debian
       * Detected Linux Distribution: Ubuntu
       * Server IP Address: 10.0.1.25
       * Server Subnet Mask: 255.255.255.0
       * Interface: eth0
       * Installation Type: Normal Server
       * Internationalization: 0
       * Image Storage Location: /images
       * Using FOG DHCP: No
       * DHCP will NOT be setup but you must setup your
       | current DHCP server to use FOG for PXE services.
      
       * On a Linux DHCP server you must set: next-server and filename
      
       * On a Windows DHCP server you must set options 066 and 067
      
       * Option 066/next-server is the IP of the FOG Server: (e.g. 10.0.1.25)
       * Option 067/filename is the bootfile: (e.g. undionly.kpxe)
      
      
       * Are you sure you wish to continue (Y/N) y
      
       * Installation Started
      
       * Installing required packages, if this fails
       | make sure you have an active internet connection.
      
       * Adding needed repository....................................Failed!
      root@FOG:/opt/fogproject/bin#
      
      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by Sebastian Roth

        @jfarmer said in Adding needed repository failed.:

        Gotcha, okay thank you I will just use ubuntu

        That wasn’t what I was saying. I guess you will run into the same problem with ubuntu 18.10! Use 18.04 for now (ubuntu or kubuntu) and you should be fine!

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • Q
          Quazz Moderator
          last edited by Quazz

          Please post the error log here (located in error_logs of your current directory).

          1 Reply Last reply Reply Quote 0
          • J
            jfarmer
            last edited by Sebastian Roth

            @Quazz said in Adding needed repository failed.:

            cated in error_logs of your current directory

            /usr/bin/lsb_release
            /bin/systemctl
            Reading package lists...
            Building dependency tree...
            Reading state information...
            Package python-software-properties is not available, but is referred to by another package.
            This may mean that the package is missing, has been obsoleted, or
            is only available from another source
            However the following packages replace it:
              software-properties-common
            
            E: Package 'python-software-properties' has no installation candidate
            ../lib/common/functions.sh: line 535: ntpdate: command not found
            Generating locales (this might take a while)...
              en_US.UTF-8... done
            Generation complete.
            Hit:1 http://ppa.launchpad.net/ondrej/php/ubuntu cosmic InRelease
            Get:2 http://security.ubuntu.com/ubuntu cosmic-security InRelease [79.6 kB]
            Hit:3 http://us.archive.ubuntu.com/ubuntu cosmic InRelease
            Get:4 http://us.archive.ubuntu.com/ubuntu cosmic-updates InRelease [83.2 kB]
            Hit:5 http://us.archive.ubuntu.com/ubuntu cosmic-backports InRelease
            Fetched 163 kB in 2s (102 kB/s)
            Reading package lists...
            Hit:1 http://us.archive.ubuntu.com/ubuntu cosmic InRelease
            Get:2 http://us.archive.ubuntu.com/ubuntu cosmic-updates InRelease [83.2 kB]
            Ign:3 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic InRelease
            Get:4 http://security.ubuntu.com/ubuntu cosmic-security InRelease [79.6 kB]
            Hit:5 http://us.archive.ubuntu.com/ubuntu cosmic-backports InRelease
            Hit:6 http://ppa.launchpad.net/ondrej/php/ubuntu cosmic InRelease
            Err:7 http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic Release
              404  Not Found [IP: 91.189.95.83 80]
            Reading package lists...
            E: The repository 'http://ppa.launchpad.net/ondrej/apache2/ubuntu cosmic Release' does not have a Release file.
            
            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Sebastian Roth

              @jfarmer said in Adding needed repository failed.:

              cosmic Release’ does not have a Release file

              Seems like ondrej apache2 repo does not have packages for (k)ubuntu Cosmic (18.10) yet. Not much we can do about.

              Well possibly we could remove installing apache2 from the external repo for 18.10 or altogether.
              @Tom-Elliott Do you remember when and why we added apache2 package from ondrej repo?

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 0
              • J
                jfarmer
                last edited by

                Gotcha, okay thank you I will just use ubuntu

                1 Reply Last reply Reply Quote 0
                • S
                  Sebastian Roth Moderator
                  last edited by Sebastian Roth

                  @jfarmer said in Adding needed repository failed.:

                  Gotcha, okay thank you I will just use ubuntu

                  That wasn’t what I was saying. I guess you will run into the same problem with ubuntu 18.10! Use 18.04 for now (ubuntu or kubuntu) and you should be fine!

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  148

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project