Layerscape Linux Distribution L6.1.36: proxy issue when producing the image

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Layerscape Linux Distribution L6.1.36: proxy issue when producing the image

451 Views
ericdujardin
Contributor I

Hello,

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.

So I followed carefully the guidelines in section 3.1. I am working on Ubuntu 22.04.03 behind a company proxy.

I then apply section 3.5 as follows:

sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1
mkdir bin ; export PATH=$PWD/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ./bin/repo; chmod a+x ./bin/repo

git clone https://github.com/nxp-imx/meta-nxp-desktop.git -b lf-6.1.36-2.1.0-mickledore
repo init -u https://github.com/nxp-qoriq/yocto-sdk -b mickledore -m ls-6.1.36-2.1.0_distro.xml
repo sync
source ./distro-setup-env -m lx2160ardb-rev2
bitbake ls-image-lite


Then I get the following:

NOTE: Executing Tasks
WARNING: ubuntu-main-22.04.2-r0 do_install: Invalid proxy ""
ERROR: ubuntu-main-22.04.2-r0 do_install: /usr/bin/apt-get failed to execute as expected!
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)
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
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'
NOTE: Tasks Summary: Attempted 3655 tasks of which 3610 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/opt/work/reseau/build/LLDR/sources/meta-nxp-desktop/recipes-extended/ubuntu/ubuntu-main_22.04.2.bb:do_install
Summary: There was 1 WARNING message.
Summary: There were 2 ERROR messages, returning a non-zero exit code.


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.

When reading carefully the log file, I notice that it seems to mistake my username with the web proxy.

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:

export http_proxy='http://updater-srv.company.com:3128'

export https_proxy='http://updater-srv.company.com:3128'

And it works in this way. So, the issue is now:

"ubuntu-main_22.04.2.bb:do_install shoud accept proxy definitions with user/password included"


Thanks for your attention.

 

0 Kudos
Reply
1 Reply

391 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to section "3.1.1 How to set HTTP proxy in Ubuntu" in document LLDPUG_RevL6.1.36_2.1.0.pdf.

0 Kudos
Reply