You are not logged in.

#1 2020-04-08 18:01:00

Talvi
Member
Registered: 2020-04-08
Posts: 7

[SOLVED] Pacman install: Creating temporary files error

Hello,

I have the same problem as these people: (1), (2), (3), namely, sometimes, when I install a package, I get the following output:

LC_ALL=C pacman -S opendkim
warning: opendkim-2.10.3-5 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) opendkim-2.10.3-5

Total Installed Size:  1.01 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                  [##################################] 100%
(1/1) checking package integrity                                [##################################] 100%
(1/1) loading package files                                     [##################################] 100%
(1/1) checking for file conflicts                               [##################################] 100%
(1/1) checking available disk space                             [##################################] 100%
:: Processing package changes...
(1/1) reinstalling opendkim                                     [##################################] 100%
:: Running post-transaction hooks...
(1/4) Creating system user accounts...
(2/4) Reloading system manager configuration...
(3/4) Creating temporary files...
error: command failed to execute correctly
(4/4) Arming ConditionNeedsUpdate...

This part here irritates me, because everything seems to work fine, but I get this error anyway:

(3/4) Creating temporary files...
error: command failed to execute correctly

I read the referenced forum posts, but I couldn't figure out the solution, to get rid of that error (maybe I was just blind? If that is the case: sorry for the repost…).

Here is the associated part of pacman.log:

[2020-04-08T19:25:55+0200] [PACMAN] Running 'pacman -S opendkim'
[2020-04-08T19:25:57+0200] [ALPM] transaction started
[2020-04-08T19:25:57+0200] [ALPM] reinstalled opendkim (2.10.3-5)
[2020-04-08T19:25:57+0200] [ALPM] transaction completed
[2020-04-08T19:25:57+0200] [ALPM] running '20-systemd-sysusers.hook'...
[2020-04-08T19:25:57+0200] [ALPM] running '30-systemd-daemon-reload.hook'...
[2020-04-08T19:25:57+0200] [ALPM] running '30-systemd-tmpfiles.hook'...
[2020-04-08T19:25:57+0200] [ALPM] running '30-systemd-update.hook'...

How do I fix this?

Thank you in advance for your help!

Last edited by Talvi (2020-04-08 22:56:34)

Offline

#2 2020-04-08 18:09:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Pacman install: Creating temporary files error


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2020-04-08 18:14:33

Talvi
Member
Registered: 2020-04-08
Posts: 7

Re: [SOLVED] Pacman install: Creating temporary files error

Oops, sorry I updated my post

Offline

#4 2020-04-08 18:15:36

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Pacman install: Creating temporary files error

Are you in a chroot? Please provide details of your setup.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2020-04-08 18:42:51

Talvi
Member
Registered: 2020-04-08
Posts: 7

Re: [SOLVED] Pacman install: Creating temporary files error

No, this is a headless server setup, currently without chroot in use. I don't know, what details are relevant. The system is up-to-date (Kernel 5.6.2-arch1-2), pacman version is 5.2.1-4. This error occurs during most, but not all installation procedures... a few months ago, pacman was unintentionally uninstalled and reinstalled manually, maybe this reinstallation process was not complete, but it works reliably, except for that error message…

Last edited by Talvi (2020-04-08 18:43:59)

Offline

#6 2020-04-08 18:49:36

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [SOLVED] Pacman install: Creating temporary files error

What is the output of

# SYSTEMD_LOG_LEVEL=debug LC_ALL=C systemd-tmpfiles --create

Offline

#7 2020-04-08 19:17:37

Talvi
Member
Registered: 2020-04-08
Posts: 7

Re: [SOLVED] Pacman install: Creating temporary files error

Offline

#8 2020-04-08 19:25:14

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [SOLVED] Pacman install: Creating temporary files error

No seeing an issue in the output.  Is the issue present at the moment

# bash -c 'systemd-tmpfiles --create ; echo $?'

Offline

#9 2020-04-08 19:34:33

Talvi
Member
Registered: 2020-04-08
Posts: 7

Re: [SOLVED] Pacman install: Creating temporary files error

loqs wrote:

# bash -c 'systemd-tmpfiles --create ; echo $?'

This outputs:

Failed to open directory 'rspamd': Not a directory
73

but this seems like an other issue…

Offline

#10 2020-04-08 19:36:53

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [SOLVED] Pacman install: Creating temporary files error

No that is the cause.

Running create action for entry d /var/log/rspamd
Found existing directory "/var/log/rspamd".
Failed to open directory 'rspamd': Not a directory

What is /var/log/rspamd

LC_ALL=C file /var/log/rspamd

Last edited by loqs (2020-04-08 19:38:42)

Offline

#11 2020-04-08 20:03:00

Talvi
Member
Registered: 2020-04-08
Posts: 7

Re: [SOLVED] Pacman install: Creating temporary files error

Uhm okay, strange, it is a file:

/var/log/rspamd: UTF-8 Unicode text, with very long lines

Offline

#12 2020-04-08 20:37:34

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [SOLVED] Pacman install: Creating temporary files error

If you rename the file does that fix the issue?

Offline

#13 2020-04-08 21:38:51

Talvi
Member
Registered: 2020-04-08
Posts: 7

Re: [SOLVED] Pacman install: Creating temporary files error

Wow… yes, i renamed the file to

rspamd.log

and now, the error is gone. I wonder why the name for a log file affects the package manager in that way, bit this is an issue for its own. Thank you very much for your help!

Offline

Board footer

Powered by FluxBB