Termux update error

Не работает apt upgrade и apt update в termux У меня не работают команды apt и выдают ошибку: $ apt-get upgrade Reading package lists… Error! E: Couldn’t create temporary file to work with /data/data/com.termux/files/usr/var/lib/apt/lists/termux.org_packages_dists_stable_Release — mkstemp (2: No such file or directory) E: The package lists or status file could not be parsed or […]

Содержание

  1. Не работает apt upgrade и apt update в termux
  2. Вот это выводит
  3. Package Error #6693
  4. Comments
  5. apt update and most of other commands with apt do not work and give errors #7220
  6. Comments
  7. Can not update using apt #99
  8. Comments
  9. Update

Не работает apt upgrade и apt update в termux

У меня не работают команды apt и выдают ошибку: $ apt-get upgrade Reading package lists… Error! E: Couldn’t create temporary file to work with /data/data/com.termux/files/usr/var/lib/apt/lists/termux.org_packages_dists_stable_Release — mkstemp (2: No such file or directory) E: The package lists or status file could not be parsed or opened.

Разберись почему apt не может создать temporary file, возможно места нет на диске, не хватает прав, или файловая система смонтирована только для чтения. Освой уже переводчик, apt же на чистом английском говорит тебе что ему не нравится. Тебе нужно всего лишь понять и исправить. Судя по $ ты apt от юзера запускаешь. Запускай от рута, у юзера прав не хватает.

Там не надо от рута, вы не понимаете суть Termux

Я даже не знаю что это такое. Вижу что apt временный файл создать не может, вот и предположил. Погуглил, тёмный лес для меня, андроид. Зря влез, извиняюсь.

В termux попробуй использовать pkg update и pkg upgrade .

Но скорее это одно и то же там 🙂

При этих командах такая же ошибка

А баг похож на твой? Там какое-то решение приводится,кажется

Вот это выводит

Ign:2 https://dl.bintray.com/grimler/game-packages-24 games InRelease Ign:3 https://dl.bintray.com/grimler/science-packages-24 science InRelease Ign:4 https://dl.bintray.com/xeffyr/unstable-packages unstable InRelease Ign:1 https://dl.bintray.com/termux/termux-packages-24 stable InRelease Get:6 https://dl.bintray.com/grimler/game-packages-24 games Release [5344 B] Get:7 https://dl.bintray.com/grimler/science-packages-24 science Release [6191 B] Get:8 https://dl.bintray.com/xeffyr/unstable-packages unstable Release [6065 B] Get:5 https://dl.bintray.com/termux/termux-packages-24 stable Release [6061 B] Get:9 https://dl.bintray.com/grimler/game-packages-24 games Release.gpg [475 B] Get:10 https://dl.bintray.com/grimler/science-packages-24 science Release.gpg [475 B] Err:9 https://dl.bintray.com/grimler/game-packages-24 games Release.gpg Couldn’t create temporary file /data/data/com.termux/files/usr/tmp/apt.conf.La09AA for passing config to apt-key Err:10 https://dl.bintray.com/grimler/science-packages-24 science Release.gpg Couldn’t create temporary file /data/data/com.termux/files/usr/tmp/apt.conf.ZXTUuK for passing config to apt-key Get:11 https://dl.bintray.com/xeffyr/unstable-packages unstable Release.gpg [821 B] Err:11 https://dl.bintray.com/xeffyr/unstable-packages unstable Release.gpg Couldn’t create temporary file /data/data/com.termux/files/usr/tmp/apt.conf.LpsX6h for passing config to apt-key Get:12 https://dl.bintray.com/termux/termux-packages-24 stable Release.gpg [821 B] Err:12 https://dl.bintray.com/termux/termux-packages-24 stable Release.gpg Couldn’t create temporary file /data/data/com.termux/files/usr/tmp/apt.conf.zdX2SJ for passing config to apt-key Fetched 26.3 kB in 1s (18.4 kB/s) Reading package lists… Error! W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.bintray.com/grimler/game-packages-24 games Release: Couldn’t create temporary file /data/data/com.termux/files/usr/tmp/apt.conf.La09AA for passing config to apt-key W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.bintray.com/grimler/science-packages-24 science Release: Couldn’t create temporary file /data/data/com.termux/files/usr/tmp/apt.conf.ZXTUuK for passing config to apt-key W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.bintray.com/xeffyr/unstable-packages unstable Release: Couldn’t create temporary file /data/data/com.termux/files/usr/tmp/apt.conf.LpsX6h for passing config to apt-key W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.bintray.com/termux/termux-packages-24 stable Release: Couldn’t create temporary file /data/data/com.termux/files/usr/tmp/apt.conf.zdX2SJ for passing config to apt-key W: Failed to fetch https://dl.bintray.com/grimler/game-packages-24/dists/games/Release.gpg Couldn’t create temporary file /data/data/com.termux/files/usr/tmp/apt.conf.La09AA for passing config to apt-key W: Failed to fetch https://dl.bintray.com/grimler/science-packages-24/dists/science/Release.gpg Couldn’t create temporary file /data/data/com.termux/files/usr/tmp/apt.conf.ZXTUuK for passing config to apt-key W: Failed to fetch https://dl.bintray.com/xeffyr/unstable-packages/dists/unstable/Release.gpg Couldn’t create temporary file /data/data/com.termux/files/usr/tmp/apt.conf.LpsX6h for passing config to apt-key W: Failed to fetch https://termux.org/packages/dists/stable/Release.gpg Couldn’t create temporary file /data/data/com.termux/files/usr/tmp/apt.conf.zdX2SJ for passing config to apt-key W: Some index files failed to download. They have been ignored, or old ones used instead. E: Couldn’t create temporary file to work with /data/data/com.termux/files/usr/var/lib/apt/lists/termux.org_packages_dists_stable_Release — mkstemp (2: No such file or directory) E: The package lists or status file could not be parsed or opened.

Если что-то не работает, значит оно не должно работать.

Поработай за него ^ автора apt-get

У меня идентично такая же ошибка. Решения пока не нашёл. Если найдёте решение — обязательно отпишитесь.

Источник

Package Error #6693

Hello, I recently tried an apt update command on my termux, but when I run some commands it gets all errors, when I run the apt update command an error appears as below:

$ apt update Ign:1 https://dl.bintray.com/grimler/game-packages-24 games InRelease Ign:2 https://dl.bintray.com/grimler/science-packages-24 science InRelease Err:3 https://dl.bintray.com/grimler/game-packages-24 games Release 403 Forbidden Ign:4 https://main.termux-mirror.ml stable InRelease Err:5 https://dl.bintray.com/grimler/science-packages-24 science Release 403 Forbidden Err:6 https://main.termux-mirror.ml stable Release Redirection from https to ‘http://ww38.main.termux-mirror.ml/dists/stable/Release’ is forbidden 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?). E: The repository ‘https://main.termux-mirror.ml stable 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?).

And when I run an install command like pkg install php it shows an error like this:

$ pkg install php Checking availability of current mirror: ok Reading package lists. Done Building dependency tree. Done E: Unable to locate package php

how do i fix this?

The text was updated successfully, but these errors were encountered:

Источник

apt update and most of other commands with apt do not work and give errors #7220

So i have recently installed termux(on samsung galaxy Note 9 if that could help). I really like the idea of linux terminal on android but after installation i started having some issues with this app. For some time no package managers like apt pkg and etc were working for me but somehow after several reinstalls problem with pkg was partially solved. But whatever i wouldn’t do, apt rarely ever worked for me. It worked only ones when i was installing sl ( just for fun ). In any other cases like installing some package like docker or apt update it was giving this errors:

apt update error:

$ apt update
Hit:1 https://termux.mentality.rip/termux-packages-24 stable InRelease
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 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?).

docker installation error:

$ apt-get install docker.io -y
Reading package lists. Done
Building dependency tree Reading state information. Done
E: Unable to locate package docker.io
E: Couldn’t find any package by glob ‘docker.io’
E: Couldn’t find any package by regex ‘docker.io’

The text was updated successfully, but these errors were encountered:

Источник

Can not update using apt #99

Hey, I reinstalled the app, and executed ‘apt update’, then failed. here is the screenshot.

The text was updated successfully, but these errors were encountered:

Could you try accessing http://apt.termux.com/dists/stable/InRelease in the browser on the device, and try running

Could you also paste the output of uname -a and apt —version?

Also, which Android device do you run? Which Android version? Running a custom ROM?

@fornwall thanks, please find it here. I installed termux from Google Play.
My phone is HTC M8, with the official ROM, android version 5.0.1, rooted.

And I tried to download the InRelease file, it seems not working for me.

oops, I am sorry, I closed this issue by mistake, could you please reopen it?

And I tried to download the InRelease file, it seems not working for me.

Can you access it (http://apt.termux.com/dists/stable/InRelease) in your Android browser? If not, what happens (blank page or error message)?

@fornwall I am sorry, I make you confused. I mean I can access it in browser, and also be able to download it with wget. But apt install still did not work for me.

@indam Ok, thanks for the confirmation! I’m trying to reproduce the problem, but I’m still unable to do so. So if you have the possibility to try a few things it would be helpful:

(1) Update to the latest apt version by hand, and see if it works afterwards:

(2) If the problem still persists, could you run the following and append the output here?

(3) Later, could you install strace by hand:

Then run the following

and upload the log.txt somewhere and link to it (or mail the file to me)?

@fornwall Yes, I put the screenshot here, and you can also find the log file as attachment.


@indam Thanks for all the help!

It seems that apt loads the url fine, but for some reason the lib/apt/methods/http binary seem to hit the line

in the system DNS resolver, res_send.c. This output interferes with the text-based protocol through which apt communicates with lib/apt/methods/http . Root cause still unknown.

@fornwall You are welcome. I hope this can be solved soon, and if you need more investigation, do not hesitate to contact me.

have you guys tried on another network? if you’re on 3G try wifi, if on wifi try 3G or another wifi, and so on

Also, notice this message in the first line:

res_send: select: Connection refused

It might be an issue on the server where the packages are hosted. Maybe hosting them on a mirror could help to diagnose the issue?

There was a DNS change done for apt.termux.com (updating the SOA record in the DNS zone to ensure it lines up with the nameservers in use by the domain) two days ago, could you try again if it works for you now @indam?

If it’s still a problem, could you install curl and check if e.g. curl http://apt.termux.com/ gives any error output (just ruling out some possible errors)?

There are issues with wget and apt. Curl works okay it seems.

  • not rooted
  • OS v5.0.2
  • HTC Desire Eye type phone

maybe try verbosities of curl and wget to see effectively what IP address they’re trying to download from?

@fornwall I tried again, still the same problem. And I do not think this is due to the network, because I tried using different VPNs, it is still like this.

I test with curl, it seems fine. No errors found. @franciscod

Update

Manually installed all available updates in arm binaries under release packages using dpkg. No changes to apt error.

All packages installed:

I was able to reproduce the problem on a HTC One X with stock ROM, so I would guess that this is a HTC problem (the apt http code triggering debug logging on HTC system builds). Will look into it!

EDIT: no, server seems to be flaky.

Hi, finally this issue with (certain?) HTC devices not working with apt can now be resolved! It’s fixed in a new version of the apt package, version 1.1.6 . This now comes as part of the bootstrap installation for new users.

For users stuck with the current non-working apt version, you can either re-install the application, or execute the following commands:

This should work around the issue and update apt to the working version 1.1.6 , after which you can update and install packages as normal.

Thanks a lot for all the information provided which helped pinpoint where the problem was!

Thank you, it works for me now. 😀

👍 Working for my system as well. Thank you, @fornwall. Would it be possible to receive an explanation of the underlying issue and what this workaround is doing? Thank you for your time on this issue.

@jlefman The problem was that apt version 1.1 introduced support for SRV records, whose retrieval using system functions seems to cause debug logging on (certain?) HTC devices — perhaps due to HTC having left the debug flag on by mistake.

This debug output from a dedicated http fetching process in apt led to apt not being able to parse the http response, which caused to this problem.

The solution was to patch apt to disable SRV records by default for now, since it’s not something used by the Termux apt.

Источник

I tried updating my package list but got the following error.

$ pkg update

Checking availability of current mirror: ok           
Ign:1 https://dl.bintray.com/grimler/game-packages-24 games InRelease                            
Ign:2 https://dl.bintray.com/grimler/science-packages-24 science InRelease     
Hit:3 https://termux.mentality.rip/termux-packages-24 stable 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
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?).

Somebody know how to fix this problem?

General Grievance's user avatar

asked May 22, 2021 at 8:28

AmubaCraft's user avatar

1

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! :)

Also btw, termux is permanently shutting down bintary hosted repos example :

https://dl.bintray.com/grimler/game-packages-24 games InRelease
https://dl.bintray.com/grimler/science-packages-24 science InRelease

answered Jun 13, 2021 at 7:05

Havish.S's user avatar

Havish.SHavish.S

6953 silver badges9 bronze badges

7

Solve Termux repository is under maintenance or down issue

There are mainly 2 options to solve this issue:

Solution 1:

If possible, use Termux from F-Droid because there are some problems with the one from Google Play.

Solution 2:

If you are unable to update or install any package in termux then you can follow the below method to solve this issue.

  1. First of all type the below command:
termux-change-repo
  1. Now You will see the main repo will be already selected and you just have to check all ( select all ) gaming as well as the science repo and then tap on the OK button.

  2. Now you have to switch from official repo to Alberto repo just select the Alberto Repo and tap on OK Button and the problem will be sloved.
    p.s. If Alberto is not working, then try switching to other repos.

Source : https://www.learntermux.tech/2021/08/termux-repository-under-maintenance.html

answered Aug 22, 2021 at 13:20

Khan Saad's user avatar

Khan SaadKhan Saad

7991 gold badge8 silver badges25 bronze badges

3

you can also use

termux-change-repo #Note : Do not select Bintray repo or it will not work

Or

Remove science and game repo packages to fix it
This problem is caused by the shutdown of bintray repos

the orginal post is from r/Termux

answered Jun 15, 2021 at 4:06

Havish.S's user avatar

Hey Guys 🙋‍♂️, for the past few weeks whenever you try to use the update or any install commands you get Termux 403 Error or Termux Repository under maintenance error.  So today in this post i am gonna show you guys how you can solve these issues in few clicks 🐱‍🏍.

Termux Repository Under Maintenance Issue SOLVED

The repository is under maintenance or down (wrong sources.list URL?) is an error caused by shut down of bintray repos of termux. so to solve this issue we just have to change the repo to a working mirror. 

Termux Repository under maintenance error :

Sometimes when you try to use any termux command that requires some data from the server then you get the termux repository is under maintenance error and no matter how many times you restart your termux app it will show the same error. you can also get 403 ( forbidden error )

How To SOLVE Termux Repository Under Maintenance Error:

To solve this issue you just have to follow the below simple steps.

Step 1:

First of all open your termux app, and then type the below command and press enter. ( you can also copy and paste it from below).

termux-change-repo

Step 2:

Now you will see a pop-up window, the Main repository will be auto-selected and you just have to select Game Repository and Science repository by tapping between square brackets as shown in the below picture. After selecting All 3 of the repositories just click on the OK button. 

Termux Repository Under Maintenance Issue SOLVED

Step 3:

Now, this is the last part, You just have to switch from the official reposit to the Mirrors by Griml or A1batross, to switch, just select the mirrors by clicking between the brackets as shown in the below picture and the Press OK button.

Termux Repository Under Maintenance Issue SOLVED

Now. termux will auto-update some stuff and then all the issues will be solved. you can type pkg update command to check it. If by selecting Grimler you are still facing the issue then you just have to change it to A1batross.  

Conclusion :

Termux Repository under maintenance is a simple repository issue that you can solve in 3 simple steps, it won’t even take more than 30 seconds. in this post I have told you to select grimler because that is the repo I use, but in the future, if you face any issue with grimler you can select other repos ( excluding official one). if you have any questions you can ask me in the comments below. Thanks for reading guys and as always stay ethical👾.

Понравилась статья? Поделить с друзьями:
  • Termotrans ошибка е01
  • Terminator resistance ошибка fatal error при запуске
  • Terminator resistance не запускается fatal error
  • Terminate called after throwing an instance of std logic error
  • Temporary failure resolving archive ubuntu com как исправить