Public bug reported:

I'm unable to create a distrobox (with podman as backend) container of
stonking or sid, because systemd fails to run the postinst script within
the container during its setup

$ distrobox create stonking --image ubuntu:stonking
$ distrobox enter stonking
Starting container...                            [ OK ]
Installing basic packages...                     Error: An error occurred

The system journal shows more info:

Sep 10 11:31:03 thinkpad stonking[1149176]: Setting up systemd (261.2-1ubuntu1) 
...
Sep 10 11:31:03 thinkpad stonking[1149176]: fchownat() of /tmp failed: 
Operation not permitted
Sep 10 11:31:03 thinkpad stonking[1149176]: fchownat() of /tmp/.X11-unix 
failed: Operation not permitted
Sep 10 11:31:03 thinkpad stonking[1149176]: fchownat() of /tmp/.ICE-unix 
failed: Operation not permitted
Sep 10 11:31:03 thinkpad stonking[1149176]: fchownat() of /tmp/.XIM-unix 
failed: Operation not permitted
Sep 10 11:31:03 thinkpad stonking[1149176]: fchownat() of /tmp/.font-unix 
failed: Operation not permitted
Sep 10 11:31:03 thinkpad stonking[1149176]: dpkg: error processing package 
systemd (--configure):
Sep 10 11:31:03 thinkpad stonking[1149176]:  old systemd package postinst 
maintainer script subprocess failed with exit status 73
Sep 10 11:31:03 thinkpad stonking[1149176]: Errors were encountered while 
processing:
Sep 10 11:31:03 thinkpad stonking[1149176]:  systemd
Sep 10 11:31:03 thinkpad stonking[1149176]: mount: /run/systemd/journal: mount 
point does not exist.
Sep 10 11:31:03 thinkpad stonking[1149176]:        dmesg(1) may have more 
information after failed mount system call.
Sep 10 11:31:03 thinkpad stonking[1149176]: mount: /run/systemd/journal: mount 
point does not exist.
Sep 10 11:31:03 thinkpad stonking[1149176]:        dmesg(1) may have more 
information after failed mount system call.
Sep 10 11:31:03 thinkpad stonking[1149176]: mount: /run/systemd/resolve: mount 
point does not exist.
Sep 10 11:31:03 thinkpad stonking[1149176]:        dmesg(1) may have more 
information after failed mount system call.
Sep 10 11:31:03 thinkpad stonking[1149176]: mount: /run/systemd/resolve: mount 
point does not exist.
Sep 10 11:31:03 thinkpad stonking[1149176]:        dmesg(1) may have more 
information after failed mount system call.
Sep 10 11:31:03 thinkpad stonking[1149176]: E: Sub-process /usr/bin/dpkg 
returned an error code (1)
Sep 10 11:31:03 thinkpad stonking[1149176]: + [ 100 -ne 0 ]
Sep 10 11:31:03 thinkpad stonking[1149176]: + printf Error: An error occurred\n
Sep 10 11:31:03 thinkpad stonking[1149176]: Error: An error occurred

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  I'm unable to create a distrobox (with podman as backend) container of
- stonking or sid, because systemd fails to run the postinst script.
+ stonking or sid, because systemd fails to run the postinst script within
+ the container during its setup
  
  $ distrobox create stonking --image ubuntu:stonking
  $ distrobox enter stonking
  Starting container...                          [ OK ]
  Installing basic packages...                   Error: An error occurred
  
  The system journal shows more info:
  
  Sep 10 11:31:03 thinkpad stonking[1149176]: Setting up systemd 
(261.2-1ubuntu1) ...
  Sep 10 11:31:03 thinkpad stonking[1149176]: fchownat() of /tmp failed: 
Operation not permitted
  Sep 10 11:31:03 thinkpad stonking[1149176]: fchownat() of /tmp/.X11-unix 
failed: Operation not permitted
  Sep 10 11:31:03 thinkpad stonking[1149176]: fchownat() of /tmp/.ICE-unix 
failed: Operation not permitted
  Sep 10 11:31:03 thinkpad stonking[1149176]: fchownat() of /tmp/.XIM-unix 
failed: Operation not permitted
  Sep 10 11:31:03 thinkpad stonking[1149176]: fchownat() of /tmp/.font-unix 
failed: Operation not permitted
  Sep 10 11:31:03 thinkpad stonking[1149176]: dpkg: error processing package 
systemd (--configure):
  Sep 10 11:31:03 thinkpad stonking[1149176]:  old systemd package postinst 
maintainer script subprocess failed with exit status 73
  Sep 10 11:31:03 thinkpad stonking[1149176]: Errors were encountered while 
processing:
  Sep 10 11:31:03 thinkpad stonking[1149176]:  systemd
  Sep 10 11:31:03 thinkpad stonking[1149176]: mount: /run/systemd/journal: 
mount point does not exist.
  Sep 10 11:31:03 thinkpad stonking[1149176]:        dmesg(1) may have more 
information after failed mount system call.
  Sep 10 11:31:03 thinkpad stonking[1149176]: mount: /run/systemd/journal: 
mount point does not exist.
  Sep 10 11:31:03 thinkpad stonking[1149176]:        dmesg(1) may have more 
information after failed mount system call.
  Sep 10 11:31:03 thinkpad stonking[1149176]: mount: /run/systemd/resolve: 
mount point does not exist.
  Sep 10 11:31:03 thinkpad stonking[1149176]:        dmesg(1) may have more 
information after failed mount system call.
  Sep 10 11:31:03 thinkpad stonking[1149176]: mount: /run/systemd/resolve: 
mount point does not exist.
  Sep 10 11:31:03 thinkpad stonking[1149176]:        dmesg(1) may have more 
information after failed mount system call.
  Sep 10 11:31:03 thinkpad stonking[1149176]: E: Sub-process /usr/bin/dpkg 
returned an error code (1)
  Sep 10 11:31:03 thinkpad stonking[1149176]: + [ 100 -ne 0 ]
  Sep 10 11:31:03 thinkpad stonking[1149176]: + printf Error: An error 
occurred\n
  Sep 10 11:31:03 thinkpad stonking[1149176]: Error: An error occurred

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2166963

Title:
  systemd postint fails in distrobox

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2166963/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to