[Repository/Mirror] 系统更新可不可以固定下仓库地址
Tofloor
poster avatar
185******62
deepin
2023-04-12 12:47
Author

系统更新检测时,会出现检测失败的情况,导致失败的原因有时是第三方仓库的问题,

安装某些软件的时,会有添加仓库源地址的情况,又有些地址可能会失效,这样就会使系统更新检测时导致失败,无法更新,

如果可以在系统更新检测时仓库源做固定限定,不检测系统官方仓库以外的仓库,这样是不是会好些,不会影响到系统的正常更新,即使有第三方仓库源地址。

个人意见,望采纳,谢谢!

Reply Favorite View the author
All Replies
liwl
deepin
2023-04-12 14:01
#1

控制中心,系统更新,第三方源,有开关按钮的,可以试试关闭看看

Reply View the author
jjcui8595
deepin
2023-04-12 14:09
#2
liwl

控制中心,系统更新,第三方源,有开关按钮的,可以试试关闭看看

正解

Reply View the author
说书人
deepin
2023-04-12 15:04
#3

但管不住 apt 吧

Reply View the author
liwl
deepin
2023-04-12 16:24
#4
说书人

但管不住 apt 吧

既然要用apt的话,那只能注释掉第三方源了

Reply View the author
Jokul
deepin
2023-04-12 18:12
#5
说书人

但管不住 apt 吧

那没办法,想apt也管住,那就重写apt,和星火一样使用aptss这种

Reply View the author
忘记、过去
deepin
2023-04-13 17:34
#6

/etc/apt/apt.conf apt 的配置文件可以写入

Dir::Etc::SourceParts "xxxxxx";
Dir::Etc::SourceList "xxxxxx";

第一行指定源文件列表目录(类似 /etc/apt/sources.list.d),第二行指定系统源文件(类似 /etc/apt/sources.list)。添加限制后,执行 sudo apt update 会只更新指定的仓库

Reply View the author