Availability of Ubuntu 22.04LTS support with Lauchpad PPA

Is there going to be an update for the Launchpad PPA for openkim on Ubuntu 22.04LTS?
I was trying to build a singularity container adapted from Ubuntu 20.04LTS today, but am seeing some unusual errors (quoted below). In my very limited Ubuntu experience that looks like the repo for this version is not (yet) initialized. Any suggestions for workarounds would be welcome.

+ add-apt-repository ppa:openkim/latest
Repository: 'deb https://ppa.launchpadcontent.net/openkim/latest/ubuntu/ jammy main'
Latest releases of kim-api and openkim-models
More info: https://launchpad.net/~openkim/+archive/ubuntu/latest
Adding repository.
Adding deb entry to /etc/apt/sources.list.d/openkim-ubuntu-latest-jammy.list
Adding disabled deb-src entry to /etc/apt/sources.list.d/openkim-ubuntu-latest-jammy.list
Adding key to /etc/apt/trusted.gpg.d/openkim-ubuntu-latest.gpg with fingerprint A5E1187F047C159C83981FA42C301800CBF334E1
gpg: error running '/usr/bin/gpg-agent': probably not installed
gpg: failed to start agent '/usr/bin/gpg-agent': Configuration error
gpg: can't connect to the agent: Configuration error
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/softwareproperties/shortcuthandler.py", line 423, in add_key
    subprocess.run(cmd.split(), check=True, input=keys)
  File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['gpg', '-q', '--no-options', '--no-default-keyring', '--batch', '--keyring', '/etc/apt/trusted.gpg.d/openkim-ubuntu-latest.gpg', '--homedir', '/tmp/tmpcuf77tzp', '--import']' returned non-zero exit status 2.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 364, in <module>
    sys.exit(0 if addaptrepo.main() else 1)
  File "/usr/bin/add-apt-repository", line 357, in main
  File "/usr/lib/python3/dist-packages/softwareproperties/shortcuthandler.py", line 222, in add
  File "/usr/lib/python3/dist-packages/softwareproperties/shortcuthandler.py", line 425, in add_key
    raise ShortcutException(e)
softwareproperties.shortcuthandler.ShortcutException: Command '['gpg', '-q', '--no-options', '--no-default-keyring', '--batch', '--keyring', '/etc/apt/trusted.gpg.d/openkim-ubuntu-latest.gpg', '--homedir', '/tmp/tmpcuf77tzp', '--import']' returned non-zero exit status 2.
FATAL:   While performing build: while running engine: exit status 1

Hi Axel,

Thanks for the request. The PPA has been updated to include builds for jammy (22.04).
Please let me know if you run into further problems.


Thanks Ryan.

Unfortunately the quoted error persists. Did anything change with how to include the PPA or how to refer to the latest build of the KIM-API?

Hi Axel,

It looks like you need to have the gpg and gpg-agent packages to be installed.

Indeed. This is a bit surprising, because it wasn’t required with previous Ubuntu versions. Probably the gpg packages were removed from one of the “recommended” packages for one of the collections that are installed into the container before adding the PPA.
Had to comment out a couple of gzip commands where files are no longer compressed in the package, too.

But I finally was able to complete the container build and the singularity definition files for the next release (and thus also the upcoming stable release) will include the openkim-api packages by default.

Thanks a lot!