Fail install on CentOS7

It show

Running transaction
Installing : 1:wkhtmltox-0.12.2.1-1.x86_64 1/1
Error unpacking rpm package 1:wkhtmltox-0.12.2.1-1.x86_64
error: unpacking of archive failed on file /usr/local/bin/wkhtmltopdf: cpio: rename
Verifying : 1:wkhtmltox-0.12.2.1-1.x86_64 1/1

Failed:
wkhtmltox.x86_64 1:0.12.2.1-1

can everyone help me

ok i can solve it by my self

1 download wkhtml to my windows computer
http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm

2 extract wkhtmltox-0.12.2.1_linux-centos7-amd64.rpm by winzip

3 copy all file that extract to linux computer

4 edit setup_frappe.sh comment ### don’t download and install wkhtmltox again

vi setup_frappe.sh

install_wkhtmltopdf_centos () {

    if [[ $OS == "centos" && $OS_VER == "7" && $T_ARCH == "i386" ]]; then
            echo "Cannot install wkhtmltodpdf. Skipping..."
            return 0
    fi
    RPM="wkhtmltox-0.12.2.1_linux-$OS$OS_VER-$WK_ARCH.rpm"

run_cmd wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/$RPM

rpm --quiet -q wkhtmltox || run_cmd rpm -Uvh $RPM

5 save and run

bash setup_frappe.sh --setup-production

I get the fail on ubuntu servers, on centos 7 its a clean install so far. But if its wkhtmltopdf that fails in any case, you can always manually install.

Just pull the install file to the server and run the command to install deb files