Hi @megha007
I presume you must have installed wkhtmltopdf using the sudo apt method.
If so you could remove the version by simply doing
sudo apt remove wkhtmltopdf
Then go to the wkhtmltopdf website and select the package appropriate to you OS version.
To install in Ubuntu 22.04
sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb
sudo cp /usr/local/bin/wkhtmlto* /usr/bin/
sudo chmod a+x /usr/bin/wk*