diff --git a/Menus/Other.sh b/Menus/Other.sh index 6a245ce..3235efe 100644 --- a/Menus/Other.sh +++ b/Menus/Other.sh @@ -24,9 +24,13 @@ case "$pick" in echo "2.英文" read -p "请输入:" lang if [[ -f "/usr/bin/apt-get" ]];then + sudo apt-get update + sudo apt-get dist-upgrade sudo apt-get install -y locales sudo apt-get install -y language-pack-zh-hans elif [[ -f "/usr/bin/apt" ]];then + sudo apt update + sudo apt dist-upgrade sudo apt install -y locales sudo apt install -y language-pack-zh-hans else diff --git a/Menus/Software.sh b/Menus/Software.sh index 24f527c..3fcd62e 100644 --- a/Menus/Software.sh +++ b/Menus/Software.sh @@ -7,8 +7,10 @@ declare pkg if [[ -f "/usr/bin/apt-get" ]];then pkg='apt-get' sudo apt-get update + sudo apt-get dist-upgrade elif [[ -f "/usr/bin/apt" ]];then pkg='apt' + sudo apt update sudo apt dist-upgrade else echo "暂不支持该系统一键安装常用软件"