In 16.04 beta you only need to have the package libnghttp2-dev as a build-dep, download the ubuntu package source, recompile and installed the newly created package.
$ sudo apt-get build-dep curl
$ sudo apt-get install libnghttp2-dev
$ sudo apt-get source curl
$ sudo debian/rules binary
$ sudo dpkg -i *deb
(actually, you can only install the nss, gnutls or openssl version of the lib package. Let's go with openssl here)
In 16.04 beta you only need to have the package libnghttp2-dev as a build-dep, download the ubuntu package source, recompile and installed the newly created package.
$ sudo apt-get build-dep curl
$ sudo apt-get install libnghttp2-dev
$ sudo apt-get source curl
$ sudo debian/rules binary
$ sudo dpkg -i *deb
(actually, you can only install the nss, gnutls or openssl version of the lib package. Let's go with openssl here)
$ curl --http2 -I nghttp2.org
HTTP/1.1 101 Switching Protocols
Connection: Upgrade
Upgrade: h2c
HTTP/2.0 200 type:text/ html 19f6" stylesheets/ screen. css>; rel=preload; as=stylesheet header- rtt:0.00102 options: SAMEORIGIN type-options: nosniff
date:Fri, 08 Apr 2016 22:19:10 GMT
content-
content-length:6646
last-modified:Sun, 03 Apr 2016 06:53:14 GMT
etag:"5700bdda-
link:</
accept-ranges:bytes
x-backend-
server:nghttpx nghttp2/1.10.0-DEV
via:2 nghttpx
x-frame-
x-xss-protection:1; mode=block
x-content-