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 date:Fri, 08 Apr 2016 22:19:10 GMT content-type:text/html content-length:6646 last-modified:Sun, 03 Apr 2016 06:53:14 GMT etag:"5700bdda-19f6" link:</stylesheets/screen.css>; rel=preload; as=stylesheet accept-ranges:bytes x-backend-header-rtt:0.00102 server:nghttpx nghttp2/1.10.0-DEV via:2 nghttpx x-frame-options:SAMEORIGIN x-xss-protection:1; mode=block x-content-type-options:nosniff -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to curl in Ubuntu. https://bugs.launchpad.net/bugs/1567697 Title: libcurl is missing http2 support Status in curl package in Ubuntu: Confirmed Bug description: libcurl supports HTTP/2.0 through libnghttp2, but the package on Ubuntu is not compiled with it. Alternatively, a libcurl4-(gnutls|openssl)-nghttp2 might be a good idea. See also: https://curl.haxx.se/docs/http2.html curl CLI tool should not need an update, as it already has the commandline switches, but when you use them it comes back with unsupported protocol. drwilco@eris:~$ curl --http2 www.google.com curl: (1) Unsupported protocol drwilco@eris:~$ lsb_release -rd Description: Ubuntu Xenial Xerus (development branch) Release: 16.04 root@eris:~# apt-cache policy libcurl3 libcurl3: Installed: 7.47.0-1ubuntu2 Candidate: 7.47.0-1ubuntu2 Version table: *** 7.47.0-1ubuntu2 500 500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages 100 /var/lib/dpkg/status To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/curl/+bug/1567697/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp