• 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.
    • S
      Sebastian Roth Moderator
      last edited by Sebastian Roth

      @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

        @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

          @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

            @Sebastian-Roth Yes sure ! strange issue 


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

              @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

                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 Reply Quote 0
                • A
                  Arrowtron @Arrowtron
                  last edited by

                  @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

                    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

                      @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 Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by

                        @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

                          @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

                          188

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project