Overview
When installing or upgrading Kerio Connect Server using an RPM file, it fails with the error:
error: unpacking of archive failed on file /opt/kerio/mailserver/<file name>;
5fce1ead: cpio: read failed - No such file or directory
error: kerio-connect-x.y.z.abcd.x86_64: install failed
Solution
- This often happens when the RPM file that was downloaded is corrupt or wasn't downloaded completely. Download the same file again from the Kerio Connect website and then perform the install.
- (For advanced users) An alternative way to download the RPM file is to use the
curl
command:curl -o ./KC9.3.0P2.rpm https://cdn.kerio.com/dwn/connect/connect-9.3.0-5349/kerio-connect-9.3.0-5349-p2-linux-x86_64.rpm
This command shows all the information related to the file being downloaded - total file size, a percentage counter towards the total, time left, etc., ensuring that the file is downloaded completely to the local fileKC9.3.0P2.rpm
:
user@kerio-appliance:~$ curl -o ./KC9.3.0P2.rpm https://cdn.kerio.com/dwn/connect/connect-9.3.0-5349/kerio-connect-9.3.0-5349-p2-linux-x86_64.rpm
You can get the RPM file name to download from the previous corrupt file that was downloaded and accordingly build the complete path as per the required version.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
13 221M 13 28.7M 0 0 576k 0 0:06:32 0:00:51 0:05:41 535k