Adding needed repository... Failed!
-
It still fail, here is the log file from /bin/error_logs/fog_error_1.5.0.log.
Sorry for the french part, i think the issue is at the end of the file âError: retrieving gpg key timed outâ but i dont know what to do about it. Thx in advance again for all you guys!/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 : libllvm4.0 Veuillez utiliser « sudo apt autoremove » pour le supprimer. 0 mis Ă jour, 0 nouvellement installĂ©s, 0 Ă enlever et 9 non mis Ă jour. 22 Mar 22:37:36 ntpdate[2498]: adjust time server 202.22.158.31 offset 0.022177 sec gpg: le porte-clefs « /tmp/tmp9k8w526j/secring.gpg » a Ă©tĂ© crĂ©Ă© gpg: le porte-clefs « /tmp/tmp9k8w526j/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/tmp9k8w526j/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/tmprcmi53l0/secring.gpg » a Ă©tĂ© crĂ©Ă© gpg: le porte-clefs « /tmp/tmprcmi53l0/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/tmprcmi53l0/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://nc.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB] RĂ©ception de:4 http://nc.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [742 kB] RĂ©ception de:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] RĂ©ception de:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [67,4 kB] RĂ©ception de:7 http://nc.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [689 kB] RĂ©ception de:8 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [72,2 kB] RĂ©ception de:9 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [56,0 kB] RĂ©ception de:10 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [93,6 kB] RĂ©ception de:11 http://nc.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [317 kB] RĂ©ception de:12 http://nc.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [226 kB] RĂ©ception de:13 http://nc.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [606 kB] RĂ©ception de:14 http://nc.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [561 kB] RĂ©ception de:15 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial InRelease [23,8 kB] RĂ©ception de:16 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease [23,9 kB] RĂ©ception de:17 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main amd64 Packages [13,9 kB] RĂ©ception de:18 http://nc.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [193 kB] RĂ©ception de:19 http://nc.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [275 kB] RĂ©ception de:20 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main i386 Packages [14,0 kB] RĂ©ception de:21 http://nc.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [5 888 B] RĂ©ception de:22 http://nc.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3 328 B] RĂ©ception de:23 http://nc.archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [5 088 B] RĂ©ception de:24 http://ppa.launchpad.net/ondrej/apache2/ubuntu xenial/main Translation-en [7 888 B] RĂ©ception de:25 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 Packages [46,0 kB] RĂ©ception de:26 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main i386 Packages [45,8 kB] RĂ©ception de:27 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main Translation-en [26,5 kB] 4 421 ko rĂ©ceptionnĂ©s en 46s (94,9 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). 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 : libllvm4.0 Veuillez utiliser « sudo apt autoremove » pour le supprimer. 0 mis Ă jour, 0 nouvellement installĂ©s, 0 Ă enlever et 18 non mis Ă jour. 22 Mar 22:40:36 ntpdate[2984]: adjust time server 115.126.160.4 offset 0.043608 sec Generating locales (this might take a while)... en_US.UTF-8... done Generation complete. gpg: le porte-clefs « /tmp/tmp1315xmu8/secring.gpg » a Ă©tĂ© crĂ©Ă© gpg: le porte-clefs « /tmp/tmp1315xmu8/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/tmp1315xmu8/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] Atteint:3 http://security.ubuntu.com/ubuntu xenial-security InRelease 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 RĂ©ception de:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease [23,9 kB] 228 ko rĂ©ceptionnĂ©s en 36s (6 269 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). 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 : libllvm4.0 Veuillez utiliser « sudo apt autoremove » pour le supprimer. 0 mis Ă jour, 0 nouvellement installĂ©s, 0 Ă enlever et 18 non mis Ă jour. 22 Mar 22:42:33 ntpdate[3372]: adjust time server 202.22.158.31 offset 0.019752 sec Generating locales (this might take a while)... en_US.UTF-8... done Generation complete. gpg: le porte-clefs « /tmp/tmpjt1c2wyr/secring.gpg » a Ă©tĂ© crĂ©Ă© gpg: le porte-clefs « /tmp/tmpjt1c2wyr/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/tmpjt1c2wyr/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
-
@nexqs said in Adding needed repository... Failed!:
Error: retrieving gpg key timed out.
Are you behind a proxy server by any chance?
-
Unfortunatly im not behind a proxy, the network is from my home and the modem/router dont have any proxy set up
-
@nexqs so from an elevated linux command prompt can you key in
sudo apt-get update
and have it complete successfully?
What aboutsudo apt-get upgrade
? -
@george1421 Yes everything is ok
-
@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
-
@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-upgradeHere 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:~#
-
@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.
-
@george1421 Trying right now
-
@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
-
@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?
-
@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.
-
@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
-
@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.
-
Hey,
just screenshot timezone and when i pinged keyserver.ubuntu.com :
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#
-
@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. -
@Sebastian-Roth Ok i did what you tell me to do, here is the file on dropbox here
-
@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 theadd-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
(orwget
)?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.
-
@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 commandssudo 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â -
@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.