linux 记录-文件属性-xz error-安装软件,有锁。

文件属性:

-'
regular file

`b'
block special file

`c'
character special file

`C'
high performance ("contiguous data") file

`d'
directory

`D'
door (Solaris 2.5 and up)

`l'
symbolic link

阿里云错误:用yum指令就会报错:下面这个是yum remove xz时:

Loaded plugins: fastestmirror  //装载这个插件
Setting up Remove Process
No Match for argument: xz 
Loading mirror speeds from cached hostfile
 * base: mirrors.cloud.aliyuncs.com
 * extras: mirrors.cloud.aliyuncs.com
 * updates: mirrors.cloud.aliyuncs.com
 * webtatic: us-east.repo.webtatic.com
Error: xz compression not available //这个很有诱导性,我一度认为是xz的问题,但当我尝试压缩和解压,发现xz可以正常工作
1 是查到大多数解决办法,不适用。2 是最终解决问题,确实是关闭这个插件,yum就可以正常更新了

1、http://www.cnblogs.com/phpzhou/p/5602986.html

2、http://blog.sina.com.cn/s/blog_7e513d7e01015j9b.html

 

 

 

使用yum命令报错File "/usr/bin/yum", line 30 except KeyboardInterrupt, e:说什么又语法错误,是因为程序是由python2

写的,而阿里云是python3 的库,没想到兼容的这么差。而且按照方法修改的时候注意,自己的版本:

/usr/bin

python
python2
python2.6
python2.6-config
python2.6.ori
python-config

https://blog.csdn.net/zsl10/article/details/52315319

 error:Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

两种方法:

1 ps -A | grep apt   sudo kill -9 processnumber || sudo kill -SIGKILL processnumber

2 sudo rm /var/lib/dpkg/lock

sudo dpkg --configure -a

sudo apt-get update

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值