<?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 Layerscape Linux Distribution L6.1.36: proxy issue when producing the image in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Layerscape-Linux-Distribution-L6-1-36-proxy-issue-when-producing/m-p/1769201#M13727</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am following the "Layerscape Linux Distribution POC User Guide" rev L6.1.36_2.1.0 — 9 November 2023, to build an image from source for LX2160ARDB-rev2.&lt;/P&gt;&lt;P&gt;So I followed carefully the guidelines in section 3.1. I am working on Ubuntu 22.04.03 behind a company proxy.&lt;/P&gt;&lt;P&gt;I then apply section 3.5 as follows:&lt;/P&gt;&lt;P&gt;sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1&lt;BR /&gt;mkdir bin ; export PATH=$PWD/bin:$PATH&lt;BR /&gt;curl &lt;A href="https://storage.googleapis.com/git-repo-downloads/repo" target="_blank"&gt;https://storage.googleapis.com/git-repo-downloads/repo&lt;/A&gt; &amp;gt; ./bin/repo; chmod a+x ./bin/repo&lt;/P&gt;&lt;P&gt;git clone &lt;A href="https://github.com/nxp-imx/meta-nxp-desktop.git" target="_blank"&gt;https://github.com/nxp-imx/meta-nxp-desktop.git&lt;/A&gt; -b lf-6.1.36-2.1.0-mickledore&lt;BR /&gt;repo init -u &lt;A href="https://github.com/nxp-qoriq/yocto-sdk" target="_blank"&gt;https://github.com/nxp-qoriq/yocto-sdk&lt;/A&gt; -b mickledore -m ls-6.1.36-2.1.0_distro.xml&lt;BR /&gt;repo sync&lt;BR /&gt;source ./distro-setup-env -m lx2160ardb-rev2&lt;BR /&gt;bitbake ls-image-lite&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then I get the following:&lt;/P&gt;&lt;P&gt;NOTE: Executing Tasks&lt;BR /&gt;WARNING: ubuntu-main-22.04.2-r0 do_install: Invalid proxy ""&lt;BR /&gt;ERROR: ubuntu-main-22.04.2-r0 do_install: /usr/bin/apt-get failed to execute as expected!&lt;BR /&gt;ERROR: ubuntu-main-22.04.2-r0 do_install: ExecutionError('/opt/work/reseau/build/LLDR/build_lx2160ardb-rev2/tmp/work/aarch64-fsl-linux/ubuntu-main/22.04.2-r0/temp/run.aptget_update_begin.711163', 1, None, None)&lt;BR /&gt;ERROR: Logfile of failure stored in: /opt/work/reseau/build/LLDR/build_lx2160ardb-rev2/tmp/work/aarch64-fsl-linux/ubuntu-main/22.04.2-r0/temp/log.do_install.711163&lt;BR /&gt;ERROR: Task (/opt/work/reseau/build/LLDR/sources/meta-nxp-desktop/recipes-extended/ubuntu/ubuntu-main_22.04.2.bb:do_install) failed with exit code '1'&lt;BR /&gt;NOTE: Tasks Summary: Attempted 3655 tasks of which 3610 didn't need to be rerun and 1 failed.&lt;/P&gt;&lt;P&gt;Summary: 1 task failed:&lt;BR /&gt;/opt/work/reseau/build/LLDR/sources/meta-nxp-desktop/recipes-extended/ubuntu/ubuntu-main_22.04.2.bb:do_install&lt;BR /&gt;Summary: There was 1 WARNING message.&lt;BR /&gt;Summary: There were 2 ERROR messages, returning a non-zero exit code.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I didn't understand because the proxy is set in env variables, in .wgetrc, in .gitconfig, in /etc/apt/apt.conf.d/90curtin-aptproxy and /etc/apt/apt.conf.&lt;/P&gt;&lt;P&gt;When reading carefully the log file, I notice that it seems to mistake my username with the web proxy.&lt;/P&gt;&lt;P&gt;So I try to replace the proxy in http(s)_proxy, which is the web proxy address including my username/proxy password, with the specific apt proxy which only opens doors to update proxies but does not include a username:&lt;/P&gt;&lt;P&gt;export http_proxy='&lt;A href="http://updater-srv.company.com:3128" target="_blank"&gt;http://updater-srv.company.com:3128&lt;/A&gt;'&lt;/P&gt;&lt;P&gt;export https_proxy='&lt;A href="http://updater-srv.company.com:3128" target="_blank"&gt;http://updater-srv.company.com:3128&lt;/A&gt;'&lt;/P&gt;&lt;P&gt;And it works in this way. So, the issue is now:&lt;/P&gt;&lt;P&gt;"ubuntu-main_22.04.2.bb:do_install shoud accept proxy definitions with user/password included"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your attention.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 17:38:52 GMT</pubDate>
    <dc:creator>ericdujardin</dc:creator>
    <dc:date>2023-12-05T17:38:52Z</dc:date>
    <item>
      <title>Layerscape Linux Distribution L6.1.36: proxy issue when producing the image</title>
      <link>https://community.nxp.com/t5/Layerscape/Layerscape-Linux-Distribution-L6-1-36-proxy-issue-when-producing/m-p/1769201#M13727</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am following the "Layerscape Linux Distribution POC User Guide" rev L6.1.36_2.1.0 — 9 November 2023, to build an image from source for LX2160ARDB-rev2.&lt;/P&gt;&lt;P&gt;So I followed carefully the guidelines in section 3.1. I am working on Ubuntu 22.04.03 behind a company proxy.&lt;/P&gt;&lt;P&gt;I then apply section 3.5 as follows:&lt;/P&gt;&lt;P&gt;sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1&lt;BR /&gt;mkdir bin ; export PATH=$PWD/bin:$PATH&lt;BR /&gt;curl &lt;A href="https://storage.googleapis.com/git-repo-downloads/repo" target="_blank"&gt;https://storage.googleapis.com/git-repo-downloads/repo&lt;/A&gt; &amp;gt; ./bin/repo; chmod a+x ./bin/repo&lt;/P&gt;&lt;P&gt;git clone &lt;A href="https://github.com/nxp-imx/meta-nxp-desktop.git" target="_blank"&gt;https://github.com/nxp-imx/meta-nxp-desktop.git&lt;/A&gt; -b lf-6.1.36-2.1.0-mickledore&lt;BR /&gt;repo init -u &lt;A href="https://github.com/nxp-qoriq/yocto-sdk" target="_blank"&gt;https://github.com/nxp-qoriq/yocto-sdk&lt;/A&gt; -b mickledore -m ls-6.1.36-2.1.0_distro.xml&lt;BR /&gt;repo sync&lt;BR /&gt;source ./distro-setup-env -m lx2160ardb-rev2&lt;BR /&gt;bitbake ls-image-lite&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then I get the following:&lt;/P&gt;&lt;P&gt;NOTE: Executing Tasks&lt;BR /&gt;WARNING: ubuntu-main-22.04.2-r0 do_install: Invalid proxy ""&lt;BR /&gt;ERROR: ubuntu-main-22.04.2-r0 do_install: /usr/bin/apt-get failed to execute as expected!&lt;BR /&gt;ERROR: ubuntu-main-22.04.2-r0 do_install: ExecutionError('/opt/work/reseau/build/LLDR/build_lx2160ardb-rev2/tmp/work/aarch64-fsl-linux/ubuntu-main/22.04.2-r0/temp/run.aptget_update_begin.711163', 1, None, None)&lt;BR /&gt;ERROR: Logfile of failure stored in: /opt/work/reseau/build/LLDR/build_lx2160ardb-rev2/tmp/work/aarch64-fsl-linux/ubuntu-main/22.04.2-r0/temp/log.do_install.711163&lt;BR /&gt;ERROR: Task (/opt/work/reseau/build/LLDR/sources/meta-nxp-desktop/recipes-extended/ubuntu/ubuntu-main_22.04.2.bb:do_install) failed with exit code '1'&lt;BR /&gt;NOTE: Tasks Summary: Attempted 3655 tasks of which 3610 didn't need to be rerun and 1 failed.&lt;/P&gt;&lt;P&gt;Summary: 1 task failed:&lt;BR /&gt;/opt/work/reseau/build/LLDR/sources/meta-nxp-desktop/recipes-extended/ubuntu/ubuntu-main_22.04.2.bb:do_install&lt;BR /&gt;Summary: There was 1 WARNING message.&lt;BR /&gt;Summary: There were 2 ERROR messages, returning a non-zero exit code.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I didn't understand because the proxy is set in env variables, in .wgetrc, in .gitconfig, in /etc/apt/apt.conf.d/90curtin-aptproxy and /etc/apt/apt.conf.&lt;/P&gt;&lt;P&gt;When reading carefully the log file, I notice that it seems to mistake my username with the web proxy.&lt;/P&gt;&lt;P&gt;So I try to replace the proxy in http(s)_proxy, which is the web proxy address including my username/proxy password, with the specific apt proxy which only opens doors to update proxies but does not include a username:&lt;/P&gt;&lt;P&gt;export http_proxy='&lt;A href="http://updater-srv.company.com:3128" target="_blank"&gt;http://updater-srv.company.com:3128&lt;/A&gt;'&lt;/P&gt;&lt;P&gt;export https_proxy='&lt;A href="http://updater-srv.company.com:3128" target="_blank"&gt;http://updater-srv.company.com:3128&lt;/A&gt;'&lt;/P&gt;&lt;P&gt;And it works in this way. So, the issue is now:&lt;/P&gt;&lt;P&gt;"ubuntu-main_22.04.2.bb:do_install shoud accept proxy definitions with user/password included"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your attention.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 17:38:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Layerscape-Linux-Distribution-L6-1-36-proxy-issue-when-producing/m-p/1769201#M13727</guid>
      <dc:creator>ericdujardin</dc:creator>
      <dc:date>2023-12-05T17:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Layerscape Linux Distribution L6.1.36: proxy issue when producing the image</title>
      <link>https://community.nxp.com/t5/Layerscape/Layerscape-Linux-Distribution-L6-1-36-proxy-issue-when-producing/m-p/1771893#M13735</link>
      <description>&lt;P&gt;Please refer to section "3.1.1 How to set HTTP proxy in Ubuntu" in document&amp;nbsp;LLDPUG_RevL6.1.36_2.1.0.pdf.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2023 02:29:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Layerscape-Linux-Distribution-L6-1-36-proxy-issue-when-producing/m-p/1771893#M13735</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2023-12-11T02:29:20Z</dc:date>
    </item>
  </channel>
</rss>

