'sudo apt-get update' / 'sudo apt-get upgrade' retornou erro para pacotes

2

Eu estava fazendo apt-get update e apt-get upgrade ; em apt-get upgrade ficou com carga por 45 minutos e quando terminou retornou com um erro.

Isto é o que eu li:

Archive:  /opt/android-studio-ide-141.2288178-linux.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /opt/android-studio-ide-141.2288178-linux.zip or
        /opt/android-studio-ide-141.2288178-linux.zip.zip, and cannot find /opt/android-studio-ide-141.2288178-linux.zip.ZIP, period.
find: '/opt/android-studio/': No such file or directory
find: '/opt/android-studio/': No such file or directory
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 1
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for gconf2 (3.2.6-0ubuntu2) ...
Processing triggers for libglib2.0-0:amd64 (2.40.2-0ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/android-studio_4.12.0-ubuntu0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Como faço para corrigir isso ??

    
por KatyN 12.10.2015 / 17:49

1 resposta

0

O script de pós-instalação bloqueia o sistema e, neste caso, a solução é simples, os scripts de pós-remoção e pré-remoção estão ok. Portanto, remova o pacote via

sudo apt-get remove android-studio

e eu diria, também o PPA. Existem métodos mais confiáveis para instalar o Android Studio.

sudo apt-get install ppa-purge
sudo ppa-purge ppa:paolorotolo/android-studio
    
por A.B. 12.10.2015 / 18:35