openwrt 执行 ./script/feeds update -a 执行卡住,fatal: unable to access ‘https://git.openwrt.org/feed/packa

参考openwrt官方的方法:
https://github.com/openwrt/openwrt

Quickstart
Run ./scripts/feeds update -a to obtain all the latest package definitions defined in feeds.conf / feeds.conf.default

Run ./scripts/feeds install -a to install symlinks for all obtained packages into package/feeds/

Run make menuconfig to select your preferred configuration for the toolchain, target system & firmware packages.

Run make to build your firmware. This will download all sources, build the cross-compile toolchain and then cross-compile the GNU/Linux kernel & all chosen applications for your target system.

git clone https://github.com/openwrt/openwrt.git
cd openwrt

在执行 ./scripts/feeds update -a

出现如下错误,下载软件包一直出错
Updating feed ‘packages’ from ‘https://git.openwrt.org/feed/packages.git’ …
Cloning into ‘./feeds/packages’…
fatal: unable to access ‘https://git.openwrt.org/feed/packages.git/’: Could not resolve host: git.openwrt.org failed.
Updating feed ‘luci’ from ‘https://git.openwrt.org/project/luci.git’ …
Cloning into ‘./feeds/luci’…
fatal: unable to access ‘https://git.openwrt.org/project/luci.git/’: Could not resolve host: git.openwrt.org failed.
Updating feed ‘routing’ from ‘https://git.openwrt.org/feed/routing.git’ …
fatal: unable to access ‘https://git.openwrt.org/feed/routing.git/’: Could not resolve host: git.openwrt.org failed.

这个错误是指feeds.conf.default里的数据包源无法访问

查看feeds.conf.default,

src-git packages https://git.openwrt.org/feed/packages.git
src-git luci https://git.openwrt.org/project/luci.git
src-git routing https://git.openwrt.org/feed/routing.git
src-git telephony https://git.openwrt.org/feed/telephony.git
#src-git video https://github.com/openwrt/video.git
#src-git targets https://github.com/openwrt/targets.git
#src-git management https://github.com/openwrt-management/packages.git
#src-git oldpackages http://git.openwrt.org/packages.git
#src-link custom /usr/src/openwrt/custom-feed

这些链接无法访问,科学上网也不行,于是修改包的源文件文件如下,再次执行./scripts/feeds update -a 就可以了

src-git packages https://github.com/openwrt/packages.git
src-git luci https://github.com/openwrt/luci.git
src-git routing https://github.com/openwrt-routing/packages.git
src-git telephony https://github.com/openwrt/telephony.git
src-git management https://github.com/openwrt-management/packages.git

#src-git packages https://git.openwrt.org/feed/packages.git
#src-git luci https://git.openwrt.org/project/luci.git
#src-git routing https://git.openwrt.org/feed/routing.git
#src-git telephony https://git.openwrt.org/feed/telephony.git
#src-git video https://github.com/openwrt/video.git
#src-git targets https://github.com/openwrt/targets.git
#src-git oldpackages http://git.openwrt.org/packages.git
#src-link custom /usr/src/openwrt/custom-feed

原文链接:https://blog.csdn.net/RUSSIAL/article/details/137728678?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171836740116800186526948%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=171836740116800186526948&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-23-137728678-null-null.nonecase&utm_term=%E8%B7%AF%E7%94%B1%E5%99%A8%E3%80%81openwrt

© 版权声明
THE END
喜欢就支持一下吧
点赞9 分享