更換軟件源,/etc/apt/source.list之后,安裝軟件不成功會(huì)顯示you have held broken packages,使用apt-get remove <package>將之前的包移除,然后重新安裝
推薦使用網(wǎng)易的源,速度杠杠的(之前倒是找到過(guò)一個(gè)阿里云源,有一個(gè)url無(wú)法訪(fǎng)問(wèn))
deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
sudo apt-get install <package>安裝時(shí)候顯示lock不可用,使用 ps -aux | grep apt, kill掉相關(guān)進(jìn)程即可