update-smart-drivedb uses old download link
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
smartmontools (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Andreas Hasenack |
Bug Description
[Impact]
Updating the smart driver db fails because the tool selected by the script (curl) is not called with a parameter that allows it to follow redirects. Since upstream changed the URL for that driver file, the script now fails.
The fix is to just add -L to the curl command line.
[Test Case]
$ sudo apt-get install smartmontools --no-install-
$ sudo update-
/var/lib/
The file /var/lib/
<h1>302 Found</h1>
The resource was found at <a href="https:/
you should be redirected automatically.
Update the packages and run the command again, this time it will succeed:
$ sudo update-
/var/lib/
[Regression Potential]
If there is a redirect loop, before it wouldn't be followed, and now it will. There is a default limit of 50, though (--max-redirs' default), so eventually it will stop and fail (correctly).
[Other Info]
Later supported releases of Ubuntu and Debian have dropped this script from the package, so no fix is necessary there.
Following the spirit of the smallest change possible, I chose to not change the URL from where the file is downloaded.
[Original Description]
Package: smartmontools-
Due to sourceforge platform upgrades (http://
Possible fix:
- Update to smartmontools 6.2 (final, r3841), or
- Replace update-
Related branches
- Christian Ehrhardt (community): Approve
- Canonical Server: Pending requested
-
Diff: 50 lines (+28/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/curl-follow-redirects.patch (+20/-0)
debian/patches/series (+1/-0)
Changed in smartmontools (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Medium |
Changed in smartmontools (Ubuntu Trusty): | |
status: | Triaged → In Progress |
assignee: | nobody → Andreas Hasenack (ahasenack) |
description: | updated |
description: | updated |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.