删除更新软件包时自动更新软件
This commit is contained in:
parent
efe516fd92
commit
a1c151ec0b
@ -25,12 +25,10 @@ case "$pick" in
|
|||||||
read -p "请输入:" lang
|
read -p "请输入:" lang
|
||||||
if [[ -f "/usr/bin/apt-get" ]];then
|
if [[ -f "/usr/bin/apt-get" ]];then
|
||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
sudo apt-get dist-upgrade -y
|
|
||||||
sudo apt-get install -y locales
|
sudo apt-get install -y locales
|
||||||
sudo apt-get install -y language-pack-zh-hans
|
sudo apt-get install -y language-pack-zh-hans
|
||||||
elif [[ -f "/usr/bin/apt" ]];then
|
elif [[ -f "/usr/bin/apt" ]];then
|
||||||
sudo apt update -y
|
sudo apt update -y
|
||||||
sudo apt dist-upgrade -y
|
|
||||||
sudo apt install -y locales
|
sudo apt install -y locales
|
||||||
sudo apt install -y language-pack-zh-hans
|
sudo apt install -y language-pack-zh-hans
|
||||||
else
|
else
|
||||||
|
@ -8,12 +8,10 @@ if [[ -f "/usr/bin/apt-get" ]];then
|
|||||||
pkg='apt-get'
|
pkg='apt-get'
|
||||||
install_str+="${pkg} install -y"
|
install_str+="${pkg} install -y"
|
||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
sudo apt-get dist-upgrade -y
|
|
||||||
elif [[ -f "/usr/bin/apt" ]];then
|
elif [[ -f "/usr/bin/apt" ]];then
|
||||||
pkg='apt'
|
pkg='apt'
|
||||||
install_str+="${pkg} install -y"
|
install_str+="${pkg} install -y"
|
||||||
sudo apt update -y
|
sudo apt update -y
|
||||||
sudo apt dist-upgrade -y
|
|
||||||
else
|
else
|
||||||
echo "暂不支持该系统一键安装常用软件"
|
echo "暂不支持该系统一键安装常用软件"
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user