English
Ask Your Question
1

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

asked 2017-08-10 15:56:09 +0000

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 18:59:16.465094

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-08-10 20:21:35 +0000

villykruse gravatar image

updated 2017-08-11 19:30:53 +0000

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 ( 2017-08-11 14:27:27 +0000 )edit

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

villykruse ( 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.

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

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

Follow
1 follower

Stats

Asked: 2017-08-10 15:56:09 +0000

Seen: 30 times

Last updated: Aug 11