1、删除当前旧版本:
apt-get remove wkhtmltopdf
2、进入官网https://wkhtmltopdf.org/downloads.html,根据具体情况下载符合版本
这里我下载的是最新的12.6.1版本
3、下载好后上传服务器,使用命令进行安装
sudo dpkg -i wkhtmltox_0.12.6-1.xenial_amd64.deb
安装的过程中可能会出现类似以下错误:
我们执行:
sudo apt-get -f -y install
完成后继续进行deb文件的安装:
sudo dpkg -i wkhtmltox_0.12.6-1.xenial_amd64.deb
安装完成后我们重启odoo服务:
sudo systemctl restart odoo
到这里就已经解决了