报错信息
Anaconda3-5.3.1-Linux-x86_64.sh: line 353: bunzip2: command not foundtar: This does not look like a tar archivetar: Exiting with failure status due to previous errors
解决方法和原因
由于系统缺少bunzip2
包造成的,通过yum安装bzip2
包来解决
yum install bzip2
分析和解决过程
可能是由于缺少bunzip2
包导致的,先尝试安装这个包:
[root@localhost ~]# yum install bunzip2Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.comNo package bunzip2 available.Error: Nothing to do
发现没找到这个包。百度下这个包:
- bunzip2,.bz2文件的解压缩程序。可解压缩.bz2格式的压缩文件。bunzip2实际上是bzip2的符号连接,执行
bunzip2
与bzip2 -d
的效果相同
再次尝试bzip2
包名
[root@localhost ~]# yum install bzip2Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.comResolving Dependencies--> Running transaction check---> Package bzip2.x86_64 0:1.0.6-13.el7 will be installed--> Finished Dependency ResolutionDependencies Resolved=================================================================================== Package Arch Version Repository Size===================================================================================Installing: bzip2 x86_64 1.0.6-13.el7 base 52 kTransaction Summary===================================================================================Install 1 PackageTotal download size: 52 kInstalled size: 82 kIs this ok [y/d/N]: yDownloading packages:bzip2-1.0.6-13.el7.x86_64.rpm | 52 kB 00:00:00Running transaction checkRunning transaction testTransaction test succeededRunning transaction Installing : bzip2-1.0.6-13.el7.x86_64 1/1 Verifying : bzip2-1.0.6-13.el7.x86_64 1/1Installed: bzip2.x86_64 0:1.0.6-13.el7Complete!
再次安装,没有报错,解决该错误。