How to get Certbot 0.22 on Apache Ubuntu 17.04

Ubuntu 17.04 is EOL since January 2018, since it is not an LTS release. You should upgrade to 17.10.

The version available on the Ubuntu PPA for 17.10 as of today is 0.21. I believe that 0.22 is coming to the PPA soon but not here yet.

In the meantime, check this thread out that provides a couple of solutions: