• 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.6k
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.
  • 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
                • N
                  Nexqs
                  last edited by Apr 1, 2018, 3:42 AM

                  @Sebastian-Roth Ubuntu is installed on a VM (with 3 Go ramfor the vm : i have 8go on my laptop, an ssd and i3). It did the same thing with my VM on my desktop (i7, 6go ram for the vm and 16go in total and a ssd).
                  Here is the key :

                  fog@fogserver:~$ wget -O key.txt "http://keyserver.ubuntu.com/pks/lookup?op=get&options=mr&search=0x14AA40EC0831756756D7F66C4F4EA0AAE5267A6C"
                  --2018-04-01 14:41:46--  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: ‘key.txt’
                  
                  key.txt             100%[===================>]     626  --.-KB/s    in 0s      
                  
                  2018-04-01 14:42:02 (39.4 MB/s) - ‘key.txt’ saved [626/626]
                  
                  fog@fogserver:~$ cat key.txt
                  -----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-----
                  fog@fogserver:~$ 
                  
                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Apr 2, 2018, 7:22 PM

                    @Nexqs I am at a loss here. This seems to be such a strange issue. I have seen a lot of crazy things happen but this one I can’t get my head around. Why would apt-add-repository tell us “timed out” if it comes back adding the key anyway.

                    Are you keen to just modify the installer script to skip the check and go on? We can give you instructions on how to do 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 Apr 3, 2018, 9:13 PM

                      @Sebastian-Roth Yes sure ! strange issue …

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Apr 6, 2018, 6:32 AM

                        @Nexqs Sorry for my late reply. Please try this: Edit /opt/fogproject/lib/common/functions.sh, jump to line 623 and add a hash tag as comment at the beginning to disable, make it look like this:

                        ...
                                    esac
                                    ;;
                            esac
                            #errorStat $?
                            dots "Preparing Package Manager"
                        ...
                        

                        Now rerun the installer as usual.

                        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
                        • A
                          Arrowtron
                          last edited by Apr 12, 2018, 1:58 AM

                          Hi there,

                          I am getting the same issue as well, please assist

                          Currently running FOG 1.5.0, trying to upgrade to 1.5.2 through PUTTY

                          0_1523498264074_bb171c07-b7e9-411b-b91e-ce0b482d7901-image.png

                          I am not running through a Proxy, i have upgraded to 1.5.0 a few weeks ago i think

                          A 1 Reply Last reply Apr 12, 2018, 2:58 AM Reply Quote 0
                          • A
                            Arrowtron @Arrowtron
                            last edited by Apr 12, 2018, 2:58 AM

                            @arrowtron

                            Update:

                            @Sebastian-Roth Post about editing \root\fogproject\lib\common\functions.sh has fixed the issue

                            Thanks!

                            1 Reply Last reply Reply Quote 0
                            • B
                              benc
                              last edited by Mar 13, 2019, 8:31 PM

                              I just ran into this issue:

                               * Adding needed repository....................................Failed!
                              

                              Fresh install of Ubuntu server 18.04 LTS using network installer on an old IBM X3650 server. The only software I selected to install during Ubuntu setup was the SSH server. Downloaded and extracted the tarball from https://github.com/FOGProject/fogproject/archive/1.5.5.tar.gz. Could not get past the error until I ran this:

                              sudo apt-get install software-properties-common
                              

                              It looks like the FOG install script expected that package to already be installed. Hope this helps someone.

                              Ben

                              1 Reply Last reply Reply Quote 0
                              • S
                                Sebastian Roth Moderator
                                last edited by Mar 14, 2019, 6:49 AM

                                @benc Thanks for letting us know. As far as I can see we do exactly this within the installer. See here: https://github.com/FOGProject/fogproject/blob/master/lib/common/functions.sh#L534

                                As we have been informed about this being an issue within Ubuntu twice in the last days I am wondering if there is anything Ubuntu changed to make this fail?!

                                @Wayne-Workman The installer test seems absolutely fine but possibly that’s because you have the package software-properties-common pre-installed? Can you check on that? I have had a look at the logs from your installer tests but the package is not mentioned and that’s why I guess you have it pre-installed…

                                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

                                Wayne WorkmanW 1 Reply Last reply Mar 16, 2019, 4:36 PM Reply Quote 0
                                • S
                                  Sebastian Roth Moderator
                                  last edited by Mar 14, 2019, 6:56 AM

                                  @benc I just pushed a fix to the dev-branch - download here: https://github.com/FOGProject/fogproject/archive/dev-branch.tar.gz

                                  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
                                  • Wayne WorkmanW
                                    Wayne Workman @Sebastian Roth
                                    last edited by Mar 16, 2019, 4:36 PM

                                    @Sebastian-Roth said in Adding needed repository... Failed!:

                                    @Wayne-Workman The installer test seems absolutely fine but possibly that’s because you have the package software-properties-common pre-installed? Can you check on that? I have had a look at the logs from your installer tests but the package is not mentioned and that’s why I guess you have it pre-installed…

                                    Yes, it’s pre-installed. This is on Ubuntu 18.04 server, minimal installation.

                                    root@ip-10-0-0-165:~# dpkg -l | grep software-properties-common
                                    ii  software-properties-common     0.96.24.32.7                      all          manage the repositories that you install software from (common)
                                    

                                    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!
                                    Daily Clean Installation Results:
                                    https://fogtesting.fogproject.us/
                                    FOG Reporting:
                                    https://fog-external-reporting-results.fogproject.us/

                                    1 Reply Last reply Reply Quote 1
                                    • 1
                                    • 2
                                    • 3
                                    • 2 / 3
                                    • First post
                                      Last post

                                    153

                                    Online

                                    12.0k

                                    Users

                                    17.3k

                                    Topics

                                    155.2k

                                    Posts
                                    Copyright © 2012-2024 FOG Project