[arch-general] [ Pacman -Syu ] Creating temporary files..., error: command failed to execute correctly

Ralph Corderoy ralph at inputplus.co.uk
Sat Sep 7 13:07:22 UTC 2019


Dear Xianwen,

> :: Running post-transaction hooks...
...
> (5/9) Creating temporary files...
> error: command failed to execute correctly
> (6/9) Reloading device manager configuration...

Here's the path I trod to investigate this.

    $ cd /usr/share/libalpm/hooks
    $ grep 'Creating temporary files' *
    systemd-tmpfiles.hook:Description = Creating temporary files...
    $
    $ cat systemd-tmpfiles.hook
    [Trigger]
    Type = File
    Operation = Install
    Operation = Upgrade
    Target = usr/lib/tmpfiles.d/*.conf

    [Action]
    Description = Creating temporary files...
    When = PostTransaction
    Exec = /usr/share/libalpm/scripts/systemd-hook tmpfiles
    $
    $ file /usr/share/libalpm/scripts/systemd-hook
    /usr/share/libalpm/scripts/systemd-hook: POSIX shell script, ASCII text executable
    $
    $ grep -1 tmpfiles /usr/share/libalpm/scripts/systemd-hook
      sysusers) /usr/bin/systemd-sysusers ;;
      tmpfiles) /usr/bin/systemd-tmpfiles --create ;;

    $
    $ man systemd-tmpfiles
    ...
    DESCRIPTION
	   systemd-tmpfiles creates, deletes, and cleans up volatile and
	   temporary files and directories, based on the configuration file
	   format and location specified in tmpfiles.d(5).

    $ man 5 tmpfiles.d
    ...
    SYNOPSIS
	   /etc/tmpfiles.d/*.conf
	   /run/tmpfiles.d/*.conf
	   /usr/lib/tmpfiles.d/*.conf

	   ~/.config/user-tmpfiles.d/*.conf
	   $XDG_RUNTIME_DIR/user-tmpfiles.d/*.conf
	   ~/.local/share/user-tmpfiles.d/*.conf
	   ...
	   /usr/share/user-tmpfiles.d/*.conf

So one of the *.conf files in those directory is triggering that error.
systemd-tmpfiles(8) says one or more *.conf files can be given after
‘--create’ so I suggest running it on each in turn to see if the
error still occurs for one of them.  This may required sudo(8).

-- 
Cheers, Ralph.


More information about the arch-general mailing list