.apkg installer is actually a shell script joined with archive that contains agent file. If you do
head nxagent-5.2.6-linux-x86_64.apkg -n 118
you'll see the contents of the script.
I've tried to install it Ubuntu 24 Server, did not get the result that you are observing.
.apkg installer writes log file to /tmp/nxagentupdate.log. If you can repeat the installation, can you share that file?