QEMU failed to install software in the minimum rootfs

On the smallest file system, use the qemu simulator to install the xfce4 lightweight desktop. The installation command “apt install xfce4” causes problems. The main problems are as follows:

sudo LC_ ALL=C PYTHONHASHSEED=0 chroot Linux_ for_ Tegra/rootfs/ apt -f install

Reading package lists… Done
Building dependency tree
Reading state information… Done
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory)
Setting up udisks2 (2.8.4-1ubuntu2) …
Failed to scan devices: No such file or directory
dpkg: error processing package udisks2 (–configure):
installed udisks2 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of gvfs-daemons:
gvfs-daemons depends on udisks2; however:
Package udisks2 is not configured yet.

dpkg: error processing package gvfs-daemons (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gvfs-backends:
gvfs-backends depends on gvfs-daemons (= 1.44.1-1ubuntu1.1); however:
Package gvfs-daemons is not configured yet.

dpkg: error processing package gvfs-backends (–configure):
dependency problems - leaving unconfigured
Setting up libfprint-2-2:arm64 (1:1.90.2+tod1-0ubuntu1~20.04.10) …
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Failed to scan devices: No such file or directory
dpkg: error processing package libfprint-2-2:arm64 (–configure):
installed libfprint-2-2:arm64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of gvfs:arm64:
gvfs:arm64 depends on gvfs-daemons (<< 1.44.1-1ubuntu1.1.1~); however:
Package gvfs-daemons is not configured yet.
gvfs:arm64 depends on gvfs-daemons (>= 1.44.1-1ubuntu1.1); however:
Package gvfs-daemons is not configured yet.

dpkg: error processing package gvfs:arm64 (–configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached alreadydpkg: dependency problems prevent configuration of fprintd:
fprintd depends on libfprint-2-2 (>= 1:1.90.1); however:
Package libfprint-2-2:arm64 is not configured yet.

dpkg: error processing package fprintd (–configure):
dependency problems - leaving unconfigured

No apport report written because MaxReports is reached alreadydpkg: dependency problems prevent configuration of libpam-fprintd:arm64:
libpam-fprintd:arm64 depends on fprintd (= 1.90.9-1~ubuntu20.04.1); however:
Package fprintd is not configured yet.

dpkg: error processing package libpam-fprintd:arm64 (–configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
Processing triggers for libc-bin (2.31-0ubuntu9.9) …
Errors were encountered while processing:
udisks2
gvfs-daemons
gvfs-backends
libfprint-2-2:arm64
gvfs:arm64
fprintd
libpam-fprintd:arm64
E: Sub-process /usr/bin/dpkg returned an error code (1)

Hi,
We will try to reproduce the issue and then check. As a quick solution, please use the Ubuntu desktop in the default rootfs.

Hi,
Would like to confirm the step. Do you mean you execute sudo apt install xfce4 and hit the error?

yes,
sudo LC_ ALL=C PYTHONHASHSEED=0 chroot Linux_ for_ Tegra/rootfs/ apt install xfce4

Hi,
We have checked and this looks expected. GUI mode is not supported in minimum rootfs, as mentioned in document:

The minimal root file system is the basic root file system that is used for NVIDIA Jetson develop kits. This file system does not provide the GUI mode, and all manipulations can be completed only by using the SSH or UART console.

So xfce4 cannot be installed.

If I do not use QEMU to install in rootfs, I will directly make mini rootfs into a system After img, flash to orin devkit, and execute “sudo apt install xfce4” on the command line, it is OK!

Hi,
Are you able to install it on Orin after flashing and booting? If you can install it on Orin device directly, it looks to be a fine solution.

Yes, installation after startup is OK, but I want to use QEMU to install in rootfs.

Hi,
A possible solution is to make the desired rootfs on one Orin and clone the image out. So that you can flash to other Orins with the customized rootfs. Please refer to
Flashing Support — Jetson Linux<br/>Developer Guide 34.1 documentation

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.