使用包管理器前都先更新
This commit is contained in:
parent
6890c062f3
commit
15f3b139fd
@ -24,9 +24,13 @@ case "$pick" in
|
|||||||
echo "2.英文"
|
echo "2.英文"
|
||||||
read -p "请输入:" lang
|
read -p "请输入:" lang
|
||||||
if [[ -f "/usr/bin/apt-get" ]];then
|
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 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
|
||||||
|
sudo apt dist-upgrade
|
||||||
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
|
||||||
|
@ -7,8 +7,10 @@ declare pkg
|
|||||||
if [[ -f "/usr/bin/apt-get" ]];then
|
if [[ -f "/usr/bin/apt-get" ]];then
|
||||||
pkg='apt-get'
|
pkg='apt-get'
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
sudo apt-get dist-upgrade
|
||||||
elif [[ -f "/usr/bin/apt" ]];then
|
elif [[ -f "/usr/bin/apt" ]];then
|
||||||
pkg='apt'
|
pkg='apt'
|
||||||
|
sudo apt update
|
||||||
sudo apt dist-upgrade
|
sudo apt dist-upgrade
|
||||||
else
|
else
|
||||||
echo "暂不支持该系统一键安装常用软件"
|
echo "暂不支持该系统一键安装常用软件"
|
||||||
|
Loading…
Reference in New Issue
Block a user