安卓工作室安装

标签 android installation

我尝试通过终端安装 Android studio。我添加了存储库:

sudo apt-add-repository ppa:paolorotolo/adroid-studio

然后我输入sudo apt-get install android-studio

开始下载了。然后在下载的时候我不小心重启了我的电脑,当我做了同样的程序时,系统通知我中断并引导我发出命令:

sudo dpkg --configure -a

我照做了,安装继续进行。现在我得到错误:

Setting up android-studio (4.2-0ubuntu0) ...
unzip:  cannot find or open /opt/android-studio-ide-*, /opt/android-studio-ide-*.zip or        /opt/android-studio-ide-*.ZIP.
No zipfiles found.
rm: cannot remove ‘/opt/android-studio-ide-*’: No such file or directory
find: `/opt/android-studio/': No such file or directory
find: `/opt/android-studio/': No such file or directory
dpkg: error processing package android-studio (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
android-studio
E: Sub-process /usr/bin/dpkg returned an error code (1)

我该如何解决这个问题?

最佳答案

仅仅因为包管理器在中断后继续运行并不意味着包本身不会包含错误。

尝试删除包并重新开始该过程。

首先清除包:

sudo apt-get purge android-studio

然后修复所有遗留问题(sudo dpkg --configure -asudo apt-get update)并再次运行安装(sudo apt-get安装 android-studio).

关于安卓工作室安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27113554/

相关文章:

android - 将 View 及其父 View 的 onTouchListeners 分开

python - 如何确定我是否在 Linux 中安装了 Python 模块?

r - 在ubuntu 15.10中安装R语言的 "ade4"包时出错

BlackBerry:是否可以从网站(无线)下载应用程序?

wix - 为什么 MSI 安装程序在更新时要求重新启动?

android - 退款后无法在 Google Play 上重新购买应用内结算项目

java - 无法将 xml 文件中的 r.id 与主要 Activity 匹配

python - Anaconda 安装问题 - 无法创建 Anaconda 菜单

java - 如何设置 ImageView 的角半径

java - 在方法中更改类成员?