Hi,
This is getting a little out of the forum's point and more Ubuntu packaging issues; are you on a native machine or VM? Only thing I can suggest is you look at each error as an individual task and solve each one separately. It can take quite a while and lots of googling to crack such issues. If you're new to the Linux environment it can be quite challenging but we've all been there!
Here's a couple of links for the lz4c
https://installati.one/ubuntu/20.04/lz4/
Locate package issues
https://askubuntu.com/questions/378558/unable-to-locate-package-while-trying-to-install-packages-wit...
Also, you need to use/fix python3 packages where required.
Edit: The 31 March 2022 imx8 Yocto project user guides suggests 20.04 or later; I've been using Yocto for around 8 years for work on a number of devices and have found the later versions of Ubuntu (post document date) can give build headaches. A few times I've had to roll back my build machine version (imx7sabresd for example) to the one stated in the doc.
Hope this helps..