描述: 在使用yum執行命令(yum install vsftpd)安裝ftp服務器時, 總是報密鑰錯誤
報錯圖片:
原因分析: 按照網上的教程重新配置了鏡像源, 在/etc/yum.repo.d/目錄下存在着各種鏡像源
執行了命令: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
后來發現仍然報相同的錯誤
后來再次查看時, 發現, 我安裝的centos是7版本, 但是命令行中安裝的鏡像源是Centos6, 就將6改成了7,
解決:
執行命令: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
再次執行yum install vsftpd命令時, 就正常安裝了.