Errors were encountered while processing: usrmerge #29

Closed
opened 1 year ago by elrom · 9 comments
elrom commented 1 year ago

Hi Jochen,

I'm currently encountering the following error when running mmdebstrap at main. Would appreciate any help you can provide. Thanks!

Errors were encountered while processing:
 usrmerge
E: Sub-process env returned an error code (1)
E: setup failed: E: apt-get -o Dir::Bin::dpkg=env -o DPkg::Options::=--unset=TMPDIR -o DPkg::Options::=dpkg -o DPkg::Install::Recursive::force=true -o DPkg::Chroot-Directory=/tmp/jammy --yes install -oAPT::Status-Fd=<$fd> -oDpkg::Use-Pty=false ?narrow(?or(?archive(^jammy$),?codename(^jammy$)),?architecture(amd64),?and(?or(?priority(required),?priority(important)),?not(?essential))) cuda failed at ./mmdebstrap line 192.
        main::error("apt-get -o Dir::Bin::dpkg=env -o DPkg::Options::=--unset=TMPD"...) called at ./mmdebstrap line 926
        main::run_progress(CODE(0x5623b8ab9120), CODE(0x5623b8507568), CODE(0x5623b8507400), undef) called at ./mmdebstrap line 1018
        main::run_apt_progress(HASH(0x5623b8ab9090)) called at ./mmdebstrap line 2969
        main::run_install(HASH(0x5623b89763e0)) called at ./mmdebstrap line 1829
        eval {...} called at ./mmdebstrap line 1816
        main::setup(HASH(0x5623b89763e0)) called at ./mmdebstrap line 5746
        main::main() called at ./mmdebstrap line 6051 at ./mmdebstrap line 192.
        main::error("setup failed: \x{1b}[1;31mE: apt-get -o Dir::Bin::dpkg=env -o DPkg"...) called at ./mmdebstrap line 1838
        main::setup(HASH(0x5623b89763e0)) called at ./mmdebstrap line 5746
        main::main() called at ./mmdebstrap line 6051
D: 34985 3544 listener: finished reading command
D: 34985 3848 hooklistener errored out: E: received eof on socket at ./mmdebstrap line 192.
        main::error("received eof on socket") called at ./mmdebstrap line 3545
        eval {...} called at ./mmdebstrap line 3535
        main::hooklistener(3) called at ./mmdebstrap line 5856
        main::main() called at ./mmdebstrap line 6051

I: 34985 5829 main() received signal PIPE: waiting for setup...
D: 34956 5866 finish to listen for hooks
E: mmdebstrap failed to run at ./mmdebstrap line 192.
        main::error("mmdebstrap failed to run") called at ./mmdebstrap line 6047
        main::main() called at ./mmdebstrap line 6051
Hi Jochen, I'm currently encountering the following error when running mmdebstrap at main. Would appreciate any help you can provide. Thanks! ``` Errors were encountered while processing: usrmerge E: Sub-process env returned an error code (1) E: setup failed: E: apt-get -o Dir::Bin::dpkg=env -o DPkg::Options::=--unset=TMPDIR -o DPkg::Options::=dpkg -o DPkg::Install::Recursive::force=true -o DPkg::Chroot-Directory=/tmp/jammy --yes install -oAPT::Status-Fd=<$fd> -oDpkg::Use-Pty=false ?narrow(?or(?archive(^jammy$),?codename(^jammy$)),?architecture(amd64),?and(?or(?priority(required),?priority(important)),?not(?essential))) cuda failed at ./mmdebstrap line 192. main::error("apt-get -o Dir::Bin::dpkg=env -o DPkg::Options::=--unset=TMPD"...) called at ./mmdebstrap line 926 main::run_progress(CODE(0x5623b8ab9120), CODE(0x5623b8507568), CODE(0x5623b8507400), undef) called at ./mmdebstrap line 1018 main::run_apt_progress(HASH(0x5623b8ab9090)) called at ./mmdebstrap line 2969 main::run_install(HASH(0x5623b89763e0)) called at ./mmdebstrap line 1829 eval {...} called at ./mmdebstrap line 1816 main::setup(HASH(0x5623b89763e0)) called at ./mmdebstrap line 5746 main::main() called at ./mmdebstrap line 6051 at ./mmdebstrap line 192. main::error("setup failed: \x{1b}[1;31mE: apt-get -o Dir::Bin::dpkg=env -o DPkg"...) called at ./mmdebstrap line 1838 main::setup(HASH(0x5623b89763e0)) called at ./mmdebstrap line 5746 main::main() called at ./mmdebstrap line 6051 D: 34985 3544 listener: finished reading command D: 34985 3848 hooklistener errored out: E: received eof on socket at ./mmdebstrap line 192. main::error("received eof on socket") called at ./mmdebstrap line 3545 eval {...} called at ./mmdebstrap line 3535 main::hooklistener(3) called at ./mmdebstrap line 5856 main::main() called at ./mmdebstrap line 6051 I: 34985 5829 main() received signal PIPE: waiting for setup... D: 34956 5866 finish to listen for hooks E: mmdebstrap failed to run at ./mmdebstrap line 192. main::error("mmdebstrap failed to run") called at ./mmdebstrap line 6047 main::main() called at ./mmdebstrap line 6051 ```
elrom commented 1 year ago
Poster

Some more relevant output that occurs earlier:

The "/usr//usr" looks suspicious

Setting up udev (249.11-0ubuntu3.6) ...
A chroot environment has been detected, udev not started.
Setting up usrmerge (25ubuntu2) ...
Smartmatch is experimental at /usr/lib/usrmerge/convert-usrmerge line 172.
ionice: ioprio_set failed: Operation not permitted
chrt: failed to set pid 58535's policy: Operation not permitted
cp: cannot create regular file '/usr//usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.10.4': No such file or directory

FATAL ERROR:
cp --no-dereference --preserve=all --reflink=auto --sparse=always //usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.10.4 /usr//usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.10.4: rc=1

You can try correcting the errors reported and running again
/usr/lib/usrmerge/convert-usrmerge until it will complete without errors.
Do not install or update other Debian packages until the program
has been run successfully.
Some more relevant output that occurs earlier: The "/usr//usr" looks suspicious ``` Setting up udev (249.11-0ubuntu3.6) ... A chroot environment has been detected, udev not started. Setting up usrmerge (25ubuntu2) ... Smartmatch is experimental at /usr/lib/usrmerge/convert-usrmerge line 172. ionice: ioprio_set failed: Operation not permitted chrt: failed to set pid 58535's policy: Operation not permitted cp: cannot create regular file '/usr//usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.10.4': No such file or directory FATAL ERROR: cp --no-dereference --preserve=all --reflink=auto --sparse=always //usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.10.4 /usr//usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.10.4: rc=1 You can try correcting the errors reported and running again /usr/lib/usrmerge/convert-usrmerge until it will complete without errors. Do not install or update other Debian packages until the program has been run successfully. ```
josch commented 1 year ago
Owner

Can you give me more context, please? At least provide:

  • your platform/operating system
  • mmdebstrap version
  • the commandline you executed

So far this looks like a bug in the usrmerge package and not in mmdebstrap. I feel reminded of this bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025926

Can you give me more context, please? At least provide: - your platform/operating system - mmdebstrap version - the commandline you executed So far this looks like a bug in the usrmerge package and not in mmdebstrap. I feel reminded of this bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025926
elrom commented 1 year ago
Poster
cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"
./mmdebstrap --version
mmdebstrap 1.2.3
./mmdebstrap -d jammy ../jammy

Fails with the above output. Here's the interesting part I just realized:
the above command uses fakechroot:

./mmdebstrap -d jammy ../jammy
D: 29570 350 cannot find newuidmap
I: 29623 4692 automatically chosen mode: fakechroot

But if run with sudo, i.e.

sudo ./mmdebstrap --mode=sudo -d jammy ../jammy

it succeeds.

So it might be related to some interplay with fakechroot?

``` cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS" ``` ``` ./mmdebstrap --version mmdebstrap 1.2.3 ``` ``` ./mmdebstrap -d jammy ../jammy ``` Fails with the above output. Here's the interesting part I just realized: the above command uses fakechroot: ``` ./mmdebstrap -d jammy ../jammy D: 29570 350 cannot find newuidmap I: 29623 4692 automatically chosen mode: fakechroot ``` But if run with sudo, i.e. ``` sudo ./mmdebstrap --mode=sudo -d jammy ../jammy ``` it succeeds. So it might be related to some interplay with fakechroot?
josch commented 1 year ago
Owner

Aha, nice find! Then this looks like a bug in the usrmerge package because with usrmerge from Debian unstable, fakechroot mode works fine. You might want to contact the usrmerge maintainers about this problem.

To get better isolation than with fakechroot and to avoid having to use root, I recommend you use --mode=unshare. Your log points out that you are missing the newuidmap utility. Try installing the uidmap package.

Aha, nice find! Then this looks like a bug in the usrmerge package because with usrmerge from Debian unstable, fakechroot mode works fine. You might want to contact the usrmerge maintainers about this problem. To get better isolation than with fakechroot and to avoid having to use root, I recommend you use --mode=unshare. Your log points out that you are missing the newuidmap utility. Try installing the `uidmap` package.
elrom commented 1 year ago
Poster

Woot! once I installed uidmap, mmdebstrap selected unshare and all is well. Thanks for your help. And thanks for creating such an excellent piece of software!

Woot! once I installed uidmap, mmdebstrap selected unshare and all is well. Thanks for your help. And thanks for creating such an excellent piece of software!
elrom commented 1 year ago
Poster

I thought this went away, but seems like it's still happening in some capacity.

With --mode==unshare, I get this (but not with --mode=sudo):

Setting up udev (249.11-0ubuntu3.6) ...                                                                                                                                                                              
A chroot environment has been detected, udev not started.                                                                                                                                                            
Setting up usrmerge (25ubuntu2) ...                                                                                                                                                                                  
Smartmatch is experimental at /usr/lib/usrmerge/convert-usrmerge line 172.                                                                                                                                           
ionice: ioprio_set failed: Operation not permitted                                                                                                                                                                   
chrt: failed to set pid 4209's policy: Operation not permitted                                                                                                                                                       
The system has been successfully converted.                

with --mode==fakeroot I get a completely (unrelated) different error:

Setting up libc-bin (2.35-0ubuntu3.1) ...
/var/lib/dpkg/info/libc-bin.postinst: 53: ldconfig: not found
/var/lib/dpkg/info/libc-bin.postinst: 53: ldconfig: not found
dpkg: error processing package libc-bin (--install):
 installed libc-bin package post-installation script subprocess returned error exit status 127
Setting up sysvinit-utils (3.01-1ubuntu1) ...
Errors were encountered while processing:
 libc-bin
E: setup failed: E: env --unset=APT_CONFIG --unset=TMPDIR chroot /tmp/mmdebstrap.9zOy3gu5ns dpkg --install --force-depends --status-fd=<$fd> /var/cache/apt/archives/gcc-12-base_12.1.0-2ubuntu1~22.04_amd64.deb /var/cache/apt/archives/libcrypt1_1%3a4.4.27-1_amd64.deb /var/cache/apt/archives/libc6_2.35-0ubuntu3.1_amd64.deb /var/cache/apt/archives/libgcc-s1_12.1.0-2ubuntu1~22.04_amd64.deb /var/cache/apt/archives/mawk_1.3.4.20200120-3_amd64.deb /var/cache/apt/archives/base-files_12ubuntu4.2_amd64.deb /var/cache/apt/archives/libtinfo6_6.3-2_amd64.deb /var/cache/apt/archives/debianutils_5.5-1ubuntu2_amd64.deb /var/cache/apt/archives/bash_5.1-6ubuntu1_amd64.deb /var/cache/apt/archives/libcap2_1%3a2.44-1build3_amd64.deb /var/cache/apt/archives/libgpg-error0_1.43-3_amd64.deb /var/cache/apt/archives/libgcrypt20_1.9.4-3ubuntu3_amd64.deb /var/cache/apt/archives/liblz4-1_1.9.3-2build2_amd64.deb /var/cache/apt/archives/liblzma5_5.2.5-2ubuntu1_amd64.deb /var/cache/apt/archives/libzstd1_1.4.8+dfsg-3build1_amd64.deb /var/cache/apt/archives/libsystemd0_249.11-0ubuntu3.6_amd64.deb /var/cache/apt/archives/bsdutils_1%3a2.37.2-4ubuntu3_amd64.deb /var/cache/apt/archives/libacl1_2.3.1-1_amd64.deb /var/cache/apt/archives/libattr1_1%3a2.5.1-1build1_amd64.deb /var/cache/apt/archives/libgmp10_2%3a6.2.1+dfsg-3ubuntu1_amd64.deb /var/cache/apt/archives/libpcre2-8-0_10.39-3ubuntu0.1_amd64.deb /var/cache/apt/archives/libselinux1_3.3-1build2_amd64.deb /var/cache/apt/archives/coreutils_8.32-4.1ubuntu1_amd64.deb /var/cache/apt/archives/libbz2-1.0_1.0.8-5build1_amd64.deb /var/cache/apt/archives/zlib1g_1%3a1.2.11.dfsg-2ubuntu9.2_amd64.deb /var/cache/apt/archives/tar_1.34+dfsg-1build3_amd64.deb /var/cache/apt/archives/dpkg_1.21.1ubuntu2.1_amd64.deb /var/cache/apt/archives/perl-base_5.34.0-3ubuntu1.1_amd64.deb /var/cache/apt/archives/debconf_1.5.79ubuntu1_all.deb /var/cache/apt/archives/dash_0.5.11+git20210903+057cd650a4ed-3build1_amd64.deb /var/cache/apt/archives/diffutils_1%3a3.8-0ubuntu2_amd64.deb /var/cache/apt/archives/findutils_4.8.0-1ubuntu3_amd64.deb /var/cache/apt/archives/libpcre3_2%3a8.39-13ubuntu0.22.04.1_amd64.deb /var/cache/apt/archives/grep_3.7-1build1_amd64.deb /var/cache/apt/archives/gzip_1.10-4ubuntu4.1_amd64.deb /var/cache/apt/archives/hostname_3.23ubuntu2_amd64.deb /var/cache/apt/archives/libaudit-common_1%3a3.0.7-1build1_all.deb /var/cache/apt/archives/libcap-ng0_0.7.9-2.2build3_amd64.deb /var/cache/apt/archives/libaudit1_1%3a3.0.7-1build1_amd64.deb /var/cache/apt/archives/libpam0g_1.4.0-11ubuntu2_amd64.deb /var/cache/apt/archives/libdb5.3_5.3.28+dfsg1-0.8ubuntu3_amd64.deb /var/cache/apt/archives/libcom-err2_1.46.5-2ubuntu1.1_amd64.deb /var/cache/apt/archives/libkrb5support0_1.19.2-2_amd64.deb /var/cache/apt/archives/libk5crypto3_1.19.2-2_amd64.deb /var/cache/apt/archives/libkeyutils1_1.6.1-2ubuntu3_amd64.deb /var/cache/apt/archives/libssl3_3.0.2-0ubuntu1.7_amd64.deb /var/cache/apt/archives/libkrb5-3_1.19.2-2_amd64.deb /var/cache/apt/archives/libgssapi-krb5-2_1.19.2-2_amd64.deb /var/cache/apt/archives/libtirpc-common_1.3.2-2ubuntu0.1_all.deb /var/cache/apt/archives/libtirpc3_1.3.2-2ubuntu0.1_amd64.deb /var/cache/apt/archives/libnsl2_1.3.0-2build2_amd64.deb /var/cache/apt/archives/libpam-modules-bin_1.4.0-11ubuntu2_amd64.deb /var/cache/apt/archives/libpam-modules_1.4.0-11ubuntu2_amd64.deb /var/cache/apt/archives/libpam-runtime_1.4.0-11ubuntu2_all.deb /var/cache/apt/archives/login_1%3a4.8.1-2ubuntu2.1_amd64.deb /var/cache/apt/archives/ncurses-bin_6.3-2_amd64.deb /var/cache/apt/archives/sed_4.8-1ubuntu2_amd64.deb /var/cache/apt/archives/libblkid1_2.37.2-4ubuntu3_amd64.deb /var/cache/apt/archives/libmount1_2.37.2-4ubuntu3_amd64.deb /var/cache/apt/archives/libsmartcols1_2.37.2-4ubuntu3_amd64.deb /var/cache/apt/archives/libudev1_249.11-0ubuntu3.6_amd64.deb /var/cache/apt/archives/libuuid1_2.37.2-4ubuntu3_amd64.deb /var/cache/apt/archives/util-linux_2.37.2-4ubuntu3_amd64.deb /var/cache/apt/archives/libdebconfclient0_0.261ubuntu1_amd64.deb /var/cache/apt/archives/base-passwd_3.5.52build1_amd64.deb /var/cache/apt/archives/init-system-helpers_1.62_all.deb /var/cache/apt/archives/libc-bin_2.35-0ubuntu3.1_amd64.deb /var/cache/apt/archives/ncurses-base_6.3-2_all.deb /var/cache/apt/archives/lsb-base_11.1.0ubuntu4_all.deb /var/cache/apt/archives/sysvinit-utils_3.01-1ubuntu1_amd64.deb failed at /opt/mmdebstrap/mmdebstrap line 192.
        main::error("env --unset=APT_CONFIG --unset=TMPDIR chroot /tmp/mmdebstrap."...) called at /opt/mmdebstrap/mmdebstrap line 926
        main::run_progress(CODE(0x55f241a884a0), CODE(0x55f241a88530), CODE(0x55f2414abe20)) called at /opt/mmdebstrap/mmdebstrap line 955
        main::run_dpkg_progress(HASH(0x55f241a80248)) called at /opt/mmdebstrap/mmdebstrap line 2839
        main::run_essential(HASH(0x55f2417cdb10), ARRAY(0x55f241585a38), ARRAY(0x55f2415aec00), ARRAY(0x55f24157a270)) called at /opt/mmdebstrap/mmdebstrap line 1825
        eval {...} called at /opt/mmdebstrap/mmdebstrap line 1816
        main::setup(HASH(0x55f2417cdb10)) called at /opt/mmdebstrap/mmdebstrap line 5746
        main::main() called at /opt/mmdebstrap/mmdebstrap line 6051 at /opt/mmdebstrap/mmdebstrap line 192.
        main::error("setup failed: \x{1b}[1;31mE: env --unset=APT_CONFIG --unset=TMPDIR"...) called at /opt/mmdebstrap/mmdebstrap line 1838
        main::setup(HASH(0x55f2417cdb10)) called at /opt/mmdebstrap/mmdebstrap line 5746
        main::main() called at /opt/mmdebstrap/mmdebstrap line 6051
D: 660772 3544 listener: finished reading command
D: 660772 3848 hooklistener errored out: E: received eof on socket at /opt/mmdebstrap/mmdebstrap line 192.
        main::error("received eof on socket") called at /opt/mmdebstrap/mmdebstrap line 3545
        eval {...} called at /opt/mmdebstrap/mmdebstrap line 3535
        main::hooklistener(3) called at /opt/mmdebstrap/mmdebstrap line 5856
        main::main() called at /opt/mmdebstrap/mmdebstrap line 6051

I: 660772 5829 main() received signal PIPE: waiting for setup...
D: 660743 5866 finish to listen for hooks
I: 660743 5990 removing tempdir /tmp/mmdebstrap.9zOy3gu5ns...
E: mmdebstrap failed to run at /opt/mmdebstrap/mmdebstrap line 192.
        main::error("mmdebstrap failed to run") called at /opt/mmdebstrap/mmdebstrap line 6047
        main::main() called at /opt/mmdebstrap/mmdebstrap line 6051
I thought this went away, but seems like it's still happening in some capacity. With --mode==unshare, I get this (but not with --mode=sudo): ``` Setting up udev (249.11-0ubuntu3.6) ... A chroot environment has been detected, udev not started. Setting up usrmerge (25ubuntu2) ... Smartmatch is experimental at /usr/lib/usrmerge/convert-usrmerge line 172. ionice: ioprio_set failed: Operation not permitted chrt: failed to set pid 4209's policy: Operation not permitted The system has been successfully converted. ``` with --mode==fakeroot I get a completely (unrelated) different error: ``` Setting up libc-bin (2.35-0ubuntu3.1) ... /var/lib/dpkg/info/libc-bin.postinst: 53: ldconfig: not found /var/lib/dpkg/info/libc-bin.postinst: 53: ldconfig: not found dpkg: error processing package libc-bin (--install): installed libc-bin package post-installation script subprocess returned error exit status 127 Setting up sysvinit-utils (3.01-1ubuntu1) ... Errors were encountered while processing: libc-bin E: setup failed: E: env --unset=APT_CONFIG --unset=TMPDIR chroot /tmp/mmdebstrap.9zOy3gu5ns dpkg --install --force-depends --status-fd=<$fd> /var/cache/apt/archives/gcc-12-base_12.1.0-2ubuntu1~22.04_amd64.deb /var/cache/apt/archives/libcrypt1_1%3a4.4.27-1_amd64.deb /var/cache/apt/archives/libc6_2.35-0ubuntu3.1_amd64.deb /var/cache/apt/archives/libgcc-s1_12.1.0-2ubuntu1~22.04_amd64.deb /var/cache/apt/archives/mawk_1.3.4.20200120-3_amd64.deb /var/cache/apt/archives/base-files_12ubuntu4.2_amd64.deb /var/cache/apt/archives/libtinfo6_6.3-2_amd64.deb /var/cache/apt/archives/debianutils_5.5-1ubuntu2_amd64.deb /var/cache/apt/archives/bash_5.1-6ubuntu1_amd64.deb /var/cache/apt/archives/libcap2_1%3a2.44-1build3_amd64.deb /var/cache/apt/archives/libgpg-error0_1.43-3_amd64.deb /var/cache/apt/archives/libgcrypt20_1.9.4-3ubuntu3_amd64.deb /var/cache/apt/archives/liblz4-1_1.9.3-2build2_amd64.deb /var/cache/apt/archives/liblzma5_5.2.5-2ubuntu1_amd64.deb /var/cache/apt/archives/libzstd1_1.4.8+dfsg-3build1_amd64.deb /var/cache/apt/archives/libsystemd0_249.11-0ubuntu3.6_amd64.deb /var/cache/apt/archives/bsdutils_1%3a2.37.2-4ubuntu3_amd64.deb /var/cache/apt/archives/libacl1_2.3.1-1_amd64.deb /var/cache/apt/archives/libattr1_1%3a2.5.1-1build1_amd64.deb /var/cache/apt/archives/libgmp10_2%3a6.2.1+dfsg-3ubuntu1_amd64.deb /var/cache/apt/archives/libpcre2-8-0_10.39-3ubuntu0.1_amd64.deb /var/cache/apt/archives/libselinux1_3.3-1build2_amd64.deb /var/cache/apt/archives/coreutils_8.32-4.1ubuntu1_amd64.deb /var/cache/apt/archives/libbz2-1.0_1.0.8-5build1_amd64.deb /var/cache/apt/archives/zlib1g_1%3a1.2.11.dfsg-2ubuntu9.2_amd64.deb /var/cache/apt/archives/tar_1.34+dfsg-1build3_amd64.deb /var/cache/apt/archives/dpkg_1.21.1ubuntu2.1_amd64.deb /var/cache/apt/archives/perl-base_5.34.0-3ubuntu1.1_amd64.deb /var/cache/apt/archives/debconf_1.5.79ubuntu1_all.deb /var/cache/apt/archives/dash_0.5.11+git20210903+057cd650a4ed-3build1_amd64.deb /var/cache/apt/archives/diffutils_1%3a3.8-0ubuntu2_amd64.deb /var/cache/apt/archives/findutils_4.8.0-1ubuntu3_amd64.deb /var/cache/apt/archives/libpcre3_2%3a8.39-13ubuntu0.22.04.1_amd64.deb /var/cache/apt/archives/grep_3.7-1build1_amd64.deb /var/cache/apt/archives/gzip_1.10-4ubuntu4.1_amd64.deb /var/cache/apt/archives/hostname_3.23ubuntu2_amd64.deb /var/cache/apt/archives/libaudit-common_1%3a3.0.7-1build1_all.deb /var/cache/apt/archives/libcap-ng0_0.7.9-2.2build3_amd64.deb /var/cache/apt/archives/libaudit1_1%3a3.0.7-1build1_amd64.deb /var/cache/apt/archives/libpam0g_1.4.0-11ubuntu2_amd64.deb /var/cache/apt/archives/libdb5.3_5.3.28+dfsg1-0.8ubuntu3_amd64.deb /var/cache/apt/archives/libcom-err2_1.46.5-2ubuntu1.1_amd64.deb /var/cache/apt/archives/libkrb5support0_1.19.2-2_amd64.deb /var/cache/apt/archives/libk5crypto3_1.19.2-2_amd64.deb /var/cache/apt/archives/libkeyutils1_1.6.1-2ubuntu3_amd64.deb /var/cache/apt/archives/libssl3_3.0.2-0ubuntu1.7_amd64.deb /var/cache/apt/archives/libkrb5-3_1.19.2-2_amd64.deb /var/cache/apt/archives/libgssapi-krb5-2_1.19.2-2_amd64.deb /var/cache/apt/archives/libtirpc-common_1.3.2-2ubuntu0.1_all.deb /var/cache/apt/archives/libtirpc3_1.3.2-2ubuntu0.1_amd64.deb /var/cache/apt/archives/libnsl2_1.3.0-2build2_amd64.deb /var/cache/apt/archives/libpam-modules-bin_1.4.0-11ubuntu2_amd64.deb /var/cache/apt/archives/libpam-modules_1.4.0-11ubuntu2_amd64.deb /var/cache/apt/archives/libpam-runtime_1.4.0-11ubuntu2_all.deb /var/cache/apt/archives/login_1%3a4.8.1-2ubuntu2.1_amd64.deb /var/cache/apt/archives/ncurses-bin_6.3-2_amd64.deb /var/cache/apt/archives/sed_4.8-1ubuntu2_amd64.deb /var/cache/apt/archives/libblkid1_2.37.2-4ubuntu3_amd64.deb /var/cache/apt/archives/libmount1_2.37.2-4ubuntu3_amd64.deb /var/cache/apt/archives/libsmartcols1_2.37.2-4ubuntu3_amd64.deb /var/cache/apt/archives/libudev1_249.11-0ubuntu3.6_amd64.deb /var/cache/apt/archives/libuuid1_2.37.2-4ubuntu3_amd64.deb /var/cache/apt/archives/util-linux_2.37.2-4ubuntu3_amd64.deb /var/cache/apt/archives/libdebconfclient0_0.261ubuntu1_amd64.deb /var/cache/apt/archives/base-passwd_3.5.52build1_amd64.deb /var/cache/apt/archives/init-system-helpers_1.62_all.deb /var/cache/apt/archives/libc-bin_2.35-0ubuntu3.1_amd64.deb /var/cache/apt/archives/ncurses-base_6.3-2_all.deb /var/cache/apt/archives/lsb-base_11.1.0ubuntu4_all.deb /var/cache/apt/archives/sysvinit-utils_3.01-1ubuntu1_amd64.deb failed at /opt/mmdebstrap/mmdebstrap line 192. main::error("env --unset=APT_CONFIG --unset=TMPDIR chroot /tmp/mmdebstrap."...) called at /opt/mmdebstrap/mmdebstrap line 926 main::run_progress(CODE(0x55f241a884a0), CODE(0x55f241a88530), CODE(0x55f2414abe20)) called at /opt/mmdebstrap/mmdebstrap line 955 main::run_dpkg_progress(HASH(0x55f241a80248)) called at /opt/mmdebstrap/mmdebstrap line 2839 main::run_essential(HASH(0x55f2417cdb10), ARRAY(0x55f241585a38), ARRAY(0x55f2415aec00), ARRAY(0x55f24157a270)) called at /opt/mmdebstrap/mmdebstrap line 1825 eval {...} called at /opt/mmdebstrap/mmdebstrap line 1816 main::setup(HASH(0x55f2417cdb10)) called at /opt/mmdebstrap/mmdebstrap line 5746 main::main() called at /opt/mmdebstrap/mmdebstrap line 6051 at /opt/mmdebstrap/mmdebstrap line 192. main::error("setup failed: \x{1b}[1;31mE: env --unset=APT_CONFIG --unset=TMPDIR"...) called at /opt/mmdebstrap/mmdebstrap line 1838 main::setup(HASH(0x55f2417cdb10)) called at /opt/mmdebstrap/mmdebstrap line 5746 main::main() called at /opt/mmdebstrap/mmdebstrap line 6051 D: 660772 3544 listener: finished reading command D: 660772 3848 hooklistener errored out: E: received eof on socket at /opt/mmdebstrap/mmdebstrap line 192. main::error("received eof on socket") called at /opt/mmdebstrap/mmdebstrap line 3545 eval {...} called at /opt/mmdebstrap/mmdebstrap line 3535 main::hooklistener(3) called at /opt/mmdebstrap/mmdebstrap line 5856 main::main() called at /opt/mmdebstrap/mmdebstrap line 6051 I: 660772 5829 main() received signal PIPE: waiting for setup... D: 660743 5866 finish to listen for hooks I: 660743 5990 removing tempdir /tmp/mmdebstrap.9zOy3gu5ns... E: mmdebstrap failed to run at /opt/mmdebstrap/mmdebstrap line 192. main::error("mmdebstrap failed to run") called at /opt/mmdebstrap/mmdebstrap line 6047 main::main() called at /opt/mmdebstrap/mmdebstrap line 6051 ```
elrom commented 1 year ago
Poster

P.s.
This seems to be related to https://askubuntu.com/questions/1427529/upgrade-to-22-04-failed-error-got-error-from-postinstallscript
Does mmdebstrap install a particular system and then perform a dist-upgrade?

P.s. This seems to be related to https://askubuntu.com/questions/1427529/upgrade-to-22-04-failed-error-got-error-from-postinstallscript Does mmdebstrap install a particular system and then perform a dist-upgrade?
josch commented 1 year ago
Owner

The system has been successfully converted.

That does not look like an error. What is the exit status of mmdebstrap in the end?

/var/lib/dpkg/info/libc-bin.postinst: 53: ldconfig: not found

That is an error. What is your exact invocation of mmdebstrap?

Does mmdebstrap install a particular system and then perform a dist-upgrade?

No, it doesn't upgrade. It installs the requested packages straight away.

> The system has been successfully converted. That does not look like an error. What is the exit status of mmdebstrap in the end? > /var/lib/dpkg/info/libc-bin.postinst: 53: ldconfig: not found That is an error. What is your exact invocation of mmdebstrap? > Does mmdebstrap install a particular system and then perform a dist-upgrade? No, it doesn't upgrade. It installs the requested packages straight away.
elrom commented 1 year ago
Poster

Re: --mode=unshare:

That does not look like an error. What is the exit status of mmdebstrap in the end?

So this is benign? Exit status is 0.

Re: --mode=fakeroot:

The following invocation causes the error. This is running on a jammy vm, and sources.list is a copy of a jammy sources.list.

mmdebstrap -d jammy --mode=fakeroot ../ubuntu.tar sources.list
#### Re: --mode=unshare: > That does not look like an error. What is the exit status of mmdebstrap in the end? So this is benign? Exit status is 0. #### Re: --mode=fakeroot: The following invocation causes the error. This is running on a jammy vm, and sources.list is a copy of a jammy sources.list. ``` mmdebstrap -d jammy --mode=fakeroot ../ubuntu.tar sources.list ```
elrom closed this issue 1 year ago
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: josch/mmdebstrap#29
Loading…
There is no content yet.