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

403 forbidden while update or pkg Install #1283

Closed
th3unkn0n opened this issue Oct 1, 2019 · 18 comments
Closed

403 forbidden while update or pkg Install #1283

th3unkn0n opened this issue Oct 1, 2019 · 18 comments

Comments

@th3unkn0n
Copy link

Issue : when ever I try to update / upgrade , Install a package I get 403 forbidden error & lot of other my friends have same issue.
Screenshot_20191001-232818_Termux
IMG-20191001-WA0026

@Grimler91
Copy link
Member

See termux/termux-packages#4358

@xx-anonymous
Copy link

xx-anonymous commented May 2, 2021

The "sources.list.d" directory at /data/data/com.termux/files/usr/etc/apt/sources.list.d/"
contains 2 repository files "game.list" and "science.list".

Using nano,vim or another text editor, comment out the repository url(s) in these file with "#".
For example: "#deb https://ld.bintray...."

Note: In the 403 error message, note the repository url causing the error during your "apt update" command.After finding the repository url causing the 403 error, try to do the same by commenting out that specific repository url in the source.list file and/or directory to make it inactive.

@xx-anonymous
Copy link

Translated the post in french.
Hopes this helps.

AnonymousxHacker a commenté il y a 6 jours
Le répertoire "sources.list.d" à /data/data/com.termux/files/usr/etc/apt/sources.list.d/ "
contient 2 fichiers de dépôt "game.list" et "science.list".

En utilisant nano, vim ou un autre éditeur de texte, commentez les URL du référentiel dans ces fichiers avec "#".
Par exemple: "#deb https: //ld.bintray ...."

Remarque: dans le message d'erreur 403, notez l'URL du référentiel à l'origine de l'erreur lors de votre commande "apt update". Après avoir trouvé l'URL du référentiel à l'origine de l'erreur 403, essayez de faire de même en commentant cette URL de référentiel spécifique dans le fichier source.list fichier et / ou répertoire pour le rendre inactif ou pour désutiliser cette URL de référentiel spécifique.

@trusktr
Copy link

trusktr commented May 13, 2021

I'm having this issue right now. Does it mean the server is overloaded again?

@trusktr
Copy link

trusktr commented May 13, 2021

Using nano,vim or another text editor, comment out the repository url(s) in these file with "#".
For example: "#deb https://ld.bintray...."

Which editor comes pre-installed? I can't edit those files because there is no nano or vim installed.

EDIT: Well, after catting those files, I see they only have one URL each (the URL with the issue), so it would be pointless to have zero URLs right?

EDIT: In lieu of not having a text editor available by default, I used commands like sed -i 's/deb /#dbe /g' game.list` to comment out the lines in each files.

That worked!

@AkechiShiro
Copy link

AkechiShiro commented May 14, 2021

I encountered this issue today, I would like to know why this issue happens, I do not have two lines in my source.list just one line and this issue still happens, nano was pre-installed for me however vim was not.

Edit: Misunderstood the workfix proposed here I edited "/data/data/com.termux/files/usr/etc/apt/sources.list.d/{game.list, science.list}" and this fixed my issue.

@Grimler91
Copy link
Member

@AkechiShiro see termux/termux-packages#6726

@thewh1teagle
Copy link

If someone facing the issue when you run
pkg install .... or pkg update
and get error 403 forbidden -
The simple fix for that:
run
apt upgrade
After that everything will work just fine.

@echoPATH

This comment has been minimized.

@Crazy-LJ
Copy link

Crazy-LJ commented May 31, 2021

Issue : when ever I try to update / upgrade , Install a package I get 403 forbidden error & lot of other my friends have same issue.
Screenshot_20191001-232818_Termux
IMG-20191001-WA0026

I suggest u to use tool Termux-fix

$git clone https://github.com/DARK-EAGLE-WARRIOR/Termux-fix.git

I created this tool from my same error
💯 It will also work for you also

@ghost
Copy link

ghost commented May 31, 2021

The problem here is that it uses termux.net domain which it is being used in Legacy environments, which in Newer Termux versions uses https://termux.org


use this solution as suggested
termux/termux-packages#6726

P.S. replace termux.net with grimler.se with your script

@Crazy-LJ
Copy link

Crazy-LJ commented May 31, 2021

If someone facing the issue when you run
pkg install .... or pkg update
and get error 403 forbidden -
The simple fix for that:
run
apt upgrade
After that everything will work just fine.

This is only for new termux version user
For legancy

If someone facing the issue when you run
pkg install .... or pkg update
and get error 403 forbidden -
The simple fix for that:
run
apt upgrade
After that everything will work just fine.

This above is only for new termux version
Legacy environments user can use Termux-fix tool
$git clone https://github.com/DARK-EAGLE-WARRIOR/Termux-fix.git
This tools install on our bin so
It can be use when error came

@xx-anonymous
Copy link

I'm having this issue right now. Does it mean the server is overloaded again?

Not sure what the problem is.
But reading error messages helps.

@xx-anonymous
Copy link

Using nano,vim or another text editor, comment out the repository url(s) in these file with "#".
For example: "#deb https://ld.bintray...."

Which editor comes pre-installed? I can't edit those files because there is no nano or vim installed.

EDIT: Well, after catting those files, I see they only have one URL each (the URL with the issue), so it would be pointless to have zero URLs right?

EDIT: In lieu of not having a text editor available by default, I used commands like sed -i 's/deb /#dbe /g' game.list` to comment out the lines in each files.

That worked!

Glad I could help.

@rajithpera
Copy link

If someone facing the issue when you run
pkg install .... or pkg update
and get error 403 forbidden -
The simple fix for that:
run
apt upgrade
After that everything will work just fine.

Thank you !!!

@clementherve
Copy link

So, I came across this issue, too.
I eventually changed the package repo URL (/data/data/com.termux/files/usr/etc/apt/sources.list) to "deb https://packages.termux.org/apt/termux-main/ stable main" (see https://packages.termux.org/).
I am leaving this here if it can be useful to anyone!

@ghost
Copy link

ghost commented Jul 30, 2021

Btw there is a pinned issue about repository change and 403/404 on old: termux/termux-packages#6726 and #2067

@richardeson
Copy link

If someone facing the issue when you run
pkg install .... or pkg update
and get error 403 forbidden -
The simple fix for that:
run
apt upgrade
After that everything will work just fine.

It's work like a charm.

Thank very much!

@termux termux deleted a comment from kevinsrm Oct 17, 2021
@ghost ghost locked and limited conversation to collaborators Oct 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests