![安装 scrcpy 和 android studio 后,没有任何内容被删除或卸载](https://linux22.com/image/1184201/%E5%AE%89%E8%A3%85%20scrcpy%20%E5%92%8C%20android%20studio%20%E5%90%8E%EF%BC%8C%E6%B2%A1%E6%9C%89%E4%BB%BB%E4%BD%95%E5%86%85%E5%AE%B9%E8%A2%AB%E5%88%A0%E9%99%A4%E6%88%96%E5%8D%B8%E8%BD%BD.png)
sudo apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
2 not fully installed or removed.
Need to get 0 B/5,616 B of archives.
After this operation, 0 B of additional disk space will be used.
dpkg: dependency problems prevent configuration of android-studio:
android-studio depends on android-studio-2020.3.1; however:
Package android-studio-2020.3.1 is not installed.
dpkg: error processing package android-studio (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing: android-studio
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
你可能必须添加相关电力购买协议 (PPA)然后重新安装 Android Studio
sudo add-apt-repository ppa:maarten-fonville/android-studio
sudo apt-get update
sudo apt-get install --reinstall android-studio-2020.3.1
sudo apt-get install --reinstall android-studio