4 Replies Latest reply on Jan 11, 2017 11:22 AM by Intel Corporation

    opkg install mraa, upm fails due to 403 Forbidden for libstdc++6_4.9.1-r0

    jcuzella

      After updating my Edison to the latest firmware (iot-devkit-prof-dev-image-edison-20160606-patch), and adding some opkg repo feeds to /etc/opkg, I am seeing an error when trying to install the upm or mraa packages.  There appears to be a particular file on the core2-32 repo that is returning a 403 error when wget tries to download it (hence exit status 8 "Server issued an error response")

       

      # opkg install mraa Installing mraa (1.0.0-r0) on root. 
      Downloading http://repo.opkg.net/edison/repo/core2-32/mraa_1.0.0-r0_core2-32.ipk. 
      Installing libstdc++6 (4.9.1-r0.0) on root. 
      Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libstdc++6_4.9.1-r0.0_core2-32.ipk. 
      Collected errors:  
      * opkg_download: Failed to download http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libstdc++6_4.9.1-r0.0_core2-32.ipk, wget returned 8.  
      * opkg_install_pkg: Failed to download libstdc++6. Perhaps you need to run 'opkg update'?  
      * opkg_install_cmd: Cannot install package mraa.
      

       

      The same issue happens with upm:

       

      # opkg install upm Installing upm (0.7.0-r0) on root. 
      Downloading http://repo.opkg.net/edison/repo/core2-32/upm_0.7.0-r0_core2-32.ipk. 
      package libtinfo5 suggests installing ncurses-terminfo 
      Installing libgcc1 (4.9.1-r0.0) on root. Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libgcc1_4.9.1-r0.0_core2-32.ipk. 
      Installing libc6 (2.20-r0) on root. 
      Downloading http://repo.opkg.net/edison/repo/core2-32/libc6_2.20-r0_core2-32.ipk. 
      Upgrading libc6 from 2.20-r0 to 2.20-r0.0 on root. 
      Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libc6_2.20-r0.0_core2-32.ipk. 
      Installing libpython2.7-1.0 (2.7.3-r0.3.0) on root. 
      Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libpython2.7-1.0_2.7.3-r0.3.0_core2-32.ipk. 
      Installing python-core (2.7.3-r0.3.0) on root. 
      Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/python-core_2.7.3-r0.3.0_core2-32.ipk. 
      Installing python-re (2.7.3-r0.3) on root. 
      Downloading http://repo.opkg.net/edison/repo/core2-32/python-re_2.7.3-r0.3_core2-32.ipk. 
      Installing python-core (2.7.3-r0.3) on root. 
      Downloading http://repo.opkg.net/edison/repo/core2-32/python-core_2.7.3-r0.3_core2-32.ipk. 
      Installing python-re (2.7.3-r0.3) on root. 
      Breaking circular dependency on python-re for python-core. 
      Installing libz1 (1.2.8-r0) on root. 
      Downloading http://repo.opkg.net/edison/repo/core2-32/libz1_1.2.8-r0_core2-32.ipk. 
      Installing python-lang (2.7.3-r0.3) on root. 
      Downloading http://repo.opkg.net/edison/repo/core2-32/python-lang_2.7.3-r0.3_core2-32.ipk. 
      Installing python-core (2.7.3-r0.3) on root. 
      Breaking circular dependency on python-core for python-re. 
      Breaking circular dependency on python-core for libz1. 
      Breaking circular dependency on python-core for python-lang. 
      Upgrading python-re from 2.7.3-r0.3 to 2.7.3-r0.3.0 on root. 
      Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/python-re_2.7.3-r0.3.0_core2-32.ipk. 
      Upgrading libz1 from 1.2.8-r0 to 1.2.8-r0.0 on root. 
      Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libz1_1.2.8-r0.0_core2-32.ipk. 
      Upgrading python-lang from 2.7.3-r0.3 to 2.7.3-r0.3.0 on root. 
      Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/python-lang_2.7.3-r0.3.0_core2-32.ipk. 
      Installing python-readline (2.7.3-r0.3.0) on root. 
      Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/python-readline_2.7.3-r0.3.0_core2-32.ipk. 
      Installing libreadline6 (6.3-r0) on root. 
      Downloading http://repo.opkg.net/edison/repo/core2-32/libreadline6_6.3-r0_core2-32.ipk. 
      Installing libtinfo5 (5.9-r15.1) on root. 
      Downloading http://repo.opkg.net/edison/repo/core2-32/libtinfo5_5.9-r15.1_core2-32.ipk. 
      Upgrading libreadline6 from 6.3-r0 to 6.3-r0.0 on root. 
      Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libreadline6_6.3-r0.0_core2-32.ipk. 
      Upgrading libtinfo5 from 5.9-r15.1 to 5.9-r15.1.0 on root. 
      Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libtinfo5_5.9-r15.1.0_core2-32.ipk. 
      Installing ncurses-terminfo-base (5.9-r15.1.0) on root. 
      Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/ncurses-terminfo-base_5.9-r15.1.0_core2-32.ipk. 
      Installing libstdc++6 (4.9.1-r0.0) on root. 
      Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libstdc++6_4.9.1-r0.0_core2-32.ipk. 
      Configuring libc6. 
      Configuring python-re. 
      Configuring libpython2.7-1.0. 
      Configuring libz1. 
      Configuring python-lang. 
      Configuring python-core. 
      Configuring ncurses-terminfo-base. 
      Configuring libtinfo5. 
      Configuring libreadline6. 
      Configuring python-readline. 
      Configuring libgcc1. 
      Collected errors:
        opkg_download: Failed to download http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libstdc++6_4.9.1-r0.0_core2-32.ipk, wget returned 8.
        opkg_install_pkg: Failed to download libstdc++6. Perhaps you need to run 'opkg update'?
        opkg_install_cmd: Cannot install package upm.
      

       

       

      When trying to download manually with curl and showing request / response headers, I see a 403 returned by what appears to be an Amazon S3 bucket:

       

      # curl -v http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libstdc++6_4.9.1-r0.0_core2-32.ipk
      * Hostname was NOT found in DNS cache
      *   Trying 96.17.208.37...
      * Connected to iotdk.intel.com (96.17.208.37) port 80 (#0)
      > GET /repos/2.0/iotdk/core2-32/libstdc++6_4.9.1-r0.0_core2-32.ipk HTTP/1.1
      > User-Agent: curl/7.37.1
      > Host: iotdk.intel.com
      > Accept: */*
      >
      < HTTP/1.1 403 Forbidden
      < x-amz-request-id: 4C8FCB1DE3D5F22B
      < x-amz-id-2: di2fGAjw8eoA5Bn/Tu9qjBo68QB32vxg47LNyDNDS4umQlL/ioG+aZZSmXHo7tc3eZny57x/8XY=
      < Content-Type: application/xml
      * Server AmazonS3 is not blacklisted
      < Server: AmazonS3
      < Content-Length: 243
      < Date: Tue, 10 Jan 2017 07:38:13 GMT
      < Connection: keep-alive
      < Vary: Accept-Encoding
      < Expires: Mon, 25 Jun 2012 21:31:12 GMT
      < Pragma: no-cache
      < Cache-Control: no-cache, must-revalidate
      <
      <?xml version="1.0" encoding="UTF-8"?>
      * Connection #0 to host iotdk.intel.com left intact
      <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>4C8FCB1DE3D5F22B</RequestId><HostId>di2fGAjw8eoA5Bn/Tu9qjBo68QB32vxg47LNyDNDS4umQlL/ioG+aZZSmXHo7tc3eZny57x/8XY=</HostId></Error>
      

       

      Seems that the official Intel repo S3 bucket permissions may be incorrect, causing the repo to be broken?

        • 1. Re: opkg install mraa, upm fails due to 403 Forbidden for libstdc++6_4.9.1-r0
          PabloM_Intel

          Hi jcuzella,

           

          Thank you for contacting us.

          Taking a look at the error messages you’re getting when trying to download mraa and upm with opkg, I see that you get a prompt saying “Perhaps you need to run opkg update?”, have you tried that already? Also, which image were you using before updating to the latest?

           

          Regards,

          -Pablo

          1 of 1 people found this helpful
          • 2. Re: opkg install mraa, upm fails due to 403 Forbidden for libstdc++6_4.9.1-r0
            jcuzella

            Yes, I did try that last night, along with removing the opkg cache directory and retrying:

             

            # opkg update
            Downloading http://repo.opkg.net/edison/repo/all/Packages.gz.
            Inflating http://repo.opkg.net/edison/repo/all/Packages.gz.
            Updated list of available packages in /var/lib/opkg/alext-all.
            Downloading http://repo.opkg.net/edison/repo/edison/Packages.gz.
            Inflating http://repo.opkg.net/edison/repo/edison/Packages.gz.
            Updated list of available packages in /var/lib/opkg/alext-edison.
            Downloading http://repo.opkg.net/edison/repo/core2-32/Packages.gz.
            Inflating http://repo.opkg.net/edison/repo/core2-32/Packages.gz.
            Updated list of available packages in /var/lib/opkg/alext-core2-32.
            Downloading http://iotdk.intel.com/repos/2.0/iotdk/all/Packages.gz.
            Inflating http://iotdk.intel.com/repos/2.0/iotdk/all/Packages.gz.
            Updated list of available packages in /var/lib/opkg/all.
            Downloading http://iotdk.intel.com/repos/2.0/iotdk/x86/Packages.gz.
            Inflating http://iotdk.intel.com/repos/2.0/iotdk/x86/Packages.gz.
            Updated list of available packages in /var/lib/opkg/x86.
            Downloading http://iotdk.intel.com/repos/2.0/iotdk/i586/Packages.gz.
            Inflating http://iotdk.intel.com/repos/2.0/iotdk/i586/Packages.gz.
            Updated list of available packages in /var/lib/opkg/i586.
            Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/Packages.gz.
            Inflating http://iotdk.intel.com/repos/2.0/iotdk/core2-32/Packages.gz.
            Updated list of available packages in /var/lib/opkg/core2-32.
            Downloading http://iotdk.intel.com/repos/2.0/intelgalactic/Packages.
            Updated list of available packages in /var/lib/opkg/iotkit.
            
            # opkg install mraa
            Installing mraa (1.0.0-r0) on root.
            Downloading http://repo.opkg.net/edison/repo/core2-32/mraa_1.0.0-r0_core2-32.ipk.
            Installing libstdc++6 (4.9.1-r0.0) on root.
            Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libstdc++6_4.9.1-r0.0_core2-32.ipk.
            Collected errors:
             * opkg_download: Failed to download http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libstdc++6_4.9.1-r0.0_core2-32.ipk, wget returned 8.
             * opkg_install_pkg: Failed to download libstdc++6. Perhaps you need to run 'opkg update'?
             * opkg_install_cmd: Cannot install package mraa.
            
            # opkg install upm
            Installing upm (0.7.0-r0) on root.
            Downloading http://repo.opkg.net/edison/repo/core2-32/upm_0.7.0-r0_core2-32.ipk.
            Installing libstdc++6 (4.9.1-r0.0) on root.
            Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libstdc++6_4.9.1-r0.0_core2-32.ipk.
            Collected errors:
             * opkg_download: Failed to download http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libstdc++6_4.9.1-r0.0_core2-32.ipk, wget returned 8.
             * opkg_install_pkg: Failed to download libstdc++6. Perhaps you need to run 'opkg update'?
             * opkg_install_cmd: Cannot install package upm.
            
            # rm -rf /var/lib/opkg
            
            # opkg update
            Downloading http://repo.opkg.net/edison/repo/all/Packages.gz.
            Inflating http://repo.opkg.net/edison/repo/all/Packages.gz.
            Updated list of available packages in /var/lib/opkg/alext-all.
            Downloading http://repo.opkg.net/edison/repo/edison/Packages.gz.
            Inflating http://repo.opkg.net/edison/repo/edison/Packages.gz.
            Updated list of available packages in /var/lib/opkg/alext-edison.
            Downloading http://repo.opkg.net/edison/repo/core2-32/Packages.gz.
            Inflating http://repo.opkg.net/edison/repo/core2-32/Packages.gz.
            Updated list of available packages in /var/lib/opkg/alext-core2-32.
            Downloading http://iotdk.intel.com/repos/2.0/iotdk/all/Packages.gz.
            Inflating http://iotdk.intel.com/repos/2.0/iotdk/all/Packages.gz.
            Updated list of available packages in /var/lib/opkg/all.
            Downloading http://iotdk.intel.com/repos/2.0/iotdk/x86/Packages.gz.
            Inflating http://iotdk.intel.com/repos/2.0/iotdk/x86/Packages.gz.
            Updated list of available packages in /var/lib/opkg/x86.
            Downloading http://iotdk.intel.com/repos/2.0/iotdk/i586/Packages.gz.
            Inflating http://iotdk.intel.com/repos/2.0/iotdk/i586/Packages.gz.
            Updated list of available packages in /var/lib/opkg/i586.
            Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/Packages.gz.
            Inflating http://iotdk.intel.com/repos/2.0/iotdk/core2-32/Packages.gz.
            Updated list of available packages in /var/lib/opkg/core2-32.
            Downloading http://iotdk.intel.com/repos/2.0/intelgalactic/Packages.
            Updated list of available packages in /var/lib/opkg/iotkit.
            
            # opkg install mraa
            Installing mraa (1.0.0-r0) on root.
            Downloading http://repo.opkg.net/edison/repo/core2-32/mraa_1.0.0-r0_core2-32.ipk.
            Installing libstdc++6 (4.9.1-r0.0) on root.
            Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libstdc++6_4.9.1-r0.0_core2-32.ipk.
            Collected errors:
             * opkg_download: Failed to download http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libstdc++6_4.9.1-r0.0_core2-32.ipk, wget returned 8.
             * opkg_install_pkg: Failed to download libstdc++6. Perhaps you need to run 'opkg update'?
             * opkg_install_cmd: Cannot install package mraa.
            
            
            • 3. Re: opkg install mraa, upm fails due to 403 Forbidden for libstdc++6_4.9.1-r0
              jcuzella

              Update:  I was able to retry just now and it appears that the problem must have been fixed!

               

              # opkg update
              Downloading http://repo.opkg.net/edison/repo/all/Packages.gz.
              Inflating http://repo.opkg.net/edison/repo/all/Packages.gz.
              Updated list of available packages in /var/lib/opkg/alext-all.
              Downloading http://repo.opkg.net/edison/repo/edison/Packages.gz.
              Inflating http://repo.opkg.net/edison/repo/edison/Packages.gz.
              Updated list of available packages in /var/lib/opkg/alext-edison.
              Downloading http://repo.opkg.net/edison/repo/core2-32/Packages.gz.
              Inflating http://repo.opkg.net/edison/repo/core2-32/Packages.gz.
              Updated list of available packages in /var/lib/opkg/alext-core2-32.
              Downloading http://iotdk.intel.com/repos/2.0/iotdk/all/Packages.gz.
              Inflating http://iotdk.intel.com/repos/2.0/iotdk/all/Packages.gz.
              Updated list of available packages in /var/lib/opkg/all.
              Downloading http://iotdk.intel.com/repos/2.0/iotdk/x86/Packages.gz.
              Inflating http://iotdk.intel.com/repos/2.0/iotdk/x86/Packages.gz.
              Updated list of available packages in /var/lib/opkg/x86.
              Downloading http://iotdk.intel.com/repos/2.0/iotdk/i586/Packages.gz.
              Inflating http://iotdk.intel.com/repos/2.0/iotdk/i586/Packages.gz.
              Updated list of available packages in /var/lib/opkg/i586.
              Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/Packages.gz.
              Inflating http://iotdk.intel.com/repos/2.0/iotdk/core2-32/Packages.gz.
              Updated list of available packages in /var/lib/opkg/core2-32.
              Downloading http://iotdk.intel.com/repos/2.0/intelgalactic/Packages.
              Updated list of available packages in /var/lib/opkg/iotkit.
              
              # opkg install mraa
              Installing mraa (1.0.0-r0) on root.
              Downloading http://repo.opkg.net/edison/repo/core2-32/mraa_1.0.0-r0_core2-32.ipk.
              Installing libstdc++6 (4.9.1-r0.0) on root.
              Downloading http://iotdk.intel.com/repos/2.0/iotdk/core2-32/libstdc++6_4.9.1-r0.0_core2-32.ipk.
              Configuring libstdc++6.
              Configuring mraa.
              #
              

               

              So it appears that whatever the issue with the S3 bucket was on that libstdc++6 package is now fixed!  Thanks for the responsiveness Intel team!

              • 4. Re: opkg install mraa, upm fails due to 403 Forbidden for libstdc++6_4.9.1-r0
                Intel Corporation
                This message was posted on behalf of Intel Corporation

                Hi jcuzella,

                You’re welcome! Please feel free to open a new ticket whenever you feel necessary, we’ll be happy to help you.

                Regards,
                -Pablo

                1 of 1 people found this helpful