pythops/jetson-image

Error on compiling ubuntu 22.04

nlnen opened this issue ยท 13 comments

Processing triggers for libc-bin (2.35-0ubuntu3.6) ... Segmentation fault (core dumped) Segmentation fault (core dumped) dpkg: error processing package libc-bin (--configure): installed libc-bin package post-installation script subprocess returned error exit status 139 Processing triggers for ca-certificates (20230311ubuntu0.22.04.1) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. Errors were encountered while processing: libc-bin E: Sub-process /usr/bin/dpkg returned an error code (1)

It seems that there is some memory wrong allocated due to Segmentation fault.
Compiling ubuntu20.04 works fine without any problems

what are the commands you have ran to get this ? what is your OS ?

My System ist fedora 39 Workstation
The command is just build-jetson-rootfs 22.04

What I originally wanted was a working Ubuntu 22.04 image (for jetson nano). But since this was not to be found on the releases page, I wanted to compile it myself. However, only version 20.04 worked fine.

I'll take a look at it

In case it worked for you, could you publish the Ubuntu 22.04 images in the releases?

Sure

I could not reproduce it actually.
Here are some tips you can try:

  1. try to get the latest version of podman
  2. If you have updated the kernel, you might need to restart your computer

I'll try to publish 22.04 images this week or next week

Ok, I'll try this, maybe it helps.
Otherwise testing on another OS might help...

I had a similar issue with exact same output when building using podman 4.9.5 on Ubuntu 24.04. The solution was to add the following lines to Containerfile.rootfs.22_04 and Containerfile.image.l4t3X right after the first line as outlined in this StackOverflow answer.

RUN rm /var/lib/dpkg/info/libc-bin.*
RUN apt-get clean
RUN apt-get update
RUN apt-get install libc-bin

Since no Ubuntu 22.04 image release is obtainable in the release page, I think this should help. Ubuntu 22.04 jetson nano image

Send PR ;)

@pythops Does it merge releases? I don't remember a pr will merge releases. Since most of the script I changed is some hacky modifications, I don't recommend merging my branch.

What I mean, is you're welcome to send changes to build Ubuntu 22.04 images on the CI, if you want ofc :)