{"id":1066,"date":"2010-09-05T09:16:38","date_gmt":"2010-09-05T13:16:38","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=1066"},"modified":"2014-08-05T05:41:58","modified_gmt":"2014-08-05T09:41:58","slug":"error-unpacking-of-archive-failed-on-file-usrbinxxxx-cpio-open-failed","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/error-unpacking-of-archive-failed-on-file-usrbinxxxx-cpio-open-failed","title":{"rendered":"error: unpacking of archive failed on file \/usr\/bin\/xxxx: cpio: open Failed"},"content":{"rendered":"<p>The error message &#8220;unpacking of archive failed on file \/usr\/bin\/xxxx: cpio: open Failed&#8221; indicates that the system failed to install the rpm since it cannot unpack the package under the \/usr\/bin directory.<\/p>\n<p>For example, you may see the error message as stated below while installing a &#8216;nano&#8217; package using yum<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">Error unpacking rpm package nano-1.x.x.i386 <\/span>\r\n<span style=\"color: #0000ff;\">error: unpacking of archive failed on file \/usr\/bin\/nano;<\/span>\r\n<span style=\"color: #0000ff;\">4c70f874: cpio: open Failed:<\/span><\/pre>\n<\/blockquote>\n<p>This indicates that the file \/usr\/bin\/nano cannot be created under the \/usr\/bin directory which mostly happens if an attribute is set on the directory.<\/p>\n<p>Use the &#8216;lsattr&#8217; command to check if an attribute is set on the directory:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># lsattr \/usr | grep bin <\/span>\r\n<span style=\"color: #0000ff;\">----i-----I-- \/usr\/bin<\/span><\/pre>\n<\/blockquote>\n<p>If the file\/directory have an immutable bit (lowercase &#8216;i&#8217;) set as shown in the above output, it indicates that the permissions to write in the file\/directory has been denied.<\/p>\n<p>To remove the immutable bit, use the &#8216;chattr&#8217; command:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># chattr -i \/usr\/bin <\/span><\/pre>\n<\/blockquote>\n<p>Once done, you can successfully install the rpm.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Important:<\/strong><\/span><\/p>\n<p>In some cases though, the rpm file itself is corrupt and cannot be installed, so it is also recommended to try install the rpm on another server to see if it works. If it fails on another server too, you should download the package from a different website \/ mirror.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The error message &#8220;unpacking of archive failed on file \/usr\/bin\/xxxx: cpio: open Failed&#8221; indicates that the system failed to install the rpm since it cannot unpack the package under the \/usr\/bin directory.<br \/>\nFor example, you may see the error message as stated below while installing a &#8216;nano&#8217; package using yum<\/p>\n<p>Error unpacking rpm package nano-1.x.x.i386<br \/>\nerror: unpacking of archive failed on file \/usr\/bin\/nano;<br \/>\n4c70f874: cpio: open Failed:<\/p>\n<p>This indicates that the file \/usr\/bin\/nano cannot be created under the \/usr\/bin directory which mostly happens if an attribute is set on the directory.<br \/>\nUse the [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1060,1059,1058,1056,1062,1061,1057],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1066"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=1066"}],"version-history":[{"count":9,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1066\/revisions"}],"predecessor-version":[{"id":2364,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/1066\/revisions\/2364"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=1066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=1066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=1066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}