'unpacking'에 해당되는 글 1건

  1. 2011.12.01 yum install error: unpacking of archive failed on file
기초 Linux 서버관리2011. 12. 1. 16:33


#yum install dstat
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package dstat.noarch 0:0.6.6-3.el5_4.1 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 dstat                   noarch     0.6.6-3.el5_4.1  base              106 k

Transaction Summary
=============================================================================
Install      1 Package(s)        
Update       0 Package(s)        
Remove       0 Package(s)        

Total download size: 106 k
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: dstat                        ######################### [1/1]
error: unpacking of archive failed on file /usr/bin/dstat;4ed72809: cpio: open

Installed: dstat.noarch 0:0.6.6-3.el5_4.1
Complete!

※complete가 나왔지만, error: unpacking of archive failed on file /usr/bin/dstat;4ed72809: cpio: open 발생되어
패키지 설치가 안되었다. 이런 경우는 /usr/bin 디렉토리가 속성 잠금 상태일 것이다.

확인해 보자.
#lsattr /usr/ | more

----i-----I-- /usr/bin
역시 잠금상태이다.
#chattr -i /usr/bin 잠금 해제
#lsattr /usr/ | more
----------I-- /usr/bin

다시 한번, yum install

# yum install dstat
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package dstat.noarch 0:0.6.6-3.el5_4.1 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 dstat                   noarch     0.6.6-3.el5_4.1  base              106 k

Transaction Summary
=============================================================================
Install      1 Package(s)        
Update       0 Package(s)        
Remove       0 Package(s)        

Total download size: 106 k
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: dstat                        ######################### [1/1]

Installed: dstat.noarch 0:0.6.6-3.el5_4.1
Complete!

error: unpacking of archive failed on file /usr/bin/dstat;4ed72809: cpio: open 에러 없이
정상적으로 complete 되었다.

Posted by 박물지