标题: tar (child): bzip2: Cannot exec: No such file or directory [打印本页] 作者: mahan 时间: 2023-1-13 18:00 标题: tar (child): bzip2: Cannot exec: No such file or directory 执行:
[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
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