For those who just want a simple solution to this conundrum, write the
following to /usr/local/bin/update-smart-drivedb:

--- snip
#!/bin/bash

(( UID == 0 )) || exec sudo "$0";

wget 
https://raw.githubusercontent.com/smartmontools/smartmontools/master/smartmontools/drivedb.h
--- snip


Then sudo chmod 755 /usr/local/bin/update-smart-drivedb

Bear in mind that you'll need to re-run this script every time you apply
a package update to smartmontools, since that package will overwrite the
downloaded db file.

For the debian package manage: why not make running the script part of
the package install process so that at least it's state-of-the-art at
the moment the package is installed. Surely that would be better than
being 3 years out of date, which necessitates this package being broken
for about 50% of all drives by halfway through a release cycle?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1574894

Title:
  Can't update smartmontools drivedb: /usr/sbin/update-smart-drivedb is
  missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/smartmontools/+bug/1574894/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to