Содержание
- Не работает apt upgrade и apt update в termux
- Вот это выводит
- Package Error #6693
- Comments
- apt update and most of other commands with apt do not work and give errors #7220
- Comments
- Can not update using apt #99
- Comments
- 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.
Источник
$ apt update
Hit:1 https://packages.termux.org/apt/termux-root root InRelease
Hit:2 https://packages.termux.org/apt/termux-unstable unstable InRelease
Hit:3 https://packages.termux.org/apt/termux-x11 x11 InRelease
Get:4 https://grimler.se/termux-packages-24 stable InRelease [16.8 kB]
Ign:5 https://dl.bintray.com/grimler/game-packages-24 games InRelease
Ign:6 https://dl.bintray.com/grimler/science-packages-24 science InRelease
Err:7 https://dl.bintray.com/grimler/game-packages-24 games Release 403 Forbidden
Err:8 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?).
$
Recently Termux moved the primary Termux package repository hosting from Bintray to IPFS since Bintray has shut down on May 1st, 2021. This has created problems for users while running package installation and update commands with pkg or apt and their commands will fail with errors similar to the following:
E: The repository 'https://termux.org/packages stable Release' does no longer 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/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://science.termux-mirror.ml 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?).
Also Read:
How to Get 2 TB Cloud Storage Space for Free- Best Termux Phishing Tool
If you want to solve this termux error then just enter the below commands:
Open Termux- termux-change-info
- Now choose between game or science repo
- Then select a mirror
- Test all the mirrors until you find a working one.
Watch Video Tutorial:
-
#2
я уже давно писал, что не надо извращаться с такой установкой.
Все гораздо проще:
apt update && apt upgrade -y
Далее нужно включить в репозитории нестабильные пакеты:
apt install unstable-repo
Устанавливаем Metasploit:
apt install metasploit
Запуск стандартный:
msfconsole
Последнее редактирование модератором: 09.02.2020
HappyGamerTV667788
-
#3
я уже давно писал, что не надо извращаться с такой установкой.
Все гораздо проще:apt update & apt upgrade -y
Далее нужно включить в репозитории нестабильные пакеты:
apt install unstable-repoУстанавливаем Metasploit:
apt install metasploitЗапуск стандартный:
msfconsole
Спасибо, проверю
-
#4
я уже давно писал, что не надо извращаться с такой установкой.
Все гораздо проще:apt update && apt upgrade -y
Далее нужно включить в репозитории нестабильные пакеты:
apt install unstable-repoУстанавливаем Metasploit:
apt install metasploitЗапуск стандартный:
msfconsole
Не работает.
Код:
$ apt install unstable-repo
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package unstable-repo
$ apt install metasploit
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package metasploit
Подскажешь чего на этот счет?
-
#5
Не работает.
Код:
$ apt install unstable-repo Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package unstable-repo $ apt install metasploit Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package metasploitПодскажешь чего на этот счет?
все работает
надо писать pkg install, а не apt install
-

Screenshot_2020-04-15-12-56-30-298_com.termux.jpg
306,4 КБ
· Просмотры: 398
Последнее редактирование: 15.04.2020
-
#6
все работает
надо писать pkg install, а не apt install
Ситуация таже.
Говорю же, я многое испробовал.
Вопрос решил. Если кому-то интересно, пишите в лс.
В случае актуальности вопроса, напишу статью по решению данной проблемы.
-
#7
Ситуация таже.
Говорю же, я многое испробовал.Вопрос решил. Если кому-то интересно, пишите в лс.
В случае актуальности вопроса, напишу статью по решению данной проблемы.
Помоги мне решить проблему. Проблема такая же как у тебя
-
#8
Ситуация таже.
Говорю же, я многое испробовал.Вопрос решил. Если кому-то интересно, пишите в лс.
В случае актуальности вопроса, напишу статью по решению данной проблемы.
как ты решил
-
#9
Попробуте включить VPN и все установку заново с включеным VPN провести.
Мне помогло, а так тоже долго парился с установкой.
Попробуте включить VPN и все установку заново с включеным VPN провести.
Мне помогло, а так тоже долго парился с установкой.
-
#10
Не работает E: Unable to locate package metasploit как решить