As per Support Matrices HDF 3.1 is supported with Ubuntu16 as well as Ubuntu 14:
So you can find the Ubuntu 16 RPMs adn repo here:
For HDF 3.0
Looks like the stack is available but the doc does not have a direct link to it: https://docs.hortonworks.com/HDPDocuments/HDF3/HDF-3.0.2/bk_release-notes/content/ch_hdf_relnotes.ht...
So please try changing the URL and replace ubuntu14 with ubuntu16 as following:
Notice i have replaced "ubuntu14" to "ubuntu16" in the above URL and it allowed me to download.
Similarly for Mpack: