使用 umake 安装 Android Studio 时出错

使用 umake 安装 Android Studio 时出错

我正在尝试使用umake以下命令安装 Android Studio

sudo umake android android-studio 

我收到以下错误:

Downloading and installing requirements
| ERROR: W:GPG error: http://download.opensuse.org/repositories/home:/olav-st/xUbuntu_16.04  Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1BE1E8D7A2B5E9D5, W:The repository 'http://download.opensuse.org/repositories/home:/olav-st/xUbuntu_16.04  Release' is not signed., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., W:The repository 'http://ppa.launchpad.net/texlive-backports/ppa/ubuntu xenial Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., E:Failed to fetch http://ppa.launchpad.net/texlive-backports/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found, E:Some index files failed to download. They have been ignored, or old ones used instead.
    100% 
#########################################################################
| ERROR: Package requirements can't be met: W:GPG error: http://download.opensuse.org/repositories/home:/olav-st/xUbuntu_16.04  Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 1BE1E8D7A2B5E9D5, W:The repository 'http://download.opensuse.org/repositories/home:/olav-st/xUbuntu_16.04  Release' is not signed., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., W:The repository 'http://ppa.launchpad.net/texlive-backports/ppa/ubuntu xenial Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., E:Failed to fetch http://ppa.launchpad.net/texlive-backports/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found, E:Some index files failed to download. They have been ignored, or old ones used instead.

我该如何解决这个问题?在 Google 上搜索没有帮助。


umake版本:16.11.1 Ubuntu 16.04.1 LTS 64 位


更新(dgonzalez 回答之后)

我按照你的回答,现在错误从丢失钥匙密钥已过期

ERROR: W:The repository 'http://ppa.launchpad.net/texlive-backports/ppa/ubuntu xenial Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., W:GPG error: http://download.opensuse.org/repositories/home:/olav-st/xUbuntu_16.04  Release: The following signatures were invalid: KEYEXPIRED 1445355426, W:The repository 'http://download.opensuse.org/repositories/home:/olav-st/xUbuntu_16.04  Release' is not signed., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., E:Failed to fetch http://ppa.launchpad.net/texlive-backports/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found, E:Some index files failed to download. They have been ignored, or old ones used instead.
100% |#########################################################################|
ERROR: Package requirements can't be met: W:The repository 'http://ppa.launchpad.net/texlive-backports/ppa/ubuntu xenial Release' does not have a Release file., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., W:GPG error: http://download.opensuse.org/repositories/home:/olav-st/xUbuntu_16.04  Release: The following signatures were invalid: KEYEXPIRED 1445355426, W:The repository 'http://download.opensuse.org/repositories/home:/olav-st/xUbuntu_16.04  Release' is not signed., W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details., E:Failed to fetch http://ppa.launchpad.net/texlive-backports/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found, E:Some index files failed to download. They have been ignored, or old ones used instead.

答案1

似乎您缺少所需软件包的 GPG 密钥。

您看到此问题是因为apt无法找到系统上安装的所需软件包的匹配 GPG 密钥(也许ubuntu-makeppa 添加正确,但是添加签名密钥时出现错误?)

作为个人建议,我会考虑始终首先使用默认软件渠道,然后仅添加 ppa如果有的话特殊要求)默认软件没有覆盖。

添加/检索 GPG 密钥密钥服务器

您可以检查某个 GPG 密钥是否存在于密钥服务器并自动将其添加到您的系统中。为此,只需在您的终端上运行以下命令:

sudo apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 1BE1E8D7A2B5E9D5

如果该密钥存在,它将被添加到您的系统中,并且您将能够使用进行ubuntu-make安装sudo apt install ubuntu-make

恢复系统(删除 ppa)

如果没有安装或更改任何软件包,你可以直接删除 ppa(回购)文件和来自 apt 源的条目,在终端上运行以下命令:

sudo rm /etc/apt/sources.list.d/ubuntu-desktop-ubuntu-ubuntu-make-xenial.list*

不过我始终建议最好使用ppa-purge (你可以使用 安装它sudo apt install ppa-purge,除了删除源条目外,它还会删除添加的键并执行所有其他屈膝礼,例如将软件包恢复到主存储库上的对应版本(如果已安装)

在您的终端上运行此命令以删除并清除ubuntu-make ppa使用ppa-purge

sudo ppa-purge ppa:ubuntu-desktop/ubuntu-make

提示:您可以使用 bash 自动完成功能来Tab填写 ppa 名称。

希望能帮助到你。

相关内容