Rng-tools cannot be installed

On a freshly flashed AGX Orin, with L4T R34.1.1 :

sudo apt install rng-tools reveals a conflict with nvidia-l4t-init.

default config file installed by nvidia-l4t-init prevents rng-tools from being installed.

$ sudo apt install rng-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/21,7 kB of archives.
After this operation, 97,3 kB of additional disk space will be used.
(Reading database ... 228998 files and directories currently installed.)
Preparing to unpack .../rng-tools_5-1ubuntu2_arm64.deb ...
Unpacking rng-tools (5-1ubuntu2) ...
dpkg: error processing archive /var/cache/apt/archives/rng-tools_5-1ubuntu2_arm64.deb (--unpack):
 trying to overwrite '/etc/default/rng-tools', which is also in package nvidia-l4t-init 34.1.1-20220516211757
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

I am unsure which package is more appropriate to contain the default config file.
The only difference is HRNGDEVICE=/dev/urandom, enabled in the nvidia version, commented in the ubuntu version.

You can use dpkg to force overwrite the file, and then modify the default config back to how nvidia had it, but it seems to break later jetpack updates when nvidia-l4t-init needs to be updated.

Is there a better way for nvidia to impose their configuration?

Try below command.

sudo apt-get install -y rng-tools5

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