无法使用 apt-get 安装软件包(奇怪的错误)

无法使用 apt-get 安装软件包(奇怪的错误)
    prathya@Shriyansh:~$ sudo apt-get install  i8kutils
    [sudo] password for prathya: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    i8kutils is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue? [Y/n] y
    Setting up android-studio (4.5-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)

我不知道 Android Studio 与它有什么关系..

答案1

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

首先清除包:

$ sudo apt-get purge android-studio

相关内容