[Bug 1545707] Re: Error message "Operation failed: No such file or directory" on installing/reconfiguring systemd

Martin Pitt martin.pitt at ubuntu.com
Thu Apr 14 13:43:15 UTC 2016


So this isn't the code path of "Do a one-time migration of the RAMTMP
setting", but the code path of "Re-run systemctl enable for any service
that was enabled when preinst was run", as per the trace in comment 7.

+ read UNIT
+ [ tmp.mount = tmp.mount ]
+ dpkg --compare-versions 229-1ubuntu2 lt-nl 220-6~
+ systemctl enable tmp.mount
Operation failed: No such file or directory
+ true

Obviously $2 is greater than 220-6~, it's "229-1ubuntu2" (see beginning
of the trace), so the if failed on that condition. But as it's in
/run/systemd/was-enabled, it must have been added by "save_is_enabled
tmp.mount" in systemd.preinst.

Can you please give me the output of

  systemctl is-enabled tmp.mount ; echo $?
  sudo systemctl status tmp.mount
  ls -l /etc/systemd/system/tmp.mount

? I think what happens is that tmp.mount is enabled in /run only, not in
/etc/, so this cannot be enabled like that.

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

Title:
  Error message "Operation failed: No such file or directory" on
  installing/reconfiguring systemd

Status in systemd package in Ubuntu:
  Incomplete

Bug description:
  I'm using Ubuntu 16.04 dev with systemd 229-1ubuntu2 and on
  installing/reconfiguring it I'm getting this output (the first error
  has already its own bug report here:
  https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1475094 ):

  root at ubuntu:~# dpkg-reconfigure systemd
  addgroup: The group `systemd-journal' already exists as a system group. Exiting.
  Operation failed: No such file or directory

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



More information about the foundations-bugs mailing list