安装Android Studio - 某些索引文件无法下载

时间:2017-07-16 07:53:55

标签: android linux android-studio apt dpkg

根据this页面,我尝试按照here

所述安装android studio
$ sudo apt-add-repository ppa:maarten-fonville/android-studio
$ sudo apt-get update 

但失败了

W: Failed to fetch http://ppa.launchpad.net/maarten-fonville/android-studio/ubuntu/dists/precise/main/source/Sources  404  Not Found                          

W: Failed to fetch http://ppa.launchpad.net/maarten-fonville/android-studio/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

downloaded android-studio_4.13.0-ubuntu0_all.deb

然后

$ sudo dpkg -i android-studio_4.13.0-ubuntu0_all.deb 
(Reading database ... 297784 files and directories currently installed.)
Unpacking android-studio (from android-studio_4.13.0-ubuntu0_all.deb) ...
--2017-07-16 09:49:55--  https://dl.google.com/dl/android/studio/ide-zips/1.5.0.4/android-studio-ide-141.2422023-linux.zip
Resolving dl.google.com (dl.google.com)... 216.58.201.110, 2a00:1450:4014:801::200e
Connecting to dl.google.com (dl.google.com)|216.58.201.110|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-07-16 09:49:55 ERROR 404: Not Found.

dpkg: error processing android-studio_4.13.0-ubuntu0_all.deb (--install):
 subprocess new pre-installation script returned error exit status 8
Errors were encountered while processing:
 android-studio_4.13.0-ubuntu0_all.deb

0 个答案:

没有答案