安装 scrcpy 和 android studio 后,没有任何内容被删除或卸载

安装 scrcpy 和 android studio 后,没有任何内容被删除或卸载
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

相关内容