I've been stuck with the same issue for days, but the cause was something else.
Default odoo uses non-patched wkhtmltopdf.
This causes issues on newer systems.
The patched version on it's turn requires libssl1.1 (not libssl3), which is also not by default available in recent ubuntu server versions.
Steps to solve:
Remove current installation:
sudo apt remove --purge wkhtmltopdf
Download and install libssl1.1
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.debsudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb
Download and install qkhtmltopdf (with patched Qt)
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
sudo apt install ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb
This solved it on my side!