sh: tar: command not found

Issues related to software problems.
pmtechwl
Posts: 1
Joined: 2016/10/24 11:23:38

sh: tar: command not found

Postby pmtechwl » 2016/10/24 11:31:10

Problems with tar:

Centos 5.11 32-Bit with Directadmin

At installing csf i get:

Unpacking new csf package...
sh: tar: command not found
sh: line 0: cd: csf: Bestand of map bestaat niet
sh: install.sh: Bestand of map bestaat niet

Installing tar:
Running Transaction
Installing : tar 1/1
Error unpacking rpm package 2:tar-1.15.1-32.el5_8.i386
error: unpacking of archive failed on file /bin/tar: cpio: rename

Failed:
tar.i386 2:1.15.1-32.el5_8
Locate Tar:
[root@server ~]# whereis tar
tar: /bin/tar /usr/include/tar.h




Anyone can help me?

User avatar
TrevorH
Forum Moderator
Posts: 21171
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: sh: tar: command not found

Postby TrevorH » 2016/10/24 11:55:05

Error unpacking rpm package 2:tar-1.15.1-32.el5_8.i386
error: unpacking of archive failed on file /bin/tar: cpio: rename


That usually means that either the file is marked immutable using chattr or someone has created a directory called the same thing.

We don't support DirectAdmin or CSF. You'll need to ask questions of their support channels as panels make so many changes to the o.s that we can no longer support it.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke