1

When upgrading the watchdog package, apt-get upgrade does not complete.

If fails with the following error:

watchdog /run/udev or .udevdb or .udev presence implies active udev.  
Aborting MAKEDEV invocation.

I am running sysVinit, however due to Debian changes, I am running udev, and the daemon /lib/systemd/systemd-udevd is running.

Why this error?

2

Looking at the relevant code at /var/lib/dpkg/info/watchdog.postinst, it shows it checks for the presence of the MAKEDEV script.

 if [ -x "`which MAKEDEV`" ]; then
        ...
        # do we have to create the temperature device?
        if [ ! -c /dev/temperature ]
        then
            (cd /dev; MAKEDEV misc || true)
        fi

The solution to be able to finish the upgrade of the watchdog package is to delete the makedev package, as it is redundant with udev.

dpkg --purge makedev

After deleting the makedev, running at-get upgrade seems to be able to finish.

  • It's weird that you don't have a /dev/watchdog device (populated by udev)... – Stephen Kitt Jan 31 '17 at 21:47
  • @StephenKitt I do not have a /dev/temperature, let me change the example... – Rui F Ribeiro Jan 31 '17 at 21:53
  • Ah yes, that makes more sense! Still, this doesn't explain the apt-get upgrade failure — MAKEDEV exits with 0 in this case to avoid breaking postinst scripts (and has done since March 2005). – Stephen Kitt Jan 31 '17 at 22:01
  • I will try to setup a VM tomorrow to test this out again. – Rui F Ribeiro Jan 31 '17 at 22:03
  • This could be an instance of #772826. – Stephen Kitt Jan 31 '17 at 22:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.