Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[README] Bintray repository hosting shut down | Error 403 Forbidden | Error 404 #2067

Open
ghost opened this issue May 16, 2021 · 22 comments
Open

Comments

@ghost
Copy link

ghost commented May 16, 2021

All Termux repositories previously hosted on JFrog Bintray are down since 1st May, 2021. This means that all repositories hosted on dl.bintray.com domain are not available anymore. There nothing can be done on our side because Bintray service announced its sunset.

Ign:2 https://dl.bintray.com/grimler/game-packages-24 games InRelease
Ign:3 https://dl.bintray.com/grimler/science-packages-24 science InRelease
Err:4 https://dl.bintray.com/grimler/game-packages-24 games Release
  403  Forbidden
Err:5 https://dl.bintray.com/grimler/science-packages-24 science Release
  403  Forbidden
Get:1 https://grimler.se/termux-packages-24 stable InRelease [13.1 kB]
Get:6 https://grimler.se/termux-packages-24 stable/main all Packages [21.6 kB]
Get:7 https://grimler.se/termux-packages-24 stable/main aarch64 Packages [269 kB]
Reading package lists... Done
E: The repository 'https://dl.bintray.com/grimler/game-packages-24 games Release' does not have a Release file.
N: Metadata integrity can't be verified, repository is disabled now.
N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).
E: The repository 'https://dl.bintray.com/grimler/science-packages-24 science Release' does not have a Release file.
N: Metadata integrity can't be verified, repository is disabled now.
N: Possible cause: repository is under maintenance or down (wrong sources.list URL?).

What you should do as Termux user (only for Android 7+)

You need to pick a one of the available mirrors by using utility termux-change-repo or manually edit sources.list by replacing the Bintray URL with value obtained from Termux Mirrors List.

Beware of third-party scripts claiming theirselves as repository fixers! They could install untrusted GPG key and redirect your Termux installation onto malicious repository. Official tool for changing repositories is bundled within Termux and called termux-change-repo.

Usage of termux-change-repo is simple:

  1. Select one or more repositories for which you want to change mirror by tapping "space" and navigating over list by up/down arrow keys. Tap enter to confirm the choice.
    Screenshot_20210602-004033
  2. Pick a mirror, it is recommended to begin with mirror hosted by Grimler. Same as previously, navigate over list by arrow keys, pick mirror by space key and confirm choice by pressing "enter".
    Screenshot_20210602-004103

Highly recommended to run pkg upgrade after changing mirror.

screen-20210427-154621.2.mp4

If you get E: Repository .. changed its .. value from 'Bintray' to ..

Package manager can show you a notification with prompt which look like this one:

E: Repository 'https://grimler.se/termux-root-packages-24 root InRelease' changed its 'Origin' value from 'Bintray' to 'termux-root-packages-24 root'
E: Repository 'https://grimler.se/termux-root-packages-24 root InRelease' changed its 'Label' value from 'Bintray' to 'termux-root-packages-24 root'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] 

It is completely normal. Answer "yes" to this prompt. It will be shown only once per repository, so package manager will ask you to confirm for game-repo, science-repo, etc separately but you will need to confirm them only one time.


Do not use Termux app from Google Play. It is deprecated.

Use Termux application from F-Droid, here is the link: https://f-droid.org/en/packages/com.termux/. Google Play variant is deprecated, doesn't receive updates and contains issues as well as outdated repository URLs.

Before migrating to F-Droid Termux version, uninstall the application and all add-ons like Termux:API, Termux:Styling, Termux:Widget and others. This is a required step because of signature mismatch between F-Droid and Google Play variants. If you need to back up data before uninstalling app, you can use suggestions from https://wiki.termux.com/wiki/Backing_up_Termux.


Remember that Android 5.x - 6.x is NOT SUPPORTED!

Android OS version range 5.x - 6.x has been deprecated since 01.01.2020 and no longer worked on anymore. Provided here repository workarounds are only for Android 7.0. We never announced that bringing back support of legacy Android versions.

If you managed to put an URL of our mirrors to your sources.list and upgrade your legacy Termux, do not complain about broken installation. If maintainers marked something as unsupported, perhaps there is a reason for that, isn't it?

Discussions about Android 5.x - 6.x are off-topic here.

Remember that VMOS and F1VM environments are NOT SUPPORTED!

These "virtual" environments are not supported by Termux. They have a number of issues including broken apt-key.

Discussions about VMOS and F1VM are off-topic here.

@ghost ghost pinned this issue May 16, 2021
@ghost
Copy link
Author

ghost commented May 16, 2021

Copied from termux/termux-packages#6726 to make it more visible.

@ghost ghost added the information label May 16, 2021
@ghost
Copy link

ghost commented May 18, 2021

Why isn't the app simply removed from the Play Store, and Grimler set as the default instead of Bintray? The latter suggestion would make usage of Termux simpler.

@ghost
Copy link
Author

ghost commented May 18, 2021

Why isn't the app simply removed from the Play Store

That's question to @fornwall. Only he has access to Play Store developer account where Termux app is published.

and Grimler set as the default instead of Bintray

Repositories are hardcoded into sources.list and sources.list.d configs which come with the default package set extracted on the first installation. Thus if application can't be updated and bundled URLs are dead, you'll have to fix them manually after installing the app.

Latest releases from F-Droid already contain the fixed sources.list configs. No need to fix them manually if using Termux v0.112 or newer. Moreover grimler.se shouldn't be selected as default repository when using the latest application version. It was recommended only for fixing these http 403/404 errors since it is the one of official mirrors that didn't changed URL over time.

@officialsakil
Copy link

What should i do as Termux (VMOS user)

@ghost
Copy link
Author

ghost commented May 22, 2021

@officialsakil You can try the termux-change-repo to fix repository URLs, though that unlikely will make Termux run flawlessly on VMOS.

Please re-read the top message:

Remember that VMOS and F1VM environments are NOT SUPPORTED!
These "virtual" environments are not supported by Termux. They have a number of issues including broken apt-key.
Discussions about VMOS and F1VM are off-topic here.

I you still have troubles with using Termux in VMOS after termux-change-repo to switching ALL (!) repositories and shown error is something about apt-key failure or "segmentation fault", report issue to VMOS developers. This not Termux issue but rather weirdness of VMOS pseudo-virtualization or Android OS implementation.

My suggestion is to use Termux only on real device and not in these "VMs".

@bulieme
Copy link

bulieme commented Jul 1, 2021

i prefer to remove the game, science repositories.

@robertvandeneynde
Copy link
Contributor

Why isn't the app simply removed from the Play Store

That's question to @fornwall. Only he has access to Play Store developer account where Termux app is published.

Then what @fornwall said ? And I don't understand why termux can't be on the play store anymore, maybe make a post on the wiki about it ?

@Grimler91
Copy link
Member

Then what @fornwall said ?

He has not responded to our attempts to contact him so far (emails and sms)

And I don't understand why termux can't be on the play store anymore

This has been discussed in #1072 and #2155. There is also a (github) wiki page about it

@ghost
Copy link
Author

ghost commented Sep 6, 2021

maybe make a post on the wiki about it

Maybe need to do search before asking for already existing Termux Wiki page? https://wiki.termux.com/wiki/Termux_Google_Play

@ghost ghost changed the title [README] Bintray repositories are down now [README] Bintray repository hosting shut down | Error 403 Forbidden | Error 404 Sep 9, 2021
@D4RKH0R1Z0N
Copy link

D4RKH0R1Z0N commented Oct 19, 2021

I also had this problem and I found a way to slove this Follow these steps :

pkg remove game-repo
pkg remove science-repo
pkg update

It should work now! :)

@sebma
Copy link

sebma commented Nov 26, 2021

Just for those who were wondering (like me) where the sources.list file was. It is located in $PREFIX/etc/apt/sources.list.

@sebma
Copy link

sebma commented Nov 28, 2021

For those who (like me) didn't have the termux-change-repo tool installed, the termux-tools package provides it.

@7MODE201911
Copy link

termux-change-repo

@Grimler91
Copy link
Member

@zulfahmiweb download and install latest termux-keyring package:

curl -LO https://packages.termux.org/apt/termux-main/pool/main/t/termux-keyring/termux-keyring_2.4_all.deb 
apt install ./termux-keyring_2.4_all.deb 
apt update && apt dist-upgrade -yq 

@vishnudas-bluefox
Copy link

I also had this problem and I found a way to slove this Follow these steps :

pkg remove game-repo
pkg remove science-repo
pkg update

It should work now! :)

This worked for me 😁 thankyou

@agnostic-apollo agnostic-apollo unpinned this issue Feb 15, 2022
@termux termux deleted a comment from DTDuD33 Mar 25, 2022
@D4RKH0R1Z0N
Copy link

I also had this problem and I found a way to slove this Follow these steps :

pkg remove game-repo
pkg remove science-repo
pkg update

It should work now! :)

This worked for me 😁 thankyou

Your welcome

@GhostHackers22
Copy link

After using the command "termux-change-repo" it then gave me countries mirror options instead of the one highlighted above. Please I need clarification

@Jackwaggon33
Copy link

may try to use termux-chroot from package 'proot':

$ pkg install proot
$ termux-chroot
$ ls /usr
bin doc etc include lib libexec share tmp var
The

@beachfukntrash
Copy link

termux-change-repo

@termux termux deleted a comment Aug 23, 2023
@reason172
Copy link

It's really work out

@robertvandeneynde
Copy link
Contributor

robertvandeneynde commented Feb 7, 2024 via email

@Eitesin
Copy link

Eitesin commented Aug 21, 2024

Ya I recommend using the app called "userland" for android way better and it has various Linux os

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

16 participants