From 8c9d4b090aabc68ce0de638add02869a4311f48d Mon Sep 17 00:00:00 2001 From: cchhuuaann1 Date: Wed, 17 Feb 2021 10:41:51 +0800 Subject: [PATCH] Update install.sh (#307) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dpkg 占用处理 --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index c2bfc17..ef440e3 100644 --- a/install.sh +++ b/install.sh @@ -83,6 +83,10 @@ check_system() { elif [[ "${ID}" == "ubuntu" && $(echo "${VERSION_ID}" | cut -d '.' -f1) -ge 16 ]]; then echo -e "${OK} ${GreenBG} 当前系统为 Ubuntu ${VERSION_ID} ${UBUNTU_CODENAME} ${Font}" INS="apt" + rm /var/lib/dpkg/lock + dpkg --configure -a + rm /var/lib/apt/lists/lock + rm /var/cache/apt/archives/lock $INS update else echo -e "${Error} ${RedBG} 当前系统为 ${ID} ${VERSION_ID} 不在支持的系统列表内,安装中断 ${Font}"