English

# Update for man-db 2.7.5-3.fc25 fails

The 8/10 fedora 25 update for man-db 2.7.5-3.fc25 fails with the following errors:

Failed to stop man-db.timer: Unit man-db.timer not loaded. Failed to disable unit: No such file or directory error: %prein(man-db-2.7.5-3.fc25.x86_64) scriptlet failed, exit status 1 Error in PREIN scriptlet in rpm package man-db Error in PREIN scriptlet in rpm package man-db

Any help on how to troubleshoot and fix would be appreciated.

Thanks

edit retag close merge delete

Sort by » oldest newest most voted

This is strange. The script reads:

preinstall scriptlet (using /bin/sh):
if [ -e /usr/lib/systemd/system/mandb.timer ]; then
if test -d /run/systemd; then
systemctl stop man-db.timer
systemctl -q disable man-db.timer
fi
fi


Which means, if mandb.timer does not exist then the script would do nothing. If it doe exist, then it should be loaded and it should be possible to run the systemctl -q disable man-db.timer command.

Do run:

systemctl daemon-reload
systemctl status mandb.timer
systemctl disable man-db.timer


And see what you get. If worse comes to worse, you can always remove the file /usr/lib/systemd/system/mandb.timer, and try to update again.

It seems that it had been desided not to have a mandb.timer service any more and instead use cron.daily. This is provided by the package man-db-cron.

more

I was able to get the update to run by renaming the /usr/lib/systemd/system/mandb.timer. However I don't have a cron.daily script related to mandb. Should I now have one? I guess I don't understand what mandb.timer does. My thought was that it ran some mandb command that kept the man pages current but I'm not sure. It would seem that I need a cron.daily job.

Thanks for your help and explanation.

( 2017-08-11 14:27:27 +0000 )edit

The package "man-db-cron" will provide "/etc/cron.daily/man-db.cron",

( 2017-08-11 19:33:10 +0000 )edit

Well as you can tell I completely ignored part of your answer (can't see the forest for the trees). But thanks again for the well written but poorly read explanation. The way you answered is exactly why we need a site like this.

( 2017-08-12 14:00:44 +0000 )edit

[hide preview]