LINUX.ORG.RU

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

 


1

2

У меня не работают команды 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 от юзера запускаешь. Запускай от рута, у юзера прав не хватает.

Jameson ★★★★ ()
Ответ на: комментарий от xDShot

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

Jameson ★★★★ ()
Последнее исправление: Jameson (всего исправлений: 1)
Ответ на: комментарий от grem

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

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 ()