This usually happens when Suricata is upgraded, but libhtp was not, but this usually doesn’t happen with the PPA, and your output looks good. Or there was an existing from source installation, and new install from packages or some other format.
Without more input from someone who knows more about the PPA, and packaging on Ubuntu (I unfortunately don’t), I’d try the following:
remove Suricata with apt
Run find /usr/lib* | grep htp, if libhtp is still there delete it.
Run find /usr/local/lib* | grep htp, again, remove if libhtp is there
Or maybe someone else will jump in. All I can confirm is that on a fresh Ubuntu 24.04 install, the PPA appears to install fine.