跟 UMU 一起玩 OpenWRT(入門篇18):更換 opkg 源

問題

默認源在國內訪問速度普遍比較慢。

PS: 本篇理論上應該幾年前就寫的……以前經常用臺灣省的網絡,沒發現,現在補一篇。

解決

  1. 更換清華大學源
<code>sed -i 's/downloads\\.openwrt\\.org/mirrors\\.tuna\\.tsinghua\\.edu\\.cn\\/openwrt/g' /etc/opkg/distfeeds.conf
opkg update/<code>
  1. 使用 https
<code>opkg install libustream-mbedtls
sed -i 's/http:/https:/g' /etc/opkg/distfeeds.conf/<code>

相關

如果您想把整個軟件源下載到本地,可以參考:https://github.com/UMU618/openwrt-opkg-cache


分享到:


相關文章: