[Git]使用注意点

2020-08-27  本文已影响0人  帅可儿妞

yum 更新 nss

在clone的时候失败

Initialized empty Git repository in XXX
error: while accessing https://github.com/XXX.git/info/refs
fatal: HTTP request failed

解决:

yum update nss

yum仓库软件版本太低

访问 http://mirrors.aliyun.com | https://developer.aliyun.com/mirror/
找到 epel, 点开
找到 epel(RHEL 6), 获取命令, 在系统中执行

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo

清理缓存

yum clean all

查找软件, 看是否有最新的版本

yum search <soft-name>
上一篇 下一篇

猜你喜欢

热点阅读