[Share Experiences] 混源降低优先级
Tofloor
poster avatar
青稚
deepin
2023-04-05 01:31
Author

今天接到谴责,说我往期教程添加其他源风险太大,今天教大家怎么降低优先级。

只需要一个命令就可以了。

sudo tee "/etc/apt/preferences.d/sparkstore.pref" >/dev/null << "EOF"

Package: *

Pin: origin zunyun01.store.deepinos.org.cn

Pin-Priority: 200

里面的:zunyun01.store.deepinos.org.cn

替换成你添加的源,https://后面的,复制到域名结束。

这时有用户问了,我添加的源后面有版本号之类的,如下面源。

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse

这时候咱们取mirrors.tuna.tsinghua.edu.cn

就可以了。

Reply Favorite View the author
Comments
poster avatar
璀璨星空
2023-04-05 03:34
混源有风险,操作需谨慎
All Replies
longlong
deepin
Community Developer
2023-04-05 04:39
#1

任何情况下混源都不对 就算降低优先级也会因为两个源里面的版本号依赖的问题导致出问题

Reply View the author
wlly-lzh
deepin
2023-04-05 05:06
#2

一般还是不要混源的好。

Reply View the author