Ubuntu – Error(s) while installing Android Studio using umake

android-studioubuntu-make

I'm trying to install Android Studio using umake with the command

sudo umake android android-studio 

and I get the following errors:

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.

How can I solve this issue? Searching on Google didn't help.


umake version: 16.11.1
on Ubuntu 16.04.1 LTS 64-bit


UPDATE (after dgonzalez answer)

I followed your answer and now the error changes from a missing key to an expired key:

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.

Best Answer

Seems you have a missing GPG key for the required package(s).

You are seeing this issue because apt cannot find a matching GPG key for the required package(s) installed on your system (maybe ubuntu-make ppa added correctly, but an error occurred when adding signing key¿?).

As a personal advice, i would consider always first using the default software channels, and only add a ppa if there is any special requirement(s) which default software doesn't cover.

Adding/retrieving GPG key(s) from keyserver.ubuntu.com

You can check if that certain GPG key exist in keyserver.ubuntu.com and automatically add it to your system. To do this simply run this on your terminal:

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

If the key exists, it will be added to your system and you'll be able to install ubuntu-make with sudo apt install ubuntu-make.

Reverting your system (removing the ppa)

If no packages were installed/changed, you can simply remove the ppa (repo) file and entry from apt sources, running the following command on your terminal:

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

However I'll always suggest best using ppa-purge (you can install it with sudo apt install ppa-purge), which in addition to remove the sources entry, it also removes the added keys and does all other genuflections, like reverting packages to their equivalent on the main repos (if any were installed).

Run this on your terminal to remove and purge ubuntu-make ppa using ppa-purge:

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

Tip: You can use bash autocompletion with Tab to fill ppa name.

Hope it helps.