Customize Rootfs dependency error

Downloaded ubuntu-base-18.04-base-arm64.tar, & extract it to rootfs direcotry in Linux_for_tegra.

The script “” report dependency error when dpkg installing files.

Want to create a rootfs contains only necessary files, How should I do?

Thanks for your help!

What was the specific error? In earlier releases this was just a tarball unpacking files, whereas in the newer releases this uses the “dpkg” tool and packages inside of a QEMU emulation. If a package-based file is already installed, then you can’t install it again. If there is some dependency issue of some other kind, then this can be debugged.

Assuming the Ubuntu base you are unpacking is the one intended to use with that driver package release (the tools and directory content of “Linux_for_Tegra/” is from the “driver package”), then there should not be any direct dependency errors (more often there is a QEMU setup error). Details on the error would be useful.

Below is the script output:

felix@felix-VirtualBox:~/Linux_for_Tegra$ sudo ./
[sudo] password for felix:
Using rootfs directory of: /home/felix/Linux_for_Tegra/rootfs
Root file system directory is /home/felix/Linux_for_Tegra/rootfs
Copying public debian packages to rootfs
Start L4T BSP package installation
QEMU binary is not available, looking for QEMU from host system
Found /usr/bin/qemu-aarch64-static
Installing QEMU binary in rootfs
~/Linux_for_Tegra/rootfs ~/Linux_for_Tegra
Installing BSP Debian packages in /home/felix/Linux_for_Tegra/rootfs
(Reading database … 4070 files and directories currently installed.)
Preparing to unpack …/nvidia-l4t-core_32.4.2-20200408182156_arm64.deb …
Pre-installing… skip compatibility checking.
Unpacking nvidia-l4t-core (32.4.2-20200408182156) over (32.4.2-20200408182156) …
dpkg: dependency problems prevent configuration of nvidia-l4t-core:
nvidia-l4t-core depends on libegl1; however:
Package libegl1 is not installed.
nvidia-l4t-core depends on libexpat1; however:
Package libexpat1 is not installed.

dpkg: error processing package nvidia-l4t-core (–install):
dependency problems - leaving unconfigured
Errors were encountered while processing:

Thank you!

Basically you will need to install the dependencies first, using the expected version. The sample rootfs has the correct versions, and so it seems your customization has left out those requirements (at least in the QEMU environment). If you can, add libegl1 and libexpat1, then try again.