Anaconda3 安装报错 bunzip2: command not found

本文详细解析了在安装Anaconda3-5.3.1-Linux-x86_64.sh过程中遇到的“bunzip2: command not found”错误,并提供了解决方案。通过分析发现,这是由于系统中缺少bunzip2包导致的。文章指导读者如何使用yum命令正确安装bzip2包,从而解决了安装过程中的报错问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

报错信息

Anaconda3-5.3.1-Linux-x86_64.sh: line 353: bunzip2: command not found
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors

解决方法和原因

由于系统缺少bunzip2包造成的,通过yum安装bzip2包来解决

yum install bzip2

分析和解决过程

可能是由于缺少bunzip2包导致的,先尝试安装这个包:

[root@localhost ~]# yum install bunzip2
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
No package bunzip2 available.
Error: Nothing to do

发现没找到这个包。百度下这个包:

  • bunzip2,.bz2文件的解压缩程序。可解压缩.bz2格式的压缩文件。bunzip2实际上是bzip2的符号连接,执行bunzip2bzip2 -d的效果相同

再次尝试bzip2包名

[root@localhost ~]# yum install bzip2
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package bzip2.x86_64 0:1.0.6-13.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
 Package          Arch              Version                  Repository       Size
===================================================================================
Installing:
 bzip2            x86_64            1.0.6-13.el7             base             52 k

Transaction Summary
===================================================================================
Install  1 Package

Total download size: 52 k
Installed size: 82 k
Is this ok [y/d/N]: y
Downloading packages:
bzip2-1.0.6-13.el7.x86_64.rpm                               |  52 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : bzip2-1.0.6-13.el7.x86_64                                       1/1
  Verifying  : bzip2-1.0.6-13.el7.x86_64                                       1/1

Installed:
  bzip2.x86_64 0:1.0.6-13.el7

Complete!

再次安装,没有报错,解决该错误。

转载于:https://www.cnblogs.com/linga/p/10220414.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值