The Glassfish Java application server comes with a number of tools, including pkg. Unfortunately, pkg is a 32 bit Python application and almost all of us run 64 bit systems. So you need a couple of compatibility libraries to run the tool. Here’s how you do that on Ubuntu 16.04.