2014-11-24 8 views
1

터미널을 통해 Android 스튜디오를 설치하려고했습니다. Android 스튜디오 설치

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) 

안녕하세요.

답변

4

패키지 관리자가 인터럽트를 계속 수행한다고해서 패키지 자체에 오류가없는 것은 아닙니다.

패키지를 제거하고 다시 시작하십시오.

먼저 퍼지 패키지 :

sudo apt-get purge android-studio 

이 (sudo apt-get install android-studio를) 다음에 남아있는 문제 (sudo dpkg --configure -a 또는 sudo apt-get update)을 수정 한 후 다시 설치를 실행합니다.

+0

이 해결책을 시도했지만 여전히 같은 오류가 발생했습니다. – Lnux

관련 문제