問題出在系統(tǒng)沒有yum的GPG密鑰
一·查看自己系統(tǒng)版本
cat /etc/issue
二·使用命令rpm --import進(jìn)行導(dǎo)入
rpm --importhttp://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
把6改為你當(dāng)前版本
三·再用yum -y install tree就可以了
yum -y install tree
四·詩無盡頭°
我的博客http://www.aiyuanke.com