Dpkg error for:nvidia-l4t-init_32.4.2-20200408182156_arm64.deb

dpkg error for:nvidia-l4t-init_32.4.2-20200408182156_arm64.deb

bak_log (10.9 KB)
help to analyze,thanks!

Please try to describe your problem clearly.

I see the error:

Unpacking nvidia-l4t-init (32.4.2-20200408182156) ...
dpkg: error processing archive /opt/nvidia/l4t-packages/userspace/nvidia-l4t-init_32.4.2-20200408182156_arm64.deb (--install):
 trying to overwrite '/etc/systemd/sleep.conf', which is also in package systemd 245.4-4ubuntu3.7

Other packages simply won’t install because nvidia-l4t-init won’t install, which in turn won’t install because package systemd owns sleep.conf. On other Jetsons I find sleep.conf is owned by nvidia-l4t-init. My guess is that in this release a dependency changed whereby systemd added this dependency without NVIDIA knowing (I don’t see sleep.conf on my Ubuntu 18.04 PC, and I don’t see this file owned by systemd on any Jetson in other releases).

I don’t know if NVIDIA would normally create a replacement edited version of the systemd package or not, but if it does, then this dependency edit was left out. If not normally edited by NVIDIA, then the package seems to have changed with a new conflict for that file.

I doubt it would help (you’d have to use QEMU manually on the host PC, or else on a booted Jetson directly), but if this were a running system, then you could possibly force it:
sudo dpkg --force-depends -i nvidia-l4t-init_32.4.2-20200408182156_arm64.deb
(where you’ve copied the file nvidia-l4t-init_32.4.2-20200408182156_arm64.deb to your current directory)

Just to be clear, was this install entirely via JetPack/SDKM, and no command line? If there were manual steps to download and install the rootfs, then this could have an effect on it.

For reference, if we are on the host PC, then the conflicting file would be “Linux_for_Tegra/rootfs/etc/systemd/sleep.conf”.

I have a similar error.
When I run apt upgrade, I’ve got the following errors.

$ sudo apt upgrade 
Unpacking systemd (245.4-4ubuntu3.7) over (245.4-4ubuntu3.6) ...
dpkg: error processing archive /var/cache/apt/archives/systemd_245.4-4ubuntu3.7_arm64.deb (--unpack):
 trying to overwrite '/etc/systemd/sleep.conf', which is also in package nvidia-l4t-init 32.5.1-20210519111140
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../libsystemd0_245.4-4ubuntu3.7_arm64.deb ...
Unpacking libsystemd0:arm64 (245.4-4ubuntu3.7) over (245.4-4ubuntu3.6) ...
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.

Are you using a pure jetpack release on NV devkit? Or you have customized something? Can you past the full log?

I Found what problem here is when you upgrade to Ubuntu 20.04 or higher seems some packages in systemd it’s in conflict by sleep.conf when you update nvidia-l4t-init by PPA.

The workarround is

sudo dpkg -i --force-overwrite /var/cache/apt/archive-nvidia-l4t-init_XXXXX_arm64.deb

With force-overwrite no fault error by dpkg install correct.
Maybe in the future needed update for correct structure in ubuntu 20.04 or higher
This temporal solution is working up to Ubuntu 21.10 with jetpack 4.6.1 .

1 Like

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