Decompression Failure During Software Package Installation

Symptom

During software package installation, a decompression failure message is displayed, and the installation is terminated. The following is an example of the error message:

Extraction failed.
... Decompressin failed.

Possible Causes

Common OSs provide the tar command. Therefore, this document provides only the procedure for installing dependencies in minimal mode. However, the tar command may not be installed by default in some simplified OS images. As a result, the CANN software installation is terminated.

Solution

Install the missing dependency:
  • Debian, Ubuntu, and veLinux:
    1
    apt-get install -y tar
    
  • openEuler, CentOS, Kylin, BC-Linux, UOS, AntOS, CTyunOS, CULinux, Tlinux, MTOS, vesselOS:
    1
    yum install -y tar