KB10042 Could not find a version that satisfies the requirement xhtml2pdf

📚

Documentation

Installation guides, configuration steps, and product documentation.

Explore documentation →

🎧

Support

Create a support request or review your existing cases.

Go to support →

⬇️

Download trial

Download the product trial and try it out.

View downloads →

KB10042 Could not find a version that satisfies the requirement xhtml2pdf

KB ID: 10042

Product: vProtect

Version: 4.3

Published: 2021-09-01

Last modified: 2021-09-01

Problem

Cannot update vProtect to version 4.3 when vProtect don't have access to Internet.

Example of failure during update
Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. vprotect-server-4.3.0-19.el7.x86_64.rpm | 111 MB 00:00:01 Running transaction check Running transaction test Transaction test succeeded Running transaction WARNING: Running pip install with root privileges is generally not a good idea. Try `_main_.py install --user` instead. Collecting xhtml2pdf Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/xhtml2pdf/ Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/xhtml2pdf/ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/xhtml2pdf/ Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/xhtml2pdf/ Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/xhtml2pdf/ Could not find a version that satisfies the requirement xhtml2pdf (from versions: ) No matching distribution found for xhtml2pdf error: %pre(vprotect-server-4.3.0-19.el7.x86_64) scriptlet failed, exit status 1 Error in PREIN scriptlet in rpm package vprotect-server-4.3.0-19.el7.x86_64 Verifying : vprotect-server-4.3.0-19.el7.x86_64 1/2 vprotect-server-4.2.0-34.el7.x86_64 was supposed to be removed but is not! Verifying : vprotect-server-4.2.0-34.el7.x86_64 2/2 Failed: vprotect-server.x86_64 0:4.2.0-34.el7 vprotect-server.x86_64 0:4.3.0-19.el7 Complete!

 

Solution

There will be released vProtect version that will contain missing packages. In the meantime please use this workaround.

The problem has been solved in vProtect version 4.3.0-23

 

Requirements

VM with Internet acces and the same version of OS on which vProtect is installed. Python3-devel package is installed on vProtect VM.

 

Step-by-step solution

On VM with Internet acces create a new directory

mkdir
mkdir xhtml2pdf

Download missing package with its dependencies

pip3 download
pip3 download xhtml2pdf -d "/root/xhtml2pdf/"

Create an archive and copy it to vProtect VM

tar cvfz
tar cvfz xhtml2pdf.tgz xhtml2pdf scp xhtml2pdf.tgz 10.40.1.207:/root/

 

On vProtect machine untar archive that you have just copied

tar xvfz
tar xvfz hxtml2pdf.tgz cd xhtml2pdf

Install missing dependencies

pip3 install
pip3 install * -f ./ --no-index

Now you can update the vProtect installation.