!43 ss-apt-fast相关改动:先行获取mirror和自动安装apt-fast

* 修复 多位数无法显示
* 	modified:   tool/update-upgrade/ss-do-upgrade.sh
* 	modified:   tool/update-upgrade/ss-do-upgrade.sh
* 更改依赖判断方法
* 	modified:   debian/changelog
* * 新增:ssinstall现在会在没有apt-fast的时候自动安装
This commit is contained in:
2022-06-26 06:21:19 +00:00
parent f8dbca8f6f
commit af7990e069
8 changed files with 55 additions and 40 deletions

View File

@@ -1,9 +1,9 @@
#!/bin/bash
DEPEND=`which apt-fast`
if [ "$DEPEND" = "" ] ; then
echo "没有安装apt-fast使用apt运行"
sudo apt upgrade -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
echo "以上可升级,是否升级?[y/n]"
read yes_or_no
if [ "$yes_or_no" = "y" ];then
sudo ss-apt-fast upgrade -y -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
else
echo "已安装apt-fast使用apt-fast加速运行"
ss-apt-fast upgrade -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
exit
fi

View File

@@ -30,12 +30,6 @@ echo "输入2 查看可更新软件包列表并决定是否更新"
echo "输入3 $text_auto_install_open点击安装免输入密码功能"
echo "输入4 退出脚本"
echo
echo "小提示建议安装apt-fast以提高下载速度。"
echo "安装过apt-fast的用户可在系统更新的时候使用ss-apt-fast代替apt-fast进行更新"
echo "比如 sudo ss-apt-fast update或者sudo ss-apt-fast upgrade"
echo
echo "UOS除外UOS对下载源采取了禁止非APT应用多线程下载的策略"
echo "为了防止系统依赖包无法下载在依赖下载时禁用了apt-fast."
read option
case $option in

View File

@@ -50,7 +50,7 @@ fi
update_app_number=`echo ${updatetext%package*} #从右向左截取第一个 src 后的字符串`
update_app_number=`echo ${update_app_number: -1}`
update_app_number=`echo ${update_app_number##*information...}`
sudo echo "$update_app_number" > /tmp/spark-store-updatenum/number