sudo rm /var/cache/apt/archives/lock && sudo rm /var/lib/dpkg/lock && sudo rm /var/lib/dpkg/lock-frontend && sudo rm -rf /var/lib/dpkg/lock && sudo apt clean && sudo rm /var/lib/dpkg/updates/* && sudo apt update
dpkg异常处理
sudo fuser -vki /var/lib/dpkg/lock
sudo apt purge snapd
sudo dpkg --configure -a
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt install snapd