Перейти к содержимому

No such file or directory termux что делать

  • автор:

whoa there, pardner!

Your request has been blocked due to a network policy.

Try logging in or creating an account here to get back to browsing.

If you’re running a script or application, please register or sign in with your developer credentials here. Additionally make sure your User-Agent is not empty and is something unique and descriptive and try again. if you’re supplying an alternate User-Agent string, try changing back to default as that can sometimes result in a block.

You can read Reddit’s Terms of Service here.

if you think that we’ve incorrectly blocked you or you would like to discuss easier ways to get the data you want, please file a ticket here.

when contacting us, please include your ip address which is: 178.132.111.61 and reddit account

Не работает 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.

danaan
17.06.20 13:15:30 MSK

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

Jameson ★★★★★
( 17.06.20 13:27:24 MSK )
Ответ на: комментарий от Jameson 17.06.20 13:27:24 MSK

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

xDShot ★★★★★
( 17.06.20 13:42:21 MSK )
Ответ на: комментарий от xDShot 17.06.20 13:42:21 MSK

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

Jameson ★★★★★
( 17.06.20 13:44:27 MSK )
Последнее исправление: Jameson 17.06.20 13:45:44 MSK (всего исправлений: 1)

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

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

grem ★★★★★
( 17.06.20 14:01:10 MSK )
Последнее исправление: grem 17.06.20 14:03:31 MSK (всего исправлений: 2)

Ответ на: комментарий от grem 17.06.20 14:01:10 MSK

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

danaan
( 17.06.20 18:39:03 MSK ) автор топика
Ответ на: комментарий от danaan 17.06.20 18:39:03 MSK

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

grem ★★★★★
( 17.06.20 18:40:37 MSK )
Ответ на: комментарий от grem 17.06.20 18:40:37 MSK

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

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.

danaan
( 17.06.20 18:45:31 MSK ) автор топика

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

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

Mirage1_ ★
( 25.06.20 17:13:18 MSK )
6 июля 2021 г.

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

How to Fix “No such file or directory” Error in Termux

Termuxapk

If you’re a Termux user and have encountered the frustrating “No such file or directory” error, you’re not alone. This common error often occurs when you try to access a file or execute a command that doesn’t exist or has been misplaced within the Termux environment.

Table of Contents

  • Check the File or Directory Path
  • Ensure Proper Permissions
  • Update and Upgrade Termux Packages
  • Reinstall the Problematic Package
  • Check for File System Errors
  • Clear Cache and Restart Termux
  • Seek Help from the Community
  • Conclusion

Thankfully, fixing this error is usually straightforward, and in this guide, we’ll walk you through the steps to resolve it. Let’s get started!

Check the File or Directory Path

The first step is to verify that the file or directory you’re trying to access actually exists in the specified location. Double-check the path you’re using to ensure its accuracy. It’s easy to make typos or misspellings, which could lead to the “No such file or directory” error.

Ensure Proper Permissions

Another common cause of this error is insufficient permissions to access the file or directory. Check the permissions on the file or directory by using the “ls -l” command. If the permissions are set incorrectly, you can modify them using the “chmod” command.

Update and Upgrade Termux Packages

Outdated packages in Termux can also trigger the “No such file or directory” error. To avoid this, update and upgrade all your Termux packages regularly. Use the following commands:

  1. pkg update – to update the package lists
  2. pkg upgrade – to upgrade the installed packages

Reinstall the Problematic Package

If the error is specific to a particular package or application in Termux, consider reinstalling it. Sometimes, during updates or installations, files can go missing or get corrupted. Reinstalling the package can often resolve the issue.

Check for File System Errors

File system errors can also cause the “No such file or directory” error. To check for and repair any potential file system issues, use the “fsck” command followed by the path of the affected file system.

Clear Cache and Restart Termux

Caches can accumulate over time and cause various errors, including the one you’re encountering. Clear the cache using the “rm -rf ~/.cache” command, and then restart Termux to see if the problem persists.

Seek Help from the Community

If none of the above steps resolve the error, consider seeking help from the Termux community. Online forums, social media groups, or the official Termux website may have solutions to more specific or rare cases of the “No such file or directory” error.

Conclusion

Encountering the “No such file or directory” error in Termux can be frustrating, but with the right steps, it can be easily fixed. By double-checking file paths, verifying permissions, updating packages, and following the other methods mentioned in this guide, you should be able to resolve the issue and continue using Termux smoothly.

Remember to stay up-to-date with the latest software and seek help from the community when needed. Happy coding in Termux!

Файл сушествует. но "No such file or directory"

Имеется файл, исполняемый бинарник (может ошибаюсь с определением, не профильным делом пришлось заниматься), находится в /usr/local/somedir/sbin. Смотрю ls -l — файл есть, но при попытке обратиться к файлу получаю «No such file or directory». Все действия под рутом, ОСь Debian 5 Lenny. Почему так может быть?

  • Вопрос задан более трёх лет назад
  • 153242 просмотра

2 комментария

Оценить 2 комментария

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *