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

Cannot check Release signature & Failed getting release file errors #69

Open
pypy702 opened this issue Jul 24, 2020 · 7 comments
Open

Comments

@pypy702
Copy link

pypy702 commented Jul 24, 2020

I ran the debian_on_termux_10.sh script but this is what I get.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

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:1 https://dl.bintray.com/termux/termux-packages-24 stable InRelease
Get:5 https://dl.bintray.com/grimler/game-packages-24 games Release [5344 B]
Hit:5 https://dl.bintray.com/grimler/game-packages-24 games Release
Get:6 https://dl.bintray.com/grimler/science-packages-24 science Release [6191 B]
Hit:6 https://dl.bintray.com/grimler/science-packages-24 science Release
Get:4 https://dl.bintray.com/termux/termux-packages-24 stable Release [8255 B]
Hit:4 https://dl.bintray.com/termux/termux-packages-24 stable Release
Reading package lists...
Building dependency tree...
Reading state information...
41 packages can be upgraded. Run 'apt list --upgradable' to see them.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
debootstrap is already the newest version (1.0.123).
proot is already the newest version (5.1.107-28).
wget is already the newest version (1.20.3-2).
0 upgraded, 0 newly installed, 0 to remove and 41 not upgraded.
W: Cannot check Release signature; keyring file not available /data/data/com.termux/files/usr/share/keyrings/debian-archive-keyring.gpg
I: Retrieving InRelease 
I: Retrieving Release 
E: Failed getting release file http://ftp.debian.org/debian/dists/testing/Release
proot warning: can't chdir("/root/.") in the guest rootfs: No such file or directory
proot info: default working directory is now "/"
proot error: '/usr/bin/env' not found (root = /data/data/com.termux/files/home/debian-testing, cwd = /, $PATH=(null))
fatal error: see `proot --help`.

@Dmole
Copy link
Collaborator

Dmole commented Jul 24, 2020

3 things;

41 packages can be upgraded. Run 'apt list --upgradable' to see them.

so I added upgrade to the script.

E: Failed getting release file http://ftp.debian.org/debian/dists/testing/Release

can you view that file from your phone?
Debian does not appear to be offering https at this time which is a reliability and security issue :/ https://www.debian.org/mirror/list

what I get

I added to the script so please
rm debian-testing
, re-download, and re-run it.

@pypy702
Copy link
Author

pypy702 commented Jul 26, 2020

Ok, i re-downloaded it, deleted the directory, and ran the script.
I can view the Release file.
I get this error log.

W: Cannot check Release signature; keyring file not available /data/data/com.termux/files/usr/share/keyrings/debian-archive-keyring.gpg
I: Retrieving InRelease 
I: Retrieving Release 
E: Failed getting release file http://ftp.debian.org/debian/dists/testing/Release

termux-info:
Packages CPU architecture:
arm
Subscribed repositories:
# sources.list
deb https://termux.org/packages/ stable main
# science-repo (sources.list.d/science.list)
deb https://dl.bintray.com/grimler/science-packages-24 science stable
# game-repo (sources.list.d/game.list)
deb https://dl.bintray.com/grimler/game-packages-24 games stable
Updatable packages:
All packages up to date
Android version:
10
Kernel build information:
Linux localhost 3.4.113-g3f88c20af65 #1 SMP PREEMPT Thu May 14 18:37:54 CEST 2020 armv7l Android
Device manufacturer:
Sony
Device model:
Xperia Z2

@Dmole
Copy link
Collaborator

Dmole commented Jul 26, 2020

can you view that file from your phone?

Or what is the output of

curl -v  http://ftp.debian.org/debian/dists/testing/Release | grep -c .

?

@pypy702
Copy link
Author

pypy702 commented Jul 27, 2020

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 130.89.148.12:80...
* Connected to ftp.debian.org (130.89.148.12) port 80 (#0)
> GET /debian/dists/testing/Release HTTP/1.1
> Host: ftp.debian.org
> User-Agent: curl/7.71.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Mon, 27 Jul 2020 11:43:46 GMT
< Server: Apache
< X-Content-Type-Options: nosniff
< X-Frame-Options: sameorigin
< Referrer-Policy: no-referrer
< X-Xss-Protection: 1
< Last-Modified: Mon, 27 Jul 2020 08:21:07 GMT
< ETag: "1bffc-5ab680120c459"
< Accept-Ranges: bytes
< Content-Length: 114684
< X-Clacks-Overhead: GNU Terry Pratchett
< Cache-Control: public, max-age=120
<
{ [5378 bytes data]
100  111k  100  111k    0     0   314k      0 --:--:-- --:--:-- --:--:--  314k
* Connection #0 to host ftp.debian.org left intact

@Dmole
Copy link
Collaborator

Dmole commented Jul 27, 2020

Looks like you missed the line count (grep) but anyway. "200 OK" and "111k" looks correct... I don't know why debootstrap "Failed getting release" .

@sp4rkie
Copy link
Owner

sp4rkie commented Jul 27, 2020

to avoid the "Release signature error message" you normally install the proper keys (as being done in the old debian_on_termux.sh script:

    #
    # fix https://github.com/sp4rkie/debian-on-termux/issues/21
    # fix https://github.com/sp4rkie/debian-on-termux/issues/63
    #
    # add the key for stable (Debian Stable Release Key)
    apt-key adv --recv-keys DCC9EFBF77E11517
    # add the keys for testing, unstable (Debian Archive Automatic Signing Key)
    apt-key adv --recv-keys 648ACFD622F3D138

when calling 'apt-key adv ...' manually for some unknown reason I now get

# apt-key adv --recv-keys 648ACFD622F3D138
Executing: /data/data/com.termux/files/usr/tmp/apt-key-gpghome.LSWlHdtwSk/gpg.1.sh --recv-keys 648ACFD622F3D138
gpg: keyserver receive failed: General error

something is bad with the base installation at this time

@Dmole
Copy link
Collaborator

Dmole commented Jul 27, 2020

I tested the script 3 days ago and it worked for me (key warnings could be fixed but it's not critical) maybe pypy702 can try the stable branch or one of the other mirrors.

Repository owner deleted a comment Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants