Is there any guide for Yocto for configuring apt package manager in Yocto?

Hello all,
From last few weeks, I’m trying to configure apt package manager, but still I’m unable to configure it perfectly.

I had included apt package manger successfully and able to update repos successfully
after that when trying upgrade I’m getting these errors:

error while loading shared libraries: cannot open shared object file: No such file or directory

Then I can able to solve this by

$find . -name ""**
$export LD_LIBRARY_PATH=/lib/arm-linux-gnueabihf:$LD_LIBRARY_PATH

Then I’m able to move the tasks further, but again I will get some errors , one of them is

error while loading shared libraries: cannot open shared object file: No such file or directory

again I need to solve this by following above solution.

I need to do this every time.

I can’t ask others to use Image like this, I’m expecting my yocto Image should be as smooth as in how apt package mangers are working in officially released Images.

So any guide on configuring apt package manager in IMX6DL, is helpful.
and I’m using
Toradex Colibri Evaluation Board Rev 3.2

Warm Regards,

Hi @Nolan_Maverick,

Thanks for reaching out!

Here you can find an article on how to add apt package manager to a Yocto Project Image: How to install apt-get to the Yocto Project image - i.MXDev Blog

On a side note, may I ask whether you have considered using our TorizonCore images instead of a custom-built yocto image? TorizonCore comes with docker already configured and this allows you to build your applications containerized - which means you can use a package manager tool in your container depending on what base image you use.

Hi @rudhi.tx
thanks for your response, I gone through the link, they suggested that it is not recommended for production, one reason they mentioned there was “package dependency chain”, so I think I’m also having same problem?
So what do you say, my question is,
1. Are yocto images, need to recompile every time for better installation of packages?
2. are there any prebuilt images of yocto, which contains package manager, so that I can test it once?

Hi @Nolan_Maverick ,

May I ask why you would like to use a package manager on an embedded platform in the first place?

The most common way is that you build your packages into the Yocto image at the beginning and not add additional packages afterwards.

I would like to better understand your full use-case, if you’re willing to share.

Best Regards

Hi @kevin.tx
Thanks for your response, I came to know that easier way to install package, is to install in compilation, I thought it will be much easier for me to use apt package manager in yocto Image, but I think I was wrong about it, so now I’m installing packages in compilation itself

Hey @Nolan_Maverick,

Have you solved this issue by installing the required packages in the compilation? In that case, could you please mark the right answer as a solution? :slight_smile:

@rudhi.tx for I’m not preferring to use apt package manager, whatever I planned to install packages through apt package manager, I’m installing them in yocto compilation itself by modifying loacl.conf file.


Hi @Nolan_Maverick,

Thanks for the reply. Actually, that’s exactly what I meant by “installing the required packages in the compilation”. I hope you have solved the issue by now.

1 Like