error: unpacking of archive failed on file 오류 원인

 

 

openssh-clients 설치하는 과정에서 아래와 같은 에러가 발생함

$ yum install openssh-clients

 

Running transaction
  Installing : openssh-clients-7.4p1-13.el7_4.x86_64                                                                                  1/1
Error unpacking rpm package openssh-clients-7.4p1-13.el7_4.x86_64
error: unpacking of archive failed on file /etc/ssh/ssh_config: cpio: rename
  Verifying  : openssh-clients-7.4p1-13.el7_4.x86_64                                                                                  1/1

Failed:
  openssh-clients.x86_64 0:7.4p1-13.el7_4

 

 

원인은../etc/ssh/ssh_config 파일의 속성이 immutable(불변) 상태였던것

 

아래 명령어로 현재 속성을 확일할수 있으며,  "i" 속성이 있으면 immutable 상태임

$ lsattr /etc/ssh/sshd_config
---i---------- test.txt

 

아래 명령어로 속성을 삭제할 수 있음

$ chattr -i /etc/ssh/sshd_config

 

변경 확인

$ lsattr /etc/ssh/sshd_config
-------------- test.txt

 

댓글

Designed by JB FACTORY

loading