How to upgrade to latest Packer on Ubuntu 22.04 LTS?

Hi. How do I upgrade to latest Packer on Ubuntu 22.04 LTS? When I follow the installation procedure described under Install Packer → Ubuntu/Debian, version 1.6.6 is installed, which doesn’t have the packer init command (introduced in version v1.7.0).