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

Adding needed repository... Failed!

Scheduled Pinned Locked Moved Solved
FOG Problems
8
41
9.7k
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.
  • S
    Sebastian Roth Moderator
    last edited by Mar 24, 2018, 5:43 PM

    @nexqs Please run the following commands:

    sudo -i
    locale-gen 'en_US.UTF-8'
    LANG='en_US.UTF-8' LC_ALL='en_US.UTF-8' add-apt-repository -y ppa:ondrej/php
    apt-get update
    apt-get -y dist-upgrade
    

    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 1
    • N
      Nexqs
      last edited by Mar 24, 2018, 11:28 PM

      @sebastian-roth said in Adding needed repository... Failed!:

      sudo -i
      locale-gen ‘en_US.UTF-8’
      LANG=‘en_US.UTF-8’ LC_ALL=‘en_US.UTF-8’ add-apt-repository -y ppa:ondrej/php
      apt-get update
      apt-get -y dist-upgrade

      Here is the terminal with the commands you gave me :

      root@fogserver:~# sudo -i
      root@fogserver:~# locale-gen 'en_US.UTF-8'
      Generating locales (this might take a while)...
        en_US.UTF-8... done
      Generation complete.
      root@fogserver:~# LANG='en_US.UTF-8' LC_ALL='en_US.UTF-8' add-apt-repository -y ppa:ondrej/php
      gpg: le porte-clefs « /tmp/tmpl8zw8p2w/secring.gpg Â» a Ă©tĂ© créé
      gpg: le porte-clefs « /tmp/tmpl8zw8p2w/pubring.gpg Â» a Ă©tĂ© créé
      gpg: demande de la clef E5267A6C sur le serveur hkp keyserver.ubuntu.com
      Error: retrieving gpg key timed out.
      gpg: /tmp/tmpl8zw8p2w/trustdb.gpg : base de confiance créée
      gpg: clef E5267A6C : clef publique « Launchpad PPA for Ondƙej SurĂœ Â» importĂ©e
      gpg: QuantitĂ© totale traitĂ©e : 1
      gpg:               importĂ©es : 1  (RSA: 1)
      OK
      root@fogserver:~# apt-get update
      Atteint:1 http://nc.archive.ubuntu.com/ubuntu xenial InRelease                 
      Atteint:2 http://security.ubuntu.com/ubuntu xenial-security InRelease          
      Réception de:3 http://nc.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
      Réception de:4 http://nc.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
      Atteint:5 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial InRelease      
      Atteint:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease          
      204 ko réceptionnés en 37s (5 503 o/s)
      Lecture des listes de paquets... Fait
      root@fogserver:~# apt-get -y dist-upgrade
      Lecture des listes de paquets... Fait
      Construction de l'arbre des dépendances       
      Lecture des informations d'état... Fait
      Calcul de la mise Ă  jour... Fait
      Le paquet suivant a Ă©tĂ© installĂ© automatiquement et n'est plus nĂ©cessaire :
        libsodium18
      Veuillez utiliser « sudo apt autoremove Â» pour le supprimer.
      Les NOUVEAUX paquets suivants seront installĂ©s :
        libnorm1 libpgm-5.2-0 libqmi-glib5 libsodium23 libssl1.1 libwebp6
      Les paquets suivants seront mis Ă  jour :
        libgd3 libmm-glib0 libqmi-proxy libzmq5 modemmanager openssl
      6 mis à jour, 6 nouvellement installés, 0 à enlever et 0 non mis à jour.
      Il est nécessaire de prendre 4 253 ko dans les archives.
      AprÚs cette opération, 7 896 ko d'espace disque supplémentaires seront utilisés.
      Réception de:1 http://nc.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libmm-glib0 amd64 1.6.4-1ubuntu0.16.04.1 [163 kB]
      Réception de:2 http://nc.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libqmi-glib5 amd64 1.16.2-1ubuntu0.16.04.1 [360 kB]
      Réception de:3 http://nc.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libqmi-proxy amd64 1.16.2-1ubuntu0.16.04.1 [5 486 B]
      Réception de:4 http://nc.archive.ubuntu.com/ubuntu xenial-updates/main amd64 modemmanager amd64 1.6.4-1ubuntu0.16.04.1 [604 kB]
      Réception de:5 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 libssl1.1 amd64 1.1.0g-2.1+ubuntu16.04.1+deb.sury.org+1 [1 334 kB]
      Réception de:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libwebp6 amd64 0.6.0-4+ubuntu16.04.1+deb.sury.org+1 [184 kB]
      Réception de:7 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libgd3 amd64 2.2.5-4+ubuntu16.04.1+deb.sury.org+2 [133 kB]
      Réception de:8 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libnorm1 amd64 1.5r6+dfsg1-6+ubuntu16.04.1+deb.sury.org+1 [225 kB]
      Réception de:9 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libpgm-5.2-0 amd64 5.2.122~dfsg-2+deb.sury.org~xenial+1 [157 kB]
      Réception de:10 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libsodium23 amd64 1.0.16-2+ubuntu16.04.1+deb.sury.org+3 [143 kB]
      Réception de:11 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 libzmq5 amd64 4.2.3-1+ubuntu16.04.1+deb.sury.org+1 [214 kB]
      Réception de:12 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 openssl amd64 1.1.0g-2.1+ubuntu16.04.1+deb.sury.org+1 [731 kB]
      4 253 ko réceptionnés en 1min 14s (57,2 ko/s)                                  
      Préconfiguration des paquets...
      Sélection du paquet libssl1.1:amd64 précédemment désélectionné.
      (Lecture de la base de données... 214533 fichiers et répertoires déjà installés.)
      Préparation du dépaquetage de .../libssl1.1_1.1.0g-2.1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
      Dépaquetage de libssl1.1:amd64 (1.1.0g-2.1+ubuntu16.04.1+deb.sury.org+1) ...
      Sélection du paquet libwebp6:amd64 précédemment désélectionné.
      Préparation du dépaquetage de .../libwebp6_0.6.0-4+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
      Dépaquetage de libwebp6:amd64 (0.6.0-4+ubuntu16.04.1+deb.sury.org+1) ...
      Préparation du dépaquetage de .../libgd3_2.2.5-4+ubuntu16.04.1+deb.sury.org+2_amd64.deb ...
      Dépaquetage de libgd3:amd64 (2.2.5-4+ubuntu16.04.1+deb.sury.org+2) sur (2.1.1-4ubuntu0.16.04.8) ...
      Préparation du dépaquetage de .../libmm-glib0_1.6.4-1ubuntu0.16.04.1_amd64.deb ...
      Dépaquetage de libmm-glib0:amd64 (1.6.4-1ubuntu0.16.04.1) sur (1.4.12-1ubuntu1) ...
      Sélection du paquet libnorm1:amd64 précédemment désélectionné.
      Préparation du dépaquetage de .../libnorm1_1.5r6+dfsg1-6+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
      Dépaquetage de libnorm1:amd64 (1.5r6+dfsg1-6+ubuntu16.04.1+deb.sury.org+1) ...
      Sélection du paquet libpgm-5.2-0:amd64 précédemment désélectionné.
      Préparation du dépaquetage de .../libpgm-5.2-0_5.2.122~dfsg-2+deb.sury.org~xenial+1_amd64.deb ...
      Dépaquetage de libpgm-5.2-0:amd64 (5.2.122~dfsg-2+deb.sury.org~xenial+1) ...
      Sélection du paquet libqmi-glib5:amd64 précédemment désélectionné.
      Préparation du dépaquetage de .../libqmi-glib5_1.16.2-1ubuntu0.16.04.1_amd64.deb ...
      Dépaquetage de libqmi-glib5:amd64 (1.16.2-1ubuntu0.16.04.1) ...
      Préparation du dépaquetage de .../libqmi-proxy_1.16.2-1ubuntu0.16.04.1_amd64.deb ...
      Dépaquetage de libqmi-proxy (1.16.2-1ubuntu0.16.04.1) sur (1.12.6-1) ...
      Sélection du paquet libsodium23:amd64 précédemment désélectionné.
      Préparation du dépaquetage de .../libsodium23_1.0.16-2+ubuntu16.04.1+deb.sury.org+3_amd64.deb ...
      Dépaquetage de libsodium23:amd64 (1.0.16-2+ubuntu16.04.1+deb.sury.org+3) ...
      Préparation du dépaquetage de .../libzmq5_4.2.3-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
      Dépaquetage de libzmq5:amd64 (4.2.3-1+ubuntu16.04.1+deb.sury.org+1) sur (4.1.4-7) ...
      Préparation du dépaquetage de .../modemmanager_1.6.4-1ubuntu0.16.04.1_amd64.deb ...
      Dépaquetage de modemmanager (1.6.4-1ubuntu0.16.04.1) sur (1.4.12-1ubuntu1) ...
      Préparation du dépaquetage de .../openssl_1.1.0g-2.1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
      Dépaquetage de openssl (1.1.0g-2.1+ubuntu16.04.1+deb.sury.org+1) sur (1.0.2g-1ubuntu4.10) ...
      Traitement des actions diffĂ©rĂ©es (« triggers Â») pour libc-bin (2.23-0ubuntu10) ...
      Traitement des actions diffĂ©rĂ©es (« triggers Â») pour dbus (1.10.6-1ubuntu3.3) ...
      Traitement des actions diffĂ©rĂ©es (« triggers Â») pour hicolor-icon-theme (0.15-0ubuntu1) ...
      Traitement des actions diffĂ©rĂ©es (« triggers Â») pour man-db (2.7.5-1) ...
      Paramétrage de libssl1.1:amd64 (1.1.0g-2.1+ubuntu16.04.1+deb.sury.org+1) ...
      Paramétrage de libwebp6:amd64 (0.6.0-4+ubuntu16.04.1+deb.sury.org+1) ...
      Paramétrage de libgd3:amd64 (2.2.5-4+ubuntu16.04.1+deb.sury.org+2) ...
      Paramétrage de libmm-glib0:amd64 (1.6.4-1ubuntu0.16.04.1) ...
      Paramétrage de libnorm1:amd64 (1.5r6+dfsg1-6+ubuntu16.04.1+deb.sury.org+1) ...
      Paramétrage de libpgm-5.2-0:amd64 (5.2.122~dfsg-2+deb.sury.org~xenial+1) ...
      Paramétrage de libqmi-glib5:amd64 (1.16.2-1ubuntu0.16.04.1) ...
      Paramétrage de libqmi-proxy (1.16.2-1ubuntu0.16.04.1) ...
      Paramétrage de libsodium23:amd64 (1.0.16-2+ubuntu16.04.1+deb.sury.org+3) ...
      Paramétrage de libzmq5:amd64 (4.2.3-1+ubuntu16.04.1+deb.sury.org+1) ...
      Paramétrage de modemmanager (1.6.4-1ubuntu0.16.04.1) ...
      Installation de la nouvelle version du fichier de configuration /etc/dbus-1/system.d/org.freedesktop.ModemManager1.conf ...
      Paramétrage de openssl (1.1.0g-2.1+ubuntu16.04.1+deb.sury.org+1) ...
      Installation de la nouvelle version du fichier de configuration /etc/ssl/openssl.cnf ...
      Traitement des actions diffĂ©rĂ©es (« triggers Â») pour libc-bin (2.23-0ubuntu10) ...
      Traitement des actions diffĂ©rĂ©es (« triggers Â») pour dbus (1.10.6-1ubuntu3.3) ...
      root@fogserver:~# 
      
      G 1 Reply Last reply Mar 24, 2018, 11:31 PM Reply Quote 0
      • G
        george1421 Moderator @Nexqs
        last edited by Mar 24, 2018, 11:31 PM

        @nexqs Now try to install FOG using the installfog.sh script. My french is a but rusty, but it looks like the offending ondrej/php library was installed.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        1 Reply Last reply Reply Quote 0
        • N
          Nexqs
          last edited by Mar 24, 2018, 11:34 PM

          @george1421 Trying right now

          N 1 Reply Last reply Mar 24, 2018, 11:43 PM Reply Quote 0
          • N
            Nexqs @Nexqs
            last edited by Nexqs Mar 24, 2018, 5:45 PM Mar 24, 2018, 11:43 PM

            @george1421 Not working 😱 (in order : installation of fog and i put the error log just after the installation of fog)

            root@fogserver:~# cd /home/fog/opt/fogproject-master/bin
            root@fogserver:/home/fog/opt/fogproject-master/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.0 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.......................................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)] n
            
              What is the IP address to be used by this FOG Server? [192.168.0.23]
            
              Would you like to change the default network interface from enp0s3?
              If you are not sure, select No. [y/N] y
              What network interface would you like to use? enp0s3
            
              Would you like to setup a router address for the DHCP server? [Y/n] y
              What is the IP address to be used for the router on
                  the DHCP server? [192.168.0.1]
            
              Would you like DHCP to handle DNS? [Y/n] y
              What DNS address should DHCP allow? [127.0.1.1] 
            
              Would you like to use the FOG server for DHCP service? [y/N] y
            
              This version of FOG has internationalization support, would  
              you like to install the additional language packs? [y/N] y
            
               ######################################################################
               #     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: 192.168.0.23
             * Server Subnet Mask: 255.255.255.0
             * Interface: enp0s3
             * Installation Type: Normal Server
             * Internationalization: 1
             * Image Storage Location: /images
             * Using FOG DHCP: Yes
             * DHCP router Address: 192.168.0.1
            
            
             * 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@fogserver:/home/fog/opt/fogproject-master/bin# cat ./error_logs/fog_error_1.5.0.log 
            /usr/bin/lsb_release
            /bin/systemctl
            Lecture des listes de paquets

            Construction de l'arbre des dépendances

            Lecture des informations d'état

            software-properties-common est déjà la version la plus récente (0.96.20.7).
            python-software-properties est déjà la version la plus récente (0.96.20.7).
            Le paquet suivant a Ă©tĂ© installĂ© automatiquement et n'est plus nĂ©cessaire :
              libsodium18
            Veuillez utiliser « sudo apt autoremove Â» pour le supprimer.
            0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
            25 Mar 10:34:27 ntpdate[4822]: adjust time server 115.126.160.4 offset -0.027610 sec
            gpg: le porte-clefs « /tmp/tmpf65s40fu/secring.gpg Â» a Ă©tĂ© créé
            gpg: le porte-clefs « /tmp/tmpf65s40fu/pubring.gpg Â» a Ă©tĂ© créé
            gpg: demande de la clef E5267A6C sur le serveur hkp keyserver.ubuntu.com
            Error: retrieving gpg key timed out.
            gpg: /tmp/tmpf65s40fu/trustdb.gpg : base de confiance créée
            gpg: clef E5267A6C : clef publique « Launchpad PPA for Ondƙej SurĂœ Â» importĂ©e
            gpg: QuantitĂ© totale traitĂ©e : 1
            gpg:               importĂ©es : 1  (RSA: 1)
            OK
            gpg: le porte-clefs « /tmp/tmpwush_arl/secring.gpg Â» a Ă©tĂ© créé
            gpg: le porte-clefs « /tmp/tmpwush_arl/pubring.gpg Â» a Ă©tĂ© créé
            gpg: demande de la clef E5267A6C sur le serveur hkp keyserver.ubuntu.com
            Error: retrieving gpg key timed out.
            gpg: /tmp/tmpwush_arl/trustdb.gpg : base de confiance créée
            gpg: clef E5267A6C : clef publique « Launchpad PPA for Ondƙej SurĂœ Â» importĂ©e
            gpg: QuantitĂ© totale traitĂ©e : 1
            gpg:               importĂ©es : 1  (RSA: 1)
            OK
            Atteint:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
            Atteint:2 http://nc.archive.ubuntu.com/ubuntu xenial InRelease
            Réception de:3 http://nc.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
            Réception de:4 http://nc.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
            Atteint:5 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial InRelease
            Atteint:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
            204 ko réceptionnés en 37s (5 401 o/s)
            Lecture des listes de paquets

            Lecture des listes de paquets

            Construction de l'arbre des dépendances

            Lecture des informations d'état

            ntpdate est déjà la version la plus récente (1:4.2.8p4+dfsg-3ubuntu5.8).
            python-software-properties est déjà la version la plus récente (0.96.20.7).
            Le paquet suivant a Ă©tĂ© installĂ© automatiquement et n'est plus nĂ©cessaire :
              libsodium18
            Veuillez utiliser « sudo apt autoremove Â» pour le supprimer.
            0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
            25 Mar 10:37:13 ntpdate[5250]: adjust time server 115.126.160.4 offset -0.015478 sec
            Generating locales (this might take a while)...
              en_US.UTF-8... done
            Generation complete.
            gpg: le porte-clefs « /tmp/tmpp8b089kn/secring.gpg Â» a Ă©tĂ© créé
            gpg: le porte-clefs « /tmp/tmpp8b089kn/pubring.gpg Â» a Ă©tĂ© créé
            gpg: demande de la clef E5267A6C sur le serveur hkp keyserver.ubuntu.com
            Error: retrieving gpg key timed out.
            gpg: /tmp/tmpp8b089kn/trustdb.gpg : base de confiance créée
            gpg: clef E5267A6C : clef publique « Launchpad PPA for Ondƙej SurĂœ Â» importĂ©e
            gpg: QuantitĂ© totale traitĂ©e : 1
            gpg:               importĂ©es : 1  (RSA: 1)
            OK
            Atteint:1 http://nc.archive.ubuntu.com/ubuntu xenial InRelease
            Réception de:2 http://nc.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
            Réception de:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
            Réception de:4 http://nc.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
            Réception de:5 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [67,5 kB]
            Réception de:6 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [81,7 kB]
            Réception de:7 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [55,9 kB]
            Réception de:8 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [88,8 kB]
            Atteint:9 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial InRelease
            Atteint:10 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
            600 ko réceptionnés en 36s (16,4 ko/s)
            Lecture des listes de paquets

            Lecture des listes de paquets

            Construction de l'arbre des dépendances

            Lecture des informations d'état

            ntpdate est déjà la version la plus récente (1:4.2.8p4+dfsg-3ubuntu5.8).
            software-properties-common est déjà la version la plus récente (0.96.20.7).
            python-software-properties est déjà la version la plus récente (0.96.20.7).
            Le paquet suivant a Ă©tĂ© installĂ© automatiquement et n'est plus nĂ©cessaire :
              libsodium18
            Veuillez utiliser « sudo apt autoremove Â» pour le supprimer.
            0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
            25 Mar 10:39:12 ntpdate[5674]: adjust time server 115.126.160.4 offset 0.014700 sec
            Generating locales (this might take a while)...
              en_US.UTF-8... done
            Generation complete.
            gpg: le porte-clefs « /tmp/tmpvi3uo95j/secring.gpg Â» a Ă©tĂ© créé
            gpg: le porte-clefs « /tmp/tmpvi3uo95j/pubring.gpg Â» a Ă©tĂ© créé
            gpg: demande de la clef E5267A6C sur le serveur hkp keyserver.ubuntu.com
            Error: retrieving gpg key timed out.
            gpg: /tmp/tmpvi3uo95j/trustdb.gpg : base de confiance créée
            gpg: clef E5267A6C : clef publique « Launchpad PPA for Ondƙej SurĂœ Â» importĂ©e
            gpg: QuantitĂ© totale traitĂ©e : 1
            gpg:               importĂ©es : 1  (RSA: 1)
            OK
            
            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Sebastian Roth Mar 25, 2018, 7:34 AM Mar 25, 2018, 1:33 PM

              @Nexqs I am not sure but could this be a very weird language issue. Not joking here. Would you mind installing Ubuntu from scratch again and stick to english language?

              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

              T 1 Reply Last reply Mar 25, 2018, 4:30 PM Reply Quote 0
              • T
                Tom Elliott @Sebastian Roth
                last edited by Mar 25, 2018, 4:30 PM

                @sebastian-roth I’ve gone over the code in working-1.5.1 branch to see what is going on.

                I doubt I’ve fixed anything, but I did notice that there’s potential of 3 separate times of running add-apt-repository for a single ubuntu install. I’ve modified it so this should only need to happen once now.

                (One of the times it ran without the LANG/LC_ALL elements, and if that failed it would rerun with these. I’ve made it so running with LANG/LC_ALL will be the normal method of running.)

                There was potential of 3 separate runs, but there was also at least 2 runs that had happen anyway. As I said, i doubt I fixed anything happening here, but at least we can more quickly name the problem.

                Looking through the logs being passed here I keep seeing;

                gpg: le porte-clefs « /tmp/tmpf65s40fu/secring.gpg » a été créé
                gpg: le porte-clefs « /tmp/tmpf65s40fu/pubring.gpg » a été créé
                gpg: demande de la clef E5267A6C sur le serveur hkp keyserver.ubuntu.com
                Error: retrieving gpg key timed out.
                gpg: /tmp/tmpf65s40fu/trustdb.gpg : base de confiance créée
                gpg: clef E5267A6C : clef publique « Launchpad PPA for Ondƙej SurĂœ » importĂ©e
                gpg: Quantité totale traitée : 1
                gpg:               importées : 1  (RSA: 1)
                OK
                gpg: le porte-clefs « /tmp/tmpwush_arl/secring.gpg » a été créé
                gpg: le porte-clefs « /tmp/tmpwush_arl/pubring.gpg » a été créé
                gpg: demande de la clef E5267A6C sur le serveur hkp keyserver.ubuntu.com
                Error: retrieving gpg key timed out.
                gpg: /tmp/tmpwush_arl/trustdb.gpg : base de confiance créée
                gpg: clef E5267A6C : clef publique « Launchpad PPA for Ondƙej SurĂœ » importĂ©e
                gpg: Quantité totale traitée : 1
                gpg:               importées : 1  (RSA: 1)
                OK
                

                Of specific note, I’m seeing the key is not able to be retrieved, maybe this is where the issue lies? This, I think, could happen if the system time is off or simply your network cannot reach keyserver.ubuntu.com

                I don’t know if this helps us out at all.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                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
                • N
                  Nexqs
                  last edited by Nexqs Mar 25, 2018, 4:00 PM Mar 25, 2018, 9:57 PM

                  @Sebastian-Roth Im reinstalling ubuntu with english, we will see what happen.
                  @Tom-Elliott Ill install with those commands that gives me @george1421, is that ok ?

                  sudo apt-get update && apt-get install git
                  
                  sudo -i
                  git clone https://github.com/FOGProject/fogproject.git /opt/fogproject
                  cd /opt/fogproject/bin
                  ./installfog.sh
                  G 1 Reply Last reply Mar 25, 2018, 10:53 PM Reply Quote 0
                  • G
                    george1421 Moderator @Nexqs
                    last edited by george1421 Mar 25, 2018, 4:54 PM Mar 25, 2018, 10:53 PM

                    @nexqs Yes those commands are OK.

                    I was going to have you check your current time and to ensure your timezone was correct and also see if you can ping keyserver.ubuntu.com which seems to be reported as a problem in your log file, but now we shall see how switching to english works. French should work because I know we have folks in France using FOG. I’m pretty sure its in their native language too.

                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                    1 Reply Last reply Reply Quote 0
                    • N
                      Nexqs
                      last edited by Mar 26, 2018, 8:37 AM

                      Hey,
                      just screenshot timezone and when i pinged keyserver.ubuntu.com :
                      1_1522045094146_Screenshot from 2018-03-26 17-10-15.png 0_1522045094145_Screenshot from 2018-03-26 17-09-22.png
                      And now the terminal with all cmds i typed :

                      root@fogserver:~# sudo apt-get update && apt-get install git
                      Hit:1 http://nc.archive.ubuntu.com/ubuntu xenial InRelease                  
                      Get:2 http://nc.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] 
                      Hit:3 http://security.ubuntu.com/ubuntu xenial-security InRelease             
                      Get:4 http://nc.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
                      Fetched 204 kB in 22s (9,204 B/s)                       
                      Reading package lists... Done
                      Reading package lists... Done
                      Building dependency tree       
                      Reading state information... Done
                      The following additional packages will be installed:
                        git-man liberror-perl
                      Suggested packages:
                        git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs
                        git-mediawiki git-svn
                      The following NEW packages will be installed:
                        git git-man liberror-perl
                      0 upgraded, 3 newly installed, 0 to remove and 383 not upgraded.
                      Need to get 3,857 kB of archives.
                      After this operation, 25.6 MB of additional disk space will be used.
                      Do you want to continue? [Y/n] y
                      Get:1 http://nc.archive.ubuntu.com/ubuntu xenial/main amd64 liberror-perl all 0.17-1.2 [19.6 kB]
                      Get:2 http://nc.archive.ubuntu.com/ubuntu xenial-updates/main amd64 git-man all 1:2.7.4-0ubuntu1.3 [736 kB]
                      Get:3 http://nc.archive.ubuntu.com/ubuntu xenial-updates/main amd64 git amd64 1:2.7.4-0ubuntu1.3 [3,102 kB]
                      Fetched 3,857 kB in 30s (127 kB/s)                                                                     
                      Selecting previously unselected package liberror-perl.
                      (Reading database ... 175107 files and directories currently installed.)
                      Preparing to unpack .../liberror-perl_0.17-1.2_all.deb ...
                      Unpacking liberror-perl (0.17-1.2) ...
                      Selecting previously unselected package git-man.
                      Preparing to unpack .../git-man_1%3a2.7.4-0ubuntu1.3_all.deb ...
                      Unpacking git-man (1:2.7.4-0ubuntu1.3) ...
                      Selecting previously unselected package git.
                      Preparing to unpack .../git_1%3a2.7.4-0ubuntu1.3_amd64.deb ...
                      Unpacking git (1:2.7.4-0ubuntu1.3) ...
                      Processing triggers for man-db (2.7.5-1) ...
                      Setting up liberror-perl (0.17-1.2) ...
                      Setting up git-man (1:2.7.4-0ubuntu1.3) ...
                      Setting up git (1:2.7.4-0ubuntu1.3) ...
                      root@fogserver:~# git clone https://github.com/FOGProject/fogproject.git /opt/fogproject
                      Cloning into '/opt/fogproject'...
                      remote: Counting objects: 136884, done.
                      remote: Compressing objects: 100% (533/533), done.
                      remote: Total 136884 (delta 536), reused 665 (delta 324), pack-reused 135937
                      Receiving objects: 100% (136884/136884), 730.32 MiB | 106.00 KiB/s, done.
                      Resolving deltas: 100% (96304/96304), done.
                      Checking connectivity... done.
                      root@fogserver:~# cd /opt/fogproject/bin
                      root@fogserver:/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.0 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.......................................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)] n
                      
                        What is the IP address to be used by this FOG Server? [192.168.0.24]
                      
                        Would you like to change the default network interface from enp0s3?
                        If you are not sure, select No. [y/N] n
                      
                        Would you like to setup a router address for the DHCP server? [Y/n] y
                        What is the IP address to be used for the router on
                            the DHCP server? [192.168.0.1]
                      
                        Would you like DHCP to handle DNS? [Y/n] y
                        What DNS address should DHCP allow? [127.0.1.1] 
                      
                        Would you like to use the FOG server for DHCP service? [y/N] y
                      
                        This version of FOG has internationalization support, would  
                        you like to install the additional language packs? [y/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: 192.168.0.24
                       * Server Subnet Mask: 255.255.255.0
                       * Interface: enp0s3
                       * Installation Type: Normal Server
                       * Internationalization: 0
                       * Image Storage Location: /images
                       * Using FOG DHCP: Yes
                       * DHCP router Address: 192.168.0.1
                      
                      
                       * 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@fogserver:/opt/fogproject/bin#  cd error_logs/
                      root@fogserver:/opt/fogproject/bin/error_logs# cat fog
                      fog_error_1.5.0.log  foginstall.log       
                      root@fogserver:/opt/fogproject/bin/error_logs# cat fog
                      fog_error_1.5.0.log  foginstall.log       
                      root@fogserver:/opt/fogproject/bin/error_logs# cat fog
                      fog_error_1.5.0.log  foginstall.log       
                      root@fogserver:/opt/fogproject/bin/error_logs# cat fog
                      fog_error_1.5.0.log  foginstall.log       
                      root@fogserver:/opt/fogproject/bin/error_logs# cat fog_error_1.5.0.log 
                      /usr/bin/lsb_release
                      /bin/systemctl
                      Reading package lists...
                      Building dependency tree...
                      Reading state information...
                      software-properties-common is already the newest version (0.96.20.7).
                      The following additional packages will be installed:
                        python-apt python-pycurl
                      Suggested packages:
                        python-apt-dbg python-apt-doc libcurl4-gnutls-dev python-pycurl-dbg
                        python-pycurl-doc
                      The following NEW packages will be installed:
                        python-apt python-pycurl python-software-properties
                      0 upgraded, 3 newly installed, 0 to remove and 383 not upgraded.
                      Need to get 203 kB of archives.
                      After this operation, 931 kB of additional disk space will be used.
                      Get:1 http://nc.archive.ubuntu.com/ubuntu xenial-updates/main amd64 python-apt amd64 1.1.0~beta1ubuntu0.16.04.1 [139 kB]
                      Get:2 http://nc.archive.ubuntu.com/ubuntu xenial/main amd64 python-pycurl amd64 7.43.0-1ubuntu1 [43.3 kB]
                      Get:3 http://nc.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 python-software-properties all 0.96.20.7 [20.7 kB]
                      Fetched 203 kB in 21s (9,474 B/s)
                      Selecting previously unselected package python-apt.
                      (Reading database ... 175922 files and directories currently installed.)
                      Preparing to unpack .../python-apt_1.1.0~beta1ubuntu0.16.04.1_amd64.deb ...
                      Unpacking python-apt (1.1.0~beta1ubuntu0.16.04.1) ...
                      Selecting previously unselected package python-pycurl.
                      Preparing to unpack .../python-pycurl_7.43.0-1ubuntu1_amd64.deb ...
                      Unpacking python-pycurl (7.43.0-1ubuntu1) ...
                      Selecting previously unselected package python-software-properties.
                      Preparing to unpack .../python-software-properties_0.96.20.7_all.deb ...
                      Unpacking python-software-properties (0.96.20.7) ...
                      Setting up python-apt (1.1.0~beta1ubuntu0.16.04.1) ...
                      Setting up python-pycurl (7.43.0-1ubuntu1) ...
                      Setting up python-software-properties (0.96.20.7) ...
                      ../lib/common/functions.sh: line 535: ntpdate: command not found
                      gpg: keyring `/tmp/tmphhnywf9g/secring.gpg' created
                      gpg: keyring `/tmp/tmphhnywf9g/pubring.gpg' created
                      gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
                      Error: retrieving gpg key timed out.
                      gpg: /tmp/tmphhnywf9g/trustdb.gpg: trustdb created
                      gpg: key E5267A6C: public key "Launchpad PPA for Ondƙej SurĂœ" imported
                      gpg: Total number processed: 1
                      gpg:               imported: 1  (RSA: 1)
                      OK
                      gpg: keyring `/tmp/tmpmgndtbo8/secring.gpg' created
                      gpg: keyring `/tmp/tmpmgndtbo8/pubring.gpg' created
                      gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
                      Error: retrieving gpg key timed out.
                      gpg: /tmp/tmpmgndtbo8/trustdb.gpg: trustdb created
                      gpg: key E5267A6C: public key "Launchpad PPA for Ondƙej SurĂœ" imported
                      gpg: Total number processed: 1
                      gpg:               imported: 1  (RSA: 1)
                      OK
                      Hit:1 http://nc.archive.ubuntu.com/ubuntu xenial InRelease
                      Get:2 http://nc.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
                      Get:3 http://nc.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
                      Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
                      Get:5 http://nc.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [317 kB]
                      Get:6 http://nc.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [224 kB]
                      Get:7 http://nc.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [193 kB]
                      Get:8 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [67.5 kB]
                      Get:9 http://nc.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [275 kB]
                      Get:10 http://nc.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5,888 B]
                      Get:11 http://nc.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]
                      Get:12 http://nc.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5,084 B]
                      Get:13 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [81.7 kB]
                      Get:14 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [56.0 kB]
                      Get:15 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [93.6 kB]
                      Get:16 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial InRelease [23.8 kB]
                      Get:17 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease [23.9 kB]
                      Get:18 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 Packages [13.9 kB]
                      Get:19 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main i386 Packages [14.0 kB]
                      Get:20 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main Translation-en [7,888 B]
                      Get:21 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages [46.0 kB]
                      Get:22 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main i386 Packages [45.8 kB]
                      Get:23 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main Translation-en [26.5 kB]
                      Fetched 1,830 kB in 42s (42.9 kB/s)
                      Reading package lists...
                      Reading package lists...
                      Building dependency tree...
                      Reading state information...
                      python-software-properties is already the newest version (0.96.20.7).
                      The following NEW packages will be installed:
                        ntpdate
                      0 upgraded, 1 newly installed, 0 to remove and 388 not upgraded.
                      Need to get 48.7 kB of archives.
                      After this operation, 173 kB of additional disk space will be used.
                      Get:1 http://nc.archive.ubuntu.com/ubuntu xenial-updates/main amd64 ntpdate amd64 1:4.2.8p4+dfsg-3ubuntu5.8 [48.7 kB]
                      Fetched 48.7 kB in 20s (2,393 B/s)
                      Selecting previously unselected package ntpdate.
                      (Reading database ... 175974 files and directories currently installed.)
                      Preparing to unpack .../ntpdate_1%3a4.2.8p4+dfsg-3ubuntu5.8_amd64.deb ...
                      Unpacking ntpdate (1:4.2.8p4+dfsg-3ubuntu5.8) ...
                      Processing triggers for man-db (2.7.5-1) ...
                      Setting up ntpdate (1:4.2.8p4+dfsg-3ubuntu5.8) ...
                      26 Mar 19:32:55 ntpdate[7409]: adjust time server 115.126.160.4 offset -0.003329 sec
                      Generating locales (this might take a while)...
                        en_US.UTF-8... done
                      Generation complete.
                      gpg: keyring `/tmp/tmp5udgpevy/secring.gpg' created
                      gpg: keyring `/tmp/tmp5udgpevy/pubring.gpg' created
                      gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
                      Error: retrieving gpg key timed out.
                      gpg: /tmp/tmp5udgpevy/trustdb.gpg: trustdb created
                      gpg: key E5267A6C: public key "Launchpad PPA for Ondƙej SurĂœ" imported
                      gpg: Total number processed: 1
                      gpg:               imported: 1  (RSA: 1)
                      OK
                      Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
                      Hit:2 http://nc.archive.ubuntu.com/ubuntu xenial InRelease
                      Get:3 http://nc.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
                      Get:4 http://nc.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
                      Hit:5 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial InRelease
                      Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease [23.9 kB]
                      Fetched 228 kB in 36s (6,305 B/s)
                      Reading package lists...
                      Reading package lists...
                      Building dependency tree...
                      Reading state information...
                      ntpdate is already the newest version (1:4.2.8p4+dfsg-3ubuntu5.8).
                      software-properties-common is already the newest version (0.96.20.7).
                      python-software-properties is already the newest version (0.96.20.7).
                      0 upgraded, 0 newly installed, 0 to remove and 388 not upgraded.
                      26 Mar 19:34:50 ntpdate[7814]: adjust time server 115.126.160.4 offset 0.001809 sec
                      Generating locales (this might take a while)...
                        en_US.UTF-8... done
                      Generation complete.
                      gpg: keyring `/tmp/tmph13wz5fb/secring.gpg' created
                      gpg: keyring `/tmp/tmph13wz5fb/pubring.gpg' created
                      gpg: requesting key E5267A6C from hkp server keyserver.ubuntu.com
                      Error: retrieving gpg key timed out.
                      gpg: /tmp/tmph13wz5fb/trustdb.gpg: trustdb created
                      gpg: key E5267A6C: public key "Launchpad PPA for Ondƙej SurĂœ" imported
                      gpg: Total number processed: 1
                      gpg:               imported: 1  (RSA: 1)
                      OK
                      root@fogserver:/opt/fogproject/bin/error_logs# 
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Mar 26, 2018, 7:03 PM

                        @Nexqs Ok, sorry I was wrong. Does not seem to be a language thing as I thought. Would you please do a package capture of this to hopefully find out what’s exactly “timing out”.

                        For that open two terminal windows. In the first get the following command ready but don’t start it yet: LANG='en_US.UTF-8' LC_ALL='en_US.UTF-8' sudo add-apt-repository -y ppa:ondrej/php

                        In the other terminal window run: sudo tcpdump -w add-repo.pcap (it will start and not bring you back to the shell - let it sit there, go the the first terminal and run the command. When it’s done stop the tcpdump command using Crtl+c)

                        Now upload that packet capture file add-repo.pcap to your dropbox and post a link here.

                        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
                        • N
                          Nexqs
                          last edited by Mar 27, 2018, 6:33 AM

                          @Sebastian-Roth Ok i did what you tell me to do, here is the file on dropbox here

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by Sebastian Roth Mar 27, 2018, 1:48 PM Mar 27, 2018, 7:44 PM

                            @Nexqs I have not found out what’s causing the issue but looking at the PCAP. There is a lot of noise from the webbrowser. Should have told you to close that before doing the capture. But I still can get the gist. I see three DNS requests to keyserver.ubuntu.com five seconds (!!!) later followed by a HTTP request to retrieve the key. To me this sounds strange. Why would it do the DNS request that often before initiating the HTTP connection? Did you run the add-apt-repository command only once or did it fail and you can it three times?

                            What happens of you try to download the key using curl (or wget)?

                            user@fogserver:~$ curl "http://keyserver.ubuntu.com/pks/lookup?op=get&options=mr&search=0x14AA40EC0831756756D7F66C4F4EA0AAE5267A6C"
                            -----BEGIN PGP PUBLIC KEY BLOCK-----
                            Version: SKS 1.1.6
                            Comment: Hostname: keyserver.ubuntu.com
                            
                            mI0ESX35nAEEALKDCUDVXvmW9n+T/+3G1DnTpoWh9/1xNaz/RrUH6fQKhHr568F8hfnZP/2C
                            GYVYkW9hxP9LVW9IDvzcmnhgIwK+ddeaPZqh3T/FM4OTA7Q78HSvR81mJpf2iMLm/Zvh89Zs
                            mP2sIgZuARiaHo8lxoTSLtmKXsM3FsJVlusyewHfABEBAAG0H0xhdW5jaHBhZCBQUEEgZm9y
                            IE9uZMWZZWogU3Vyw72ItgQTAQIAIAUCSX35nAIbAwYLCQgHAwIEFQIIAwQWAgMBAh4BAheA
                            AAoJEE9OoKrlJnpsQjYD/jW1NlIFAlT6EvF2xfVbkhERii9MapjaUsSso4XLCEmZdEGX54GQ
                            01svXnrivwnd/kmhKvyxCqiNLDY/dOaK8MK//bDI6mqdKmG8XbP2vsdsxhifNC+GH/OwaDPv
                            n1TyYB653kwyruCGFjEnCreZTcRUu2oBQyolORDl+BmF4DjL
                            =R5tk
                            -----END PGP PUBLIC KEY BLOCK-----
                            

                            Should look like this.

                            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
                            • N
                              Nexqs
                              last edited by Sebastian Roth Mar 27, 2018, 11:03 PM Mar 27, 2018, 9:29 PM

                              @Sebastian-Roth I did once this commands : LANG='en_US.UTF-8' LC_ALL='en_US.UTF-8' sudo add-apt-repository -y ppa:ondrej/php after typing the commands sudo tcpdump -w add-repo.pcap
                              Soz i let the browser open !
                              Ill try to get the key via curl as you shown me : curl “http://keyserver.ubuntu.com/pks/lookup?op=get&options=mr&search=0x14AA40EC0831756756D7F66C4F4EA0AAE5267A6C”

                              1 Reply Last reply Reply Quote 0
                              • S
                                Sebastian Roth Moderator
                                last edited by Sebastian Roth Mar 27, 2018, 11:03 PM Mar 28, 2018, 5:02 AM

                                @nexqs said in Adding needed repository... Failed!:

                                Ill try to get the key via curl as you shown me

                                You might need to install curl first, nor sure if it is by default in Ubuntu?!

                                No worries about the browser
 Should have told you.

                                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
                                • N
                                  Nexqs
                                  last edited by Nexqs Mar 28, 2018, 1:05 AM Mar 28, 2018, 7:05 AM

                                  @Sebastian-Roth I just did the cmd with an wget :

                                  fog@fogserver:~$ wget "http://keyserver.ubuntu.com/pks/lookup?op=get&options=mr&search=0x14AA40EC0831756756D7F66C4F4EA0AAE5267A6C"
                                  --2018-03-28 17:56:04--  http://keyserver.ubuntu.com/pks/lookup?op=get&options=mr&search=0x14AA40EC0831756756D7F66C4F4EA0AAE5267A6C
                                  Resolving keyserver.ubuntu.com (keyserver.ubuntu.com)... 91.189.90.55, 91.189.89.49
                                  Connecting to keyserver.ubuntu.com (keyserver.ubuntu.com)|91.189.90.55|:80... connected.
                                  HTTP request sent, awaiting response... 200 OK
                                  Length: 626 [application/pgp-keys]
                                  Saving to: ‘lookup?op=get&options=mr&search=0x14AA40EC0831756756D7F66C4F4EA0AAE5267A6C’
                                  
                                  lookup?op=get&optio 100%[===================>]     626  --.-KB/s    in 0s      
                                  
                                  2018-03-28 17:56:20 (43.4 MB/s) - ‘lookup?op=get&options=mr&search=0x14AA40EC0831756756D7F66C4F4EA0AAE5267A6C’ saved [626/626]
                                  
                                  fog@fogserver:~$ 
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Sebastian Roth Moderator
                                    last edited by Sebastian Roth Aug 6, 2019, 11:52 AM Mar 28, 2018, 6:27 PM

                                    @Nexqs Hope you don’t feel annoyed by all the questions and stuff I make you try out. Could you please run wget "http://keyserver.ubuntu.com/pks/lookup?op=get&options=mr&search=0x14AA40EC0831756756D7F66C4F4EA0AAE5267A6C" ; cat "lookup?op=get&options=mr&search=0x14AA40EC0831756756D7F66C4F4EA0AAE5267A6C" just to make sure you get the same key downloaded that I had.

                                    I will setup an Ubuntu VM and try things out as well. I am sure we can figure this out. I still have a feeling that this might be some kind of network issue on your side. Not sure though.

                                    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
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by Mar 29, 2018, 8:49 AM

                                      @Nexqs Ok, I got up a test VM and did some testing. It works great on my side. Taking a packet dump on my machine I noticed that two DNS requests to launchpad.net seem to be part of the add-apt-repository call. I see those in your PCAP as well (after I filtered through all the other stuff more thoroughly). Now the interesting thing I notice is that the requests from your machine seem to take some time. We are talking milliseconds here but having looked into many packet dumps I clearly notice this as a possible pointer for explaining what’s wrong. While requests in my case come three milliseconds after the other yours seem to take 400 ms at times - which is hell of a lot even in networks. It could trigger some unexpected behavior. It’s not always like this but I do see this and wonder what’s wrong. As you capture right on the server to me it would simply translate to a high load on the server. Is there other (network/calculation) “stuff” happening at the same time? Is this running on a physical server or within some kind of VM environment?

                                      What else do I see. It takes five (!!!) seconds before it sends the initiating TCP SYN packet to start the HTTP connection after it got the DNS answer. Something is definitely wrong here. From what I see in the PCAP it’s not the network but the host itself. Please run cat /proc/loadavg and post results here.

                                      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
                                      • N
                                        Nexqs
                                        last edited by Mar 29, 2018, 9:15 AM

                                        @sebastian-roth SO if i understand everything, its my internet connection that is slow ?

                                        fog@fogserver:~$ cat /proc/loadavg
                                        0.23 0.50 0.25 4/392 2005
                                        fog@fogserver:~$ 
                                        fog@fogserver:~$ wget “http://keyserver.ubuntu.com/pks/lookup?op=get&options=mr&search=0x14AA40EC0831756756D7F66C4F4EA0AAE5267A6C” 
                                        [1] 2019
                                        [2] 2020
                                        fog@fogserver:~$ “http://keyserver.ubuntu.com/pks/lookup?op=get: Scheme missing.
                                        
                                        [1]-  Exit 1                  wget “http://keyserver.ubuntu.com/pks/lookup?op=get
                                        [2]+  Done                    options=mr
                                        fog@fogserver:~$ cat “lookup?op=get&options=mr&search=0x14AA40EC0831756756D7F66C4F4EA0AAE5267A6C”
                                        [1] 2021
                                        [2] 2022
                                        fog@fogserver:~$ cat: '“lookup?op=get': No such file or directory
                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by Sebastian Roth Mar 29, 2018, 2:16 PM Mar 29, 2018, 8:15 PM

                                          @Nexqs No from the PCAP it looks like your server is slow! Is FOG installed on hardware or in a virtual machine?

                                          Sorry for the command hickup. It did not mask the stuff as command when I posted it and that broke it when you copy & pasted it. Please try again with this:

                                          wget -O key.txt "http://keyserver.ubuntu.com/pks/lookup?op=get&options=mr&search=0x14AA40EC0831756756D7F66C4F4EA0AAE5267A6C"
                                          cat key.txt
                                          

                                          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
                                          • 2
                                          • 3
                                          • 1 / 3
                                          1 / 3
                                          • First post
                                            21/41
                                            Last post

                                          153

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project