Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#53138 - ambiguous error message: error: command failed to execute properly

Attached to Project: Pacman
Opened by Damian Nowak (Nowaker) - Thursday, 02 March 2017, 04:35 GMT
Task Type Bug Report
Category General
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 5.0.1
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 2
Private No

Details

Long story short, this is the output from today:

```
:: Synchronizing package databases...
(...)
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (2) Old Version New Version Net Change Download Size

extra/screen 4.5.0-2 4.5.1-1 -0.13 MiB 0.40 MiB
community/youtube-dl 2017.02.24-1 2017.02.28-1 0.05 MiB 1.79 MiB

Total Download Size: 2.20 MiB
Total Installed Size: 11.22 MiB
Net Upgrade Size: -0.08 MiB

:: Proceed with installation? [Y/n]
:: Retrieving packages...
screen-4.5.1-1-x86_64 412.8 KiB 270K/s 00:02 [#############################################################################] 100%
youtube-dl-2017.02.28-1-any 1836.9 KiB 557K/s 00:03 [#############################################################################] 100%
(2/2) checking keys in keyring [#############################################################################] 100%
(2/2) checking package integrity [#############################################################################] 100%
(2/2) loading package files [#############################################################################] 100%
(2/2) checking for file conflicts [#############################################################################] 100%
(2/2) checking available disk space [#############################################################################] 100%
:: Running pre-transaction hooks...
(1/1) Removing old entries from the info directory file...
:: Processing package changes...
(1/2) upgrading screen [#############################################################################] 100%
(2/2) upgrading youtube-dl [#############################################################################] 100%
:: Running post-transaction hooks...
(1/3) Creating temporary files...
(2/3) Arming ConditionNeedsUpdate...
(3/3) Updating the info directory file...
error: command failed to execute correctly
```

That was during post-transaction hooks so generally everything seems to be in order. But the error message itself is very ambiguous. Can't really what package this failed post-transaction hook belonged to. Error message could be more informative. E.g. "youtube-dl: error: command failed to execute correctly" would be much better.
This task depends upon

Comment by Allan McRae (Allan) - Thursday, 02 March 2017, 04:41 GMT
It belong to the hook that is "Updating the info directory file..." - the line right above it.
Comment by Andrew Gregory (andrewgregory) - Thursday, 02 March 2017, 07:35 GMT
Also, hooks *may* be provided by packages, but they do not "belong to" packages.
Comment by Eli Schwartz (eschwartz) - Wednesday, 13 December 2017, 21:55 GMT
Would it be better to also show the Exec line of the hook? But users can look up the hook if they want...

Should we exceptionally show the stdin for hooks that specify NeedsTargets, since that cannot be looked up in the hook? I'm not sure what the UI for that would look like...

Anyway, any hook can implement this within the command that is run.
Comment by Neil Romig (nromig) - Friday, 15 December 2017, 07:08 GMT
I also get this message right after ":: Processing package changes..." on one package
Comment by mearon (mearon) - Tuesday, 06 February 2018, 01:45 GMT
I got this error two weeks ago on a fairly new and clean arch install.
In the middle of creating the fallback initramfs image it just quit abruptly.

Maybe related:
My journal shows around this time (seconds are not displayed in /var/log/pacman.log):
dbus-daemon[373]: [system] Reloaded configuration
dbus-daemon[373]: [system] Reloaded configuration
dbus-daemon[373]: [system] Reloaded configuration
dbus-daemon[373]: [system] Reloaded configuration

I wonder what caused this error, I ran 'mkinitcpio -p linux' right after pacman finished the other hooks and it ran fine.

Loading...