- 问题

- 解决方法
sudo rm /var/lib/dpkg/lock
sudo rm /var/lib/dpkg/lock-frontend
sudo rm /var/cache/apt/archives/lock
cds@cds-virtual-machine:~/Desktop/bi_she$ sudo dpkg -i sdkmanager_1.0.1-5538_amd64.deb
[sudo] password for cds:
dpkg: error: dpkg frontend is locked by another process
cds@cds-virtual-machine:~/Desktop/bi_she$ sudo rm /var/lib/dpkg/lock
cds@cds-virtual-machine:~/Desktop/bi_she$ sudo rm /var/lib/dpkg/lock-frontend
cds@cds-virtual-machine:~/Desktop/bi_she$ sudo rm /var/cache/apt/archives/lock
cds@cds-virtual-machine:~/Desktop/bi_she$ sudo dpkg -i sdkmanager_1.0.1-5538_amd64.deb
Selecting previously unselected package sdkmanager.
(Reading database ... 221689 files and directories currently installed.)
Preparing to unpack sdkmanager_1.0.1-5538_amd64.deb ...
Unpacking sdkmanager (1.0.1-5538) ...