重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 636|回复: 0
打印 上一主题 下一主题

[基础命令] tar (child): bzip2: Cannot exec: No such file or directory

[复制链接]
跳转到指定楼层
楼主
发表于 2023-1-13 18:00:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
执行:
[oracle@orcl orcl]$ tar -cjf trace.tar.gz trace/

错误:
tar (child): bzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now



解决方案:
安装bzip2包
[root@orcl orcl]# yum install bzip2 -y
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
c7-media                                                                                                                                                                             | 3.6 kB  00:00:00     
Determining fastest mirrors
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                                           c7-media                                          52 k

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

Total download size: 52 k
Installed size: 82 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
** Found 22 pre-existing rpmdb problem(s), 'yum check' output follows:
libaio-0.3.109-13.el7.x86_64 is a duplicate with libaio-0.3.105-2.i386
libaio-devel-0.3.109-13.el7.x86_64 is a duplicate with libaio-devel-0.3.105-2.i386
libgcc-4.8.5-36.el7.x86_64 is a duplicate with libgcc-3.4.6-3.i386
unixODBC-devel-2.2.11-7.1.i386 has missing requires of libboundparam.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of libesoobS.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of libgtrtst.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of libmimerS.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of libnn.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of libodbccr.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of libodbcdrvcfg1S.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of libodbcdrvcfg2S.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of libodbcinst.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of libodbcminiS.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of libodbcnnS.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of libodbctxtS.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of liboplodbcS.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of liboraodbcS.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of libsapdbS.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of libtdsS.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of libtemplate.so.1
unixODBC-devel-2.2.11-7.1.i386 has missing requires of unixODBC = ('0', '2.2.11', '7.1')
unixODBC-devel-2.3.1-11.el7.x86_64 is a duplicate with unixODBC-devel-2.2.11-7.1.i386
  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!


[oracle@orcl orcl]$ tar -cjf trace.tar.gz trace/
[oracle@orcl orcl]$ ls -ltr
total 1688
drwxr-xr-x 2 oracle oinstall      10 Jun 14  2020 metadata_pv
drwxr-xr-x 2 oracle oinstall      10 Jun 14  2020 metadata_dgif
drwxr-xr-x 2 oracle oinstall      10 Jun 14  2020 ir
drwxr-xr-x 2 oracle oinstall      10 Jun 14  2020 hm
drwxr-xr-x 2 oracle oinstall      10 Jun 14  2020 incpkg
drwxr-xr-x 2 oracle oinstall    4096 Jun 14  2020 metadata
drwxr-xr-x 5 oracle oinstall      85 May 27  2022 incident
drwxr-xr-x 2 oracle oinstall      10 May 27  2022 sweep
drwxr-xr-x 2 oracle oinstall     199 May 27  2022 stage
drwxr-xr-x 2 oracle oinstall    4096 May 27  2022 lck
drwxr-xr-x 2 oracle oinstall      10 Jun 26  2022 cdump
drwxr-xr-x 2 oracle oinstall      73 Jan  5 10:15 alert
drwxr-xr-x 2 oracle oinstall   98304 Jan 11 13:38 trace
-rw-r--r-- 1 oracle oinstall 1697913 Jan 11 13:45 trace.tar.gz

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-27 15:25 , Processed in 0.094357 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表