Ask Your Question
1

Update for man-db 2.7.5-3.fc25 fails [closed]

asked 2017-08-10 10:56:09 -0500

edwardc01 gravatar image

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 flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by edwardc01
close date 2017-08-20 13:59:16.465094

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-08-10 15:21:35 -0500

villykruse gravatar image

updated 2017-08-11 14:30:53 -0500

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.

edit flag offensive delete link more

Comments

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.

edwardc01 gravatar imageedwardc01 ( 2017-08-11 09:27:27 -0500 )edit

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

villykruse gravatar imagevillykruse ( 2017-08-11 14:33:10 -0500 )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.

edwardc01 gravatar imageedwardc01 ( 2017-08-12 09:00:44 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-08-10 10:56:09 -0500

Seen: 35 times

Last updated: Aug 11 '17