<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: &amp;quot;Opkg update&amp;quot; fails in LXC container in Edge Computing Infrastructure</title>
    <link>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451343#M321</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it works for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jul 2018 15:20:24 GMT</pubDate>
    <dc:creator>yawming</dc:creator>
    <dc:date>2018-07-12T15:20:24Z</dc:date>
    <item>
      <title>"Opkg update" fails in LXC container</title>
      <link>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451337#M315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Community, &lt;/P&gt;&lt;P&gt;I'm investigating the creation of LXC type containers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I operated according to "Docker Images and Packages Repository".&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/docs/iox/#!docker-images-and-packages-repository"&gt;https://developer.cisco.com/docs/iox/#!docker-images-and-packages-repository&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Accessing the repository using docker daemon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN style="font-size: 18pt;"&gt;[Step.1:Login to the Cisco devhub using generic user credentials.]&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;CODE SNIPPET&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$ docker login -u iox_docker.gen -p AKCp2WX2yZXhwiQXG2xZjHvnrov8HA2HkXZyH3Z46ErGNMDz1fHQKAMRCBbEvseLowd7BQ8S1 devhub-docker.cisco.com&lt;/P&gt;&lt;P&gt;WARNING: login credentials saved in /home/user/.dockercfg.&lt;/P&gt;&lt;P&gt;Login Succeeded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;Execution result&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$ docker login -u iox_docker.gen -p AKCp2WX2yZXhwiQXG2xZjHvnrov8HA2HkXZyH3Z46ErGNMDz1fHQKAMRCBbEvseLowd7BQ8S1 devhub-docker.cisco.com&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error response from daemon: Get &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub-docker.cisco.com/v2/:" rel="nofollow" target="_blank"&gt;https://devhub-docker.cisco.com/v2/:&lt;/A&gt;&lt;SPAN&gt; unauthorized: BAD_CREDENTIAL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;QUESTION&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Is the password changed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please tell me the correct password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN style="font-size: 18pt;"&gt;[Step.2:Pull the docker image based on the target architecture using 'docker pull' command.]&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;CODE SNIPPET&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$ docker pull devhub-docker.cisco.com/iox-docker/ir800/base-rootfs&lt;/P&gt;&lt;P&gt;&amp;lt;omitted below&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;Execution result&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$ docker pull devhub-docker.cisco.com/iox-docker/ir800/base-rootfs&lt;/P&gt;&lt;P&gt;Using default tag: latest&lt;/P&gt;&lt;P&gt;latest: Pulling from iox-docker/ir800/base-rootfs&lt;/P&gt;&lt;P&gt;c8e49009c524: Pull complete&lt;/P&gt;&lt;P&gt;Digest: sha256:f14bed751e384496ca40645c8221990bc1ab8fec6cae53b452ae09e2e91db0d4&lt;/P&gt;&lt;P&gt;Status: Downloaded newer image for devhub-docker.cisco.com/iox-docker/ir800/base-rootfs:latest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;QUESTION&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Login to devhub failed but 'docker pull' worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Are there any problems with this procedure?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN style="font-size: 18pt;"&gt;[Step.3:Running the image]&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;CODE SNIPPET&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$ docker run -it devhub-docker.cisco.com/iox-docker/ir800/base-rootfs /bin/sh&lt;/P&gt;&lt;P&gt;Unable to find image 'devhub-docker.cisco.com/iox-docker/ir800/base-rootfs:latest' locally&lt;/P&gt;&lt;P&gt;latest: Pulling from iox-docker/ir800/base-rootfs&lt;/P&gt;&lt;P&gt;&amp;lt;omitted below&amp;gt;&lt;/P&gt;&lt;P&gt;/ #&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;Execution result&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$ docker run -it devhub-docker.cisco.com/iox-docker/ir800/base-rootfs /bin/sh&lt;/P&gt;&lt;P&gt;/ #&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;QUESTION&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;no problem.&lt;/P&gt;&lt;P&gt;Because I pull the image in Step 2,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN style="font-size: 18pt;"&gt;[Step.4:Update opkg package repository]&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;CODE SNIPPET&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/ # opkg update&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Updated source 'packages'.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Updated source 'ir800_lxc'.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/../all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/../all/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Updated source 'all'.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-1.7.2/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-1.7.2/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Updated source 'packages_delta'.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-1.7.2/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-1.7.2/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Updated source 'ir800_lxc_delta'.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-1.7.2/ir800/../all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-1.7.2/ir800/../all/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Updated source 'all_delta'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;Execution result&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/ # opkg update&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/all/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/all/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Collected errors:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/all/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/all/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;QUESTION&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Have I affected by failing login to devhub at Step.1?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;It seems that the password used in Step 1 differs from the password described in "opkg.conf" of the pull image,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;but can it be different?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;[[Setting up opkg.conf]]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/ # cat /etc/opkg/opkg.conf&lt;/P&gt;&lt;P&gt;# Must have one or more source entries of the form:&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp; src &amp;lt;src-name&amp;gt; &amp;lt;source-url&amp;gt;&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;# and one or more destination entries of the form:&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp; dest &amp;lt;dest-name&amp;gt; &amp;lt;target-path&amp;gt;&lt;/P&gt;&lt;P&gt;#&lt;/P&gt;&lt;P&gt;# where &amp;lt;src-name&amp;gt; and &amp;lt;dest-names&amp;gt; are identifiers that&lt;/P&gt;&lt;P&gt;# should match [a-zA-Z0-9._-]+, &amp;lt;source-url&amp;gt; should be a&lt;/P&gt;&lt;P&gt;# URL that points to a directory containing a Familiar&lt;/P&gt;&lt;P&gt;# Packages file, and &amp;lt;target-path&amp;gt; should be a directory&lt;/P&gt;&lt;P&gt;# that exists on the target system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Proxy Support&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#option http_proxy &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://proxy.tld:3128" rel="nofollow" target="_blank"&gt;http://proxy.tld:3128&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#option ftp_proxy &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://proxy.tld:3128" rel="nofollow" target="_blank"&gt;http://proxy.tld:3128&lt;/A&gt;&lt;/P&gt;&lt;P&gt;#option proxy_username &amp;lt;username&amp;gt;&lt;/P&gt;&lt;P&gt;#option proxy_password &amp;lt;password&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Enable GPGME signature&lt;/P&gt;&lt;P&gt;# option check_signature 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;option http_auth iox_docker.gen:AKCp5bAif2Tzg1MtWAJbLoTXweosuqqSgSEyKApikowUq5sycevTsK7LcQ7EKLbzQFuyc9WCk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Offline mode (for use in constructing flash images offline)&lt;/P&gt;&lt;P&gt;#option offline_root target&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#src/gz base &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://downloads.openwrt.org/snapshots/trunk/x86/64/packages/base/" rel="nofollow" target="_blank"&gt;http://downloads.openwrt.org/snapshots/trunk/x86/64/packages/base/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#src/gz packages &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://downloads.openwrt.org/snapshots/trunk/x86/64/packages/packages/" rel="nofollow" target="_blank"&gt;http://downloads.openwrt.org/snapshots/trunk/x86/64/packages/packages/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;src/gz packages &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/core2-64" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/core2-64&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;src/gz ir800_lxc &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/ir800_lxc" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/ir800_lxc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;src/gz all &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/all" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/all&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;src/gz packages_alpha &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/core2-64" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/core2-64&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;src/gz ir800_lxc_alpha &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/ir800_lxc" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/ir800_lxc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;src/gz all_alpha &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/all" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/all&lt;/A&gt;&lt;/P&gt;&lt;P&gt;dest root /&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;&lt;SPAN style="font-size: 18pt;"&gt;[STEP.5:The docker base image to create a custom image.]&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;CODE SNIPPET&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$ ls&lt;/P&gt;&lt;P&gt;cpp_app&amp;nbsp; Dockerfile&lt;/P&gt;&lt;P&gt;$ cat Dockerfile&lt;/P&gt;&lt;P&gt;FROM devhub-docker.cisco.com/iox-docker/ir800/base-rootfs&lt;/P&gt;&lt;P&gt;COPY cpp_app /opt/apps/&lt;/P&gt;&lt;P&gt;RUN opkg update&lt;/P&gt;&lt;P&gt;RUN opkg install libstdc++&lt;/P&gt;&lt;P&gt;$ docker build -t cpp-app .&lt;/P&gt;&lt;P&gt;Sending build context to Docker daemon&amp;nbsp; 2.56 kB&lt;/P&gt;&lt;P&gt;Step 1/4 : FROM devhub-docker.cisco.com/iox-docker/ir800/base-rootfs&lt;/P&gt;&lt;P&gt;---&amp;gt; 4d39f5d04ab4&lt;/P&gt;&lt;P&gt;Step 2/4 : COPY cpp_app /opt/apps/&lt;/P&gt;&lt;P&gt;---&amp;gt; 38d9fa9c6adb&lt;/P&gt;&lt;P&gt;Removing intermediate container 746e8301fa7a&lt;/P&gt;&lt;P&gt;Step 3/4 : RUN opkg update&lt;/P&gt;&lt;P&gt;---&amp;gt; Running in 9003634832a3&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Updated source 'packages'.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Updated source 'ir800_lxc'.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/../all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/../all/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Updated source 'all'.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-1.7.2/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-1.7.2/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Updated source 'packages_delta'.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-1.7.2/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-1.7.2/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Updated source 'ir800_lxc_delta'.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-1.7.2/ir800/../all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-1.7.2/ir800/../all/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Updated source 'all_delta'.&lt;/P&gt;&lt;P&gt;---&amp;gt; 5bf91eac8d96&lt;/P&gt;&lt;P&gt;Removing intermediate container 9003634832a3&lt;/P&gt;&lt;P&gt;Step 4/4 : RUN opkg install libstdc++&lt;/P&gt;&lt;P&gt;---&amp;gt; Running in d5dfc986ae0f&lt;/P&gt;&lt;P&gt;Installing libstdc++6 (4.9.1-r0) on root.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/core2-64/libstdc++6_4.9.1-r0_core2-64.ipk" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/core2-64/libstdc++6_4.9.1-r0_core2-64.ipk&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Installing libgcc1 (4.9.1-r0) on root.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/core2-64/libgcc1_4.9.1-r0_core2-64.ipk" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-1.7.2/ir800/core2-64/libgcc1_4.9.1-r0_core2-64.ipk&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Configuring libgcc1.&lt;/P&gt;&lt;P&gt;Configuring libstdc++6.&lt;/P&gt;&lt;P&gt;---&amp;gt; a70aaa99e63d&lt;/P&gt;&lt;P&gt;Removing intermediate container d5dfc986ae0f&lt;/P&gt;&lt;P&gt;Successfully built a70aaa99e63d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;Execution result&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$ ls&lt;/P&gt;&lt;P&gt;cpp_app&amp;nbsp; docker-test&lt;/P&gt;&lt;P&gt;$ cat docker-test&lt;/P&gt;&lt;P&gt;FROM devhub-docker.cisco.com/iox-docker/ir800/base-rootfs&lt;/P&gt;&lt;P&gt;COPY cpp_app /opt/apps/&lt;/P&gt;&lt;P&gt;RUN opkg update&lt;/P&gt;&lt;P&gt;RUN opkg install libstdc++&lt;/P&gt;&lt;P&gt;$ docker build -t cpp-app .&lt;/P&gt;&lt;P&gt;Sending build context to Docker daemon&amp;nbsp;&amp;nbsp; 2.56kB&lt;/P&gt;&lt;P&gt;Step 1/4 : FROM devhub-docker.cisco.com/iox-docker/ir800/base-rootfs&lt;/P&gt;&lt;P&gt;---&amp;gt; 5dc0d1ddffa1&lt;/P&gt;&lt;P&gt;Step 2/4 : COPY cpp_app /opt/apps/&lt;/P&gt;&lt;P&gt;---&amp;gt; 1cdf921f7a49&lt;/P&gt;&lt;P&gt;Removing intermediate container 186cafc268e3&lt;/P&gt;&lt;P&gt;Step 3/4 : RUN opkg update&lt;/P&gt;&lt;P&gt;---&amp;gt; Running in c726ef92d9fd&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/all/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/all/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Collected errors:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/all/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/all/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The command '/bin/sh -c opkg update' returned a non-zero code: 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;QUESTION&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Have I affected by failing login to devhub at Step.1?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 14pt;"&gt;==== Supplement ====&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since "apt-get update" succeeds in the execution environment, I think that there is no problem with the network.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ sudo apt-get update&lt;/P&gt;&lt;P&gt;[sudo] password for yamanaka:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Get:1 &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://security.ubuntu.com/ubuntu" rel="nofollow" target="_blank"&gt;http://security.ubuntu.com/ubuntu&lt;/A&gt;&lt;SPAN&gt; xenial-security InRelease [107 kB]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hit:2 &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://apt.dockerproject.org/repo" rel="nofollow" target="_blank"&gt;https://apt.dockerproject.org/repo&lt;/A&gt;&lt;SPAN&gt; ubuntu-xenial InRelease&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hit:3 &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://us.archive.ubuntu.com/ubuntu" rel="nofollow" target="_blank"&gt;http://us.archive.ubuntu.com/ubuntu&lt;/A&gt;&lt;SPAN&gt; xenial InRelease&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Get:4 &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://us.archive.ubuntu.com/ubuntu" rel="nofollow" target="_blank"&gt;http://us.archive.ubuntu.com/ubuntu&lt;/A&gt;&lt;SPAN&gt; xenial-updates InRelease [109 kB]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Get:5 &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://us.archive.ubuntu.com/ubuntu" rel="nofollow" target="_blank"&gt;http://us.archive.ubuntu.com/ubuntu&lt;/A&gt;&lt;SPAN&gt; xenial-backports InRelease [107 kB]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Fetched 323 kB in 1s (177 kB/s)&lt;/P&gt;&lt;P&gt;Reading package lists... Done&lt;/P&gt;&lt;P&gt;$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Kouji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 02:27:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451337#M315</guid>
      <dc:creator>Kouji Yamanaka</dc:creator>
      <dc:date>2018-07-10T02:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: "Opkg update" fails in LXC container</title>
      <link>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451338#M316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I happen to see someone asked similar question and the solution :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can address your issue too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;`````````````&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;We have already identified this issue where anyone logged-in with the generic credential could change the API key and it will break the access to the devhub. Currently we are working on it and testing the open access to devhub repo where we could avoid this issue. Meanwhile as workaround can you add this line in the dockerfile before using opkg instructions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;RUN sed -i 's/\(option http_auth iox_docker.gen:\).*/\1AKCp5bAif2Tzg1MtWAJbLoTXweosuqqSgSEyKApikowUq5sycevTsK7LcQ7EKLbzQFuyc9WCk/' /etc/opkg/opkg.conf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: medium; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;----------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: medium; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2018 16:31:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451338#M316</guid>
      <dc:creator>yawming</dc:creator>
      <dc:date>2018-07-10T16:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: "Opkg update" fails in LXC container</title>
      <link>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451339#M317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,yawchen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your cooperation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the workaround I got taught, but I got an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;&amp;lt;&amp;lt;Execution result&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$ docker build -t cpp-app .&lt;/P&gt;&lt;P&gt;Sending build context to Docker daemon&amp;nbsp;&amp;nbsp; 2.56kB&lt;/P&gt;&lt;P&gt;Step 1/5 : FROM devhub-docker.cisco.com/iox-docker/ir800/base-rootfs&lt;/P&gt;&lt;P&gt;---&amp;gt; 5dc0d1ddffa1&lt;/P&gt;&lt;P&gt;Step 2/5 : COPY cpp_app /opt/apps/&lt;/P&gt;&lt;P&gt;---&amp;gt; 167cece90e7d&lt;/P&gt;&lt;P&gt;Removing intermediate container e4b395965182&lt;/P&gt;&lt;P&gt;Step 3/5 : RUN sed -i 's/\(option http_auth iox_docker.gen:\).*/\1AKCp5bAif2Tzg1MtWAJbLoTXweosuqqSgSEyKApikowUq5sycevTsK7LcQ7EKLbzQFuyc9WCk/' /etc/opkg/opkg.conf&lt;/P&gt;&lt;P&gt;---&amp;gt; Running in 254ff1e20651&lt;/P&gt;&lt;P&gt;---&amp;gt; c7f1a5190e68&lt;/P&gt;&lt;P&gt;Removing intermediate container 254ff1e20651&lt;/P&gt;&lt;P&gt;Step 4/5 : RUN opkg update&lt;/P&gt;&lt;P&gt;---&amp;gt; Running in b86044767315&lt;/P&gt;&lt;P&gt;Collected errors:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; * opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; * opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; * opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/all/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; * opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; * opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; * opkg_validate_cached_file: Failed to download &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/all/Packages.gz&lt;/A&gt;&lt;SPAN&gt; headers: HTTP response code said error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg/yocto-2.1.1/all/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/core2-64/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/core2-64/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/ir800_lxc/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/ir800/ir800_lxc/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Downloading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/all/Packages.gz" rel="nofollow" target="_blank"&gt;https://devhub.cisco.com/artifactory/IOx-Opkg-alpha/yocto-2.1.1/all/Packages.gz&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The command '/bin/sh -c opkg update' returned a non-zero code: 6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 08:25:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451339#M317</guid>
      <dc:creator>Kouji Yamanaka</dc:creator>
      <dc:date>2018-07-11T08:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: "Opkg update" fails in LXC container</title>
      <link>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451340#M318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To be honest, I don't know which key to use can you please try the following if not working then I will ask subject matter expert for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RUN sed -i 's/\(option http_auth iox_docker.gen:\).*/\1AKCp5bAt1aQQR9L3dk4FP6QLDjd9XYhZLuhCLaHuwYnoGmDPLc584stTT6cWSeNdYavPR3wAV/' /etc/opkg/opkg.conf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 15:11:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451340#M318</guid>
      <dc:creator>yawming</dc:creator>
      <dc:date>2018-07-11T15:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: "Opkg update" fails in LXC container</title>
      <link>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451341#M319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please use the latest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 14.6667px;"&gt;The API key was updated after that and currently active key is&amp;nbsp; “AKCp5bAt5nK9nJBeq1nFe3Ywntfokny8f1oHeTYpLrGCYG9iv9P3gkX9KFj6wzHcQoLkwP5Pa”&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 17:43:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451341#M319</guid>
      <dc:creator>yawming</dc:creator>
      <dc:date>2018-07-11T17:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: "Opkg update" fails in LXC container</title>
      <link>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451342#M320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;Hi,yawchen&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you for your cooperation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I was able to build successfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I also found a way to check the current API - Key in the devhub web UI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;It is frightening for anyone to regenerate API-Key.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P style="font-size: 12px; font-family: arial; color: #3d3d3d;"&gt;Kouji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 04:53:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451342#M320</guid>
      <dc:creator>Kouji Yamanaka</dc:creator>
      <dc:date>2018-07-12T04:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: "Opkg update" fails in LXC container</title>
      <link>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451343#M321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it works for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:20:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451343#M321</guid>
      <dc:creator>yawming</dc:creator>
      <dc:date>2018-07-12T15:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: "Opkg update" fails in LXC container</title>
      <link>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451344#M322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just want to point out that the correct line in th Dockerfile has to be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RUN sed -i 's/\(option http_auth iox_docker.gen:\).*/\option http_auth iox_docker.gen:AKCp5bAt5nK9nJBeq1nFe3Ywntfokny8f1oHeTYpLrGCYG9iv9P3gkX9KFj6wzHcQoLkwP5Pa/' /etc/opkg/opkg.conf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: If the API Key changes the above line has to be adjusted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2018 12:10:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3451344#M322</guid>
      <dc:creator>mo7</dc:creator>
      <dc:date>2018-07-14T12:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: "Opkg update" fails in LXC container</title>
      <link>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3847800#M323</link>
      <description>Face the same issue,how can I find the right API-key ? which relevant steps in &lt;A href="https://developer.cisco.com/docs/iox/#!docker-images-and-packages-repository/overview" target="_blank"&gt;https://developer.cisco.com/docs/iox/#!docker-images-and-packages-repository/overview&lt;/A&gt; should I follow.Thanks a lot</description>
      <pubDate>Tue, 30 Apr 2019 08:58:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/edge-computing-infrastructure/quot-opkg-update-quot-fails-in-lxc-container/m-p/3847800#M323</guid>
      <dc:creator>tianyizh</dc:creator>
      <dc:date>2019-04-30T08:58:42Z</dc:date>
    </item>
  </channel>
</rss>

