缺少方案 linux wget

Scheme missing linux wget

尝试在 Ubuntu 18.04 上安装 Odoo 时,我 运行 在 运行 执行以下命令后出现错误:

sudo wget -O wkhtmltox.tar.xz \ https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

错误说

 https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz: Scheme missing 

如果你知道我的问题的答案,请帮助我!

您可以在以下位置找到所有版本: https://github.com/wkhtmltopdf/wkhtmltopdf/releases

由于 https:// 之前的额外 \,您的命令失败。试试这个:

sudo wget -O wkhtmltox.tar.xz https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

仅供参考,wkhtmltopdf 有一些问题似乎在 0.12.5 等早期版本中已解决 请参阅错误参考:

https://github.com/odoo/odoo/issues/19160

https://github.com/wkhtmltopdf/wkhtmltopdf/issues/2711#issuecomment-389429960