You are not logged in.

#1 2017-11-30 00:14:25

DimitrisLol
Member
Registered: 2016-06-19
Posts: 20

pacman error

Hello guys.On a new arch installation on my laptop i noticed that after trying to remove some packages i get this error:

:: Running pre-transaction hooks...
(1/1) Removing old entries from the info directory file...
error: command failed to execute correctly

It seems to appear at random packages or times(cant be sure if its package fault or something in the system) and i am not able to find anything in google about the particular hook.pacman log seems to be "clean" and even transactions where the error appeared are logged as completed.Any ideas what it might be?

Offline

#2 2017-11-30 00:20:23

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: pacman error

The error is generated by /usr/share/libalpm/hooks/texinfo-remove.hook

[Trigger]
Type = File
Operation = Remove
Target = usr/share/info/*

[Action]
Description = Removing old entries from the info directory file...
When = PreTransaction
Exec = /bin/sh -c 'while read -r f; do install-info --delete "$f" /usr/share/info/dir 2> /dev/null; done'
NeedsTargets

Not sure if that helps you troubleshoot.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-11-30 00:50:45

DimitrisLol
Member
Registered: 2016-06-19
Posts: 20

Re: pacman error

And here's the culprit

NoExtract = usr/share/info/*

Thanks a lot!!!

Offline

#4 2017-11-30 02:42:06

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: pacman error

Hmm, that sounds like it should be a bug, maybe NoExtract files shouldn't trigger hooks.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2017-11-30 03:06:01

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: pacman error

Or maybe the texinfo hook should hide the return value, it will only represent the success for the last file anyways.

while read -r f; do ... ... ; done; exit 0

Last edited by progandy (2017-11-30 03:07:04)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

Board footer

Powered by FluxBB