软路由openwrt中替换国内镜像源(以阿里云为例)
镜像下载、域名解析、时间同步请点击 阿里巴巴开源镜像站
一、打开openwrt终端
二、找到distfeeds.conf
进入opkg
cd /etc/opkg
查看opkg内文件
ls
可以找到distfeeds.conf,并进入编辑
vi distfeeds.conf
三、进入distfeeds.conf
输入i变插入模式
i
四、替换镜像源地址
openwrt阿里云镜像源地址
https://mirrors.aliyun.com/openwrt
根据你的软件版本替换镜像源
https://mirrors.aliyun.com/openwrt/releases/18.06.8/targets/brcm2708/bcm2710/packages/
https://mirrors.aliyun.com/openwrt/releases/18.06.8/packages/aarch64_cortex-a53/base/
https://mirrors.aliyun.com/openwrt/releases/18.06.8/packages/aarch64_cortex-a53/luci/
https://mirrors.aliyun.com/openwrt/releases/18.06.8/packages/aarch64_cortex-a53/packages/
https://mirrors.aliyun.com/openwrt/releases/18.06.8/packages/aarch64_cortex-a53/routing/
五、保存退出并测试
保存退出命令
:wq
用更新命令测试
opkg update
测试结果,更新成功。
本文来自:深巷的酒
推荐这些文章:
折腾软路由真的是一个相当耗时间的事情,之前图省事都是直接下载别人编译好的版本,各种插件都有了,开箱即用。
但是现在有点受够各种所谓大神编译(夹带私货)的版本了,还有些是从某个snapshot的源码拉出来,opkg源也只能写snapshot,导致后面装包一堆问题,一头乱麻。
所以这次打算直接装官方的版本。
从官网下载镜像
现在最新的稳定版是21.02.02,https://downloads.openwrt.org/releases/21.02.0/targets/x86/64/openwrt-21.02.0-x86-64-generic-ext4-combined.img.gz,硬盘足够,下...
1. apt-get
https://blog.csdn.net/qq_21095573/article/details/99736630
2. pip更改源
用编辑器打开 ~/.pip/pip.conf文件(如果没有文件夹就新建文件夹,如果没有文件就新建文件)
写入下列内容并保存
阿里云:
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com
豆瓣:
[global]
index-url = http://pypi.douban.com/...
wget: 无法解析主机地址 “mirrors.aliyun.com”
登录root用户,用vim /etc/resolv.conf ,打开rsolv.conf,添加DNS地址
nameserver 8.8.8.8nameserver 8.8.4.4nameserver 223.5.5.5nameserver 223.6.6.6
(nameserver 223.5.5.5 和 nameserver 223.6.6.6选择其中一个添加即可)
...
https://mirrors.huaweicloud.com/elasticsearch/
https://mirrors.huaweicloud.com/kibana
https://mirrors.huaweicloud.com/logstash/
...
阿里yum镜像源
https://mirrors.aliyun.com/repo/
...
腾讯云 https://mirrors.cloud.tencent.com/pypi/simple/阿里云 https://mirrors.aliyun.com/pypi/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
豆瓣 https://pypi.doubanio.com/simple/网易 https://mirrors.163.com/pypi/simple/华中理工大学 http://pypi.hustunique.com/...
https://developer.aliyun.com/mirror/
作者: jamesbing
出处: http://gaobing.cnblogs.com
提示: 欢迎转载,但是必须保留本文的署名
jamesbing
(包含链接)
...
Ubuntu换源Could not resolve 'mirrors.aliyun.com'
出现如下图错误
解决方案
1、vim /etc/resolv.conf在文件后面添加
nameserver 8.8.8.8
nameserver 8.8.4.4
2、重启网络
sudo /etc/init.d/networking restart
...
安装kubeadm采用国内阿里云镜像源,安装kubelet、kubeadm、kubectl:
1.安装kubeadm之前
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyu...
最近安装centos8.3 按照百度配置阿里云出错如下:
Errors during downloading metadata for repository 'baseos':
- Status code: 404 for https://mirrors.aliyun.com/centos/8/BaseOS/x86_64/os/repodata/repomd.xml (IP: 39.96.118.192)
Error: Failed to download metadata for repo 'baseos': Cannot download repomd.xml: Cannot dow...
文章链接:https://www.dianjilingqu.com/51512.html
本文章来源于网络,版权归原作者所有,如果本站文章侵犯了您的权益,请联系我们删除,联系邮箱:saisai#email.cn,感谢支持理解。