查看: 3621|回复: 0

[教程] 不改变u-nas镜像源的情况下设置apt源为阿里源

[复制链接]
发表于 2021-1-9 16:28:46 | 显示全部楼层 |阅读模式

原文链接:原文

1. 使用`root`用户远程登录`u-nas`

2. 切换到apt镜像文件的目录`cd /etc/apt`

3. 备份原来的镜像配置文件:`cp sources.list ./sources.list.bk`



4. 修改镜像源

      

        值得注意的是,这里不仅有163的镜像源,还有u-nas的镜像源,需要保留unas的镜像地址


        将163的镜像地址替换为阿里云的

     
        deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
        deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
        deb http://mirrors.aliyun.com/debian-security stretch/updates main
        deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
        deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
        deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
        deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
        deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
        
   

        

4. 保存文件 `Ctrl O` ,回车 `Ctrl X`即可完成保存
5. `apt update`

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|万由科技 ( 浙ICP备10004788号-13 )

GMT+8, 2024-3-28 21:20 , Processed in 0.077534 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表