今天在用yum安装软件包的时候出现如下错误信息(这只是部分):
Installing : pango-1.28.1-11.el6.x86_64 1/9
Error unpacking rpm package pango-1.28.1-11.el6.x86_64
error: unpacking of archive failed on file /usr/bin/pango-querymodules-64;57e33cf7: cpio: open
Installing : libtiff-3.9.4-18.el6_8.x86_64 2/9
Error unpacking rpm package libtiff-3.9.4-18.el6_8.x86_64
error: unpacking of archive failed on file /usr/bin/bmp2tiff;57e33cf7: cpio: open
分析:这个是用yum 安装时遇到的,已经到了安装的步骤了,说明 前面 检查依赖 下载包都是没有问题的
在分析 on file /usr/bin/pango 发现所有的包 都是在/usr/bin/这个路径下 然后报错 可能是/usr/bin目录的问题吧
于是 我看了下这个目录 :
lsattr /usr
-------------e- /usr/etc
-------------e- /usr/sbin
----------I--e- /usr/lib64
-------------e- /usr/share
-------------e- /usr/local
----------I--e- /usr/include
-------------e- /usr/games
----i-----I--e- /usr/bin
发现 /usr/bin 这个目录属性有个i 原来是之前我加过导致文件不能增加,于是去掉i
chattr -i /usr/bin 在次运行 yum ok
其实也走了很多弯路包括 yum clean all ,更改yum源等,上面只是把最终成功的方式写下来了。
相关文章
- error: unpacking of archive failed on file错误的解决
- 解决 Uncaught SyntaxError: Unexpected token 周末加班写语音后台,在套模板时,查看控制台,老是报 Uncaught SyntaxError: Unexpected token <,如下图 可是又没发现页面结构有问题,与看了下后台的 error_log,发现有这么一条日志 [2018-05-26 16:11:28] 127.0.0.1 /js/ INFO [Log_Log.info] error:Failed opening controller script D:\wamp\www\asterisk/application/\controllers\: No such file or directory|file:D:\wamp\www\asterisk\public\|line:15 原来是引入的 js 文件没有放入框架,后放置下,刷新页面,便没有了报警。 其实,后来想想,这个 Uncaught SyntaxError: 属于 js 的报错,查看控制台找不到其他的错误,点击跳转到第一幅图的错误提示,应该就应该想到是某个 js 文件未引入。
- 编译boost程序出现如下错误fatal error LNK1104: cannot open file 'libboost_system-vc100-mt-gd-1_54.lib'的解决方法
- 解决Android studio报的“Android resource compilation failed error: found an invalid color”错误
- 填坑记1-nrf52840出现error flash download failed -cortex-M4错误的解决办法-清风电子开发板
- Failed to open file ''/home/python/study/flask/information_info_category.sql'', error: 2的解决方案
- Keil出现Error:Flash Download failed - Could not load file错误 解决点拨
- 关于windows安装wsl,出现WslRegisterDistribution failed with error: 0x8007019e The Windows Subsystem错误的解决方案
- Tesseract-OCR常见配置错误解决:tesseract is not installed 与 Error opening data file Tesseract-OCR的解决方法
- ST-LINK在MDK环境下载hex提示“Internal command error”和“Error:Flash Download failed Cortex-M3”错误的解决办法