ganesh333
Posts: 3
Joined: Fri Dec 16, 2022 6:14 am

apt-get in yocto throwing liblzma5 error while upgrading and it is not solving

Thu Feb 09, 2023 7:49 am

I have added apt-get package to my yocto compiled raspberry pi 4 image . which cloned from dunfell branch.

While i am updating the pi with apt-get it shows gpg error and then i run upgrade then it was showing this error.

" apt-get error while loading shared libraries liblzma.so.5 : cannot open shared object file : no such file or directory "

Now i am repeatedly getting same error while trying any command in my pi terminal with apt-get.

This is the error i am facingThis is the error i am facing look image
https://community.nxp.com/t5/i-MX-Proce ... -id/201303



Please help with the problem

Thanks

User avatar
rpdom
Posts: 21544
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: apt-get in yocto throwing liblzma5 error while upgrading and it is not solving

Thu Feb 09, 2023 8:14 am

The message seems obvious.

It is telling you that apt-get needs to use the LZMA function library, but it can't find it.

You need to install the liblzma package for your system. As apt isn't working you may need to build from source or manually install the file the hard way.

I have no experience with Yocto, so can't help any more than that.
Unreadable squiggle

trejan
Posts: 5529
Joined: Tue Jul 02, 2019 2:28 pm

Re: apt-get in yocto throwing liblzma5 error while upgrading and it is not solving

Thu Feb 09, 2023 11:44 am

Why did you post this on the NXP i.MX processor forum? Raspberry Pi has nothing to do with them.

ganesh333
Posts: 3
Joined: Fri Dec 16, 2022 6:14 am

Re: apt-get in yocto throwing liblzma5 error while upgrading and it is not solving

Sat Feb 11, 2023 1:59 pm

help me how to compile it from souce while bitbake image with added liblzma

Return to “Other”