[Share Experiences] 【Nightly】deepin搭建本地镜像源更新系统
Tofloor
poster avatar
ThinkYoung
deepin
2022-08-05 18:31
Author

本地软件源之前做过了,本地镜像源是有工具同步的,就是 apt-mirror

目的是因为本人经常重装nightly,不用费时间去网络下载一个小版本,本地直接更新

节省时间,势必牺牲的是空间,优劣必要得个人去权衡

不用备份软件了,因为最近再生龙也翻车了,累积到一定程度系统也臃肿了需要清理,

重装还是选择安装初始化脚本方式了先

看贴有风险,翻车也正常,尽信贴不如无贴

·amd64架构 102G 还好 OK 没问题
·i386架构显示是52G 空间不够没继续了

镜像同步方法:

sudo apt-get install apt-mirror

/etc/apt/mirror.list

############# config ##################
#set base_path    /path
 set base_path    /data/packages/nightly
#
# set mirror_path  $base_path/mirror
# set skel_path    $base_path/skel
# set var_path     $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch  
set defaultarch amd64 i386
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0
set nthreads     20
set _tilde 0
#
############# end config ##############
deb-amd64 https://proposed-packages.deepin.com/dde-nightly/ bullseye main contrib non-free
deb-amd64 https://proposed-packages.deepin.com/dde-nightly/ deepin-bullseye main contrib non-free
deb-amd64 https://proposed-packages.deepin.com/dde-nightly/ dde-bullseye main contrib non-free
deb-amd64 https://proposed-packages.deepin.com/dde-nightly/ deepin-wine main contrib non-free

deb-i386 https://proposed-packages.deepin.com/dde-nightly/ bullseye main contrib non-free
deb-i386 https://proposed-packages.deepin.com/dde-nightly/ deepin-bullseye main contrib non-free
deb-i386 https://proposed-packages.deepin.com/dde-nightly/ dde-bullseye main contrib non-free
deb-i386 https://proposed-packages.deepin.com/dde-nightly/ deepin-wine main contrib non-free


#deb http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-src http://ftp.us.debian.org/debian unstable main contrib non-free

# mirror additional architectures
#deb-alpha http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-amd64 http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-armel http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-hppa http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-i386 http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-ia64 http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-m68k http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-mips http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-mipsel http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-powerpc http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-s390 http://ftp.us.debian.org/debian unstable main contrib non-free
#deb-sparc http://ftp.us.debian.org/debian unstable main contrib non-free

#clean http://ftp.us.debian.org/debian

sources.list

## Local Mirror
deb [trusted=yes] file:///data/packages/nightly/mirror/proposed-packages.deepin.com/dde-nightly bullseye main contrib non-free
deb [trusted=yes] file:///data/packages/nightly/mirror/proposed-packages.deepin.com/dde-nightly deepin-bullseye main contrib non-free
deb [trusted=yes] file:///data/packages/nightly/mirror/proposed-packages.deepin.com/dde-nightly dde-bullseye main contrib non-free
deb [trusted=yes] file:///data/packages/nightly/mirror/proposed-packages.deepin.com/dde-nightly deepin-wine main contrib non-free


## Generated by deepin-installer
#deb https://proposed-packages.deepin.com/dde-nightly/ bullseye main contrib non-free
#deb https://proposed-packages.deepin.com/dde-nightly/ deepin-bullseye main contrib non-free
#deb https://proposed-packages.deepin.com/dde-nightly/ dde-bullseye main contrib non-free
#deb https://proposed-packages.deepin.com/dde-nightly/ deepin-wine main contrib non-free


#deepin 加  debian11源


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

安装配置完:拉取镜像

apt-mirror

拉取成功后,就可以尝试更新了

Reply Favorite View the author
All Replies
xuqi
deepin testing team
2022-08-05 18:32
#1

kissing_heart

Reply View the author
谢克辉
deepin
2022-08-06 01:25
#2

感觉好厉害的样子

Reply View the author
鸿雁高飞
deepin
2025-06-05 10:57
#3

V23好像把APT-MIRROR屏蔽了

Reply View the author