Ubuntu安装teamviewer(附带解决dpkg占用的代码)

sudo ps -ef | grep dpkg | awk -F ' ' '{print $2}' | xargs sudo kill -9;
sudo ps -ef | grep apt | awk -F ' ' '{print $2}' | xargs sudo kill -9;
sudo rm -rf /var/lib/dpkg/lock-frontend;
sudo rm -rf /var/lib/dpkg/lock;
sudo rm -rf /var/lib/dpkg/lock*;

wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb -O teamviewer_amd64.deb;
sudo dpkg -i teamviewer_amd64.deb;
sudo apt update ;
sudo apt install -f -y;
teamviewer;

 

posted @ 2020-02-17 16:28  龙雪  阅读(497)  评论(0编辑  收藏  举报