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

Automatic x86_64 download from evowise no longer works #32

Closed
dmayle opened this issue Jan 10, 2018 · 9 comments
Closed

Automatic x86_64 download from evowise no longer works #32

dmayle opened this issue Jan 10, 2018 · 9 comments

Comments

@dmayle
Copy link

dmayle commented Jan 10, 2018

The setup script assumes that a wget from will automatically download the correct file, but now it just downloads an index.html file, and so the script halts

@dmayle
Copy link
Author

dmayle commented Jan 11, 2018

I'm happy to help... Why isn't x86_64 just using the equivalent bootstrap image?

@dmayle
Copy link
Author

dmayle commented Jan 11, 2018

`< 🕛 Activating termux-wake-lock. Now downloading and the corresponding checksum. This may take a long time depending on your Internet connection.

--2018-01-10 14:16:15-- http://mirrors.evowise.com/archlinux/iso/latest/
Resolving mirrors.evowise.com... 2400:cb00:2048:1::6813:874b, 2400:cb00:2048:1::6813:894b, 2400:cb00:2048:1::6813:8b4b, ...
Connecting to mirrors.evowise.com|2400:cb00:2048:1::6813:874b|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html.tmp’

index.html.tmp [ <=> ] 1.12K --.-KB/s in 0s

Last-modified header missing -- time-stamps turned off.
2018-01-10 14:16:15 (11.2 MB/s) - ‘index.html.tmp’ saved [3202]

Loading robots.txt; please ignore errors.
--2018-01-10 14:16:15-- http://mirrors.evowise.com/robots.txt
Reusing existing connection to [mirrors.evowise.com]:80.
HTTP request sent, awaiting response... 404 Not Found
2018-01-10 14:16:15 ERROR 404: Not Found.

Removing index.html.tmp since it should be rejected.

--2018-01-10 14:16:15-- http://mirrors.evowise.com/archlinux/iso/latest/arch/
Reusing existing connection to [mirrors.evowise.com]:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html.tmp’

index.html.tmp [ <=> ] 1008 --.-KB/s in 0.001s

Last-modified header missing -- time-stamps turned off.
2018-01-10 14:16:15 (894 KB/s) - ‘index.html.tmp’ saved [2369]

Removing index.html.tmp since it should be rejected.

--2018-01-10 14:16:15-- http://mirrors.evowise.com/archlinux/iso/latest/archlinux-bootstrap-2018.01.01-x86_64.tar.gz
Reusing existing connection to [mirrors.evowise.com]:80.
HTTP request sent, awaiting response... 200 OK
Length: 134175315 (128M) [application/octet-stream]
Saving to: ‘archlinux-bootstrap-2018.01.01-x86_64.tar.gz’

archlinux-bootstrap-2018.01.01-x86_64.tar.gz 100%[==========================================================================================================================>] 127.96M 8.92MB/s in 12s

2018-01-10 14:16:27 (10.4 MB/s) - ‘archlinux-bootstrap-2018.01.01-x86_64.tar.gz’ saved [134175315/134175315]

--2018-01-10 14:16:27-- http://mirrors.evowise.com/archlinux/iso/latest/arch/boot/
Reusing existing connection to [mirrors.evowise.com]:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html.tmp’

index.html.tmp [ <=> ] 1.05K --.-KB/s in 0.004s

Last-modified header missing -- time-stamps turned off.
2018-01-10 14:16:27 (260 KB/s) - ‘index.html.tmp’ saved [2642]

Removing index.html.tmp since it should be rejected.

--2018-01-10 14:16:27-- http://mirrors.evowise.com/archlinux/iso/latest/arch/x86_64/
Reusing existing connection to [mirrors.evowise.com]:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html.tmp’

index.html.tmp [ <=> ] 1.02K --.-KB/s in 0s

Last-modified header missing -- time-stamps turned off.`

@dmayle
Copy link
Author

dmayle commented Jan 11, 2018

--2018-01-10 14:16:27--  http://mirrors.evowise.com/archlinux/iso/latest/arch/x86_64/
Reusing existing connection to [mirrors.evowise.com]:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html.tmp’

index.html.tmp                                             [ <=>                                                                                                                       ]   1.02K  --.-KB/s    in 0s

Last-modified header missing -- time-stamps turned off.
2018-01-10 14:16:28 (5.04 MB/s) - ‘index.html.tmp’ saved [2519]

Removing index.html.tmp since it should be rejected.

--2018-01-10 14:16:28--  http://mirrors.evowise.com/archlinux/iso/latest/arch/boot/x86_64/
Reusing existing connection to [mirrors.evowise.com]:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html.tmp’

index.html.tmp                                             [ <=>                                                                                                                       ]   1.04K  --.-KB/s    in 0.01s

Last-modified header missing -- time-stamps turned off.
2018-01-10 14:16:28 (108 KB/s) - ‘index.html.tmp’ saved [2645]

Removing index.html.tmp since it should be rejected.

FINISHED --2018-01-10 14:16:28--
Total wall clock time: 13s
Downloaded: 6 files, 128M in 12s (10.4 MB/s)
md5sums.txt                                                [ <=>                                                                                                                       ]     126  --.-KB/s    in 0s

 🕠 < 🕛 Checking download integrity with md5sum.  This may take a little while.

md5sum: .md5: No such file or directory

 🔆 ERROR md5sum mismatch! The download was corrupt! Removing failed download.  Run setupTermuxArch.sh again!  See https://sdrausty.github.io/TermuxArchPlus/md5sums for more information.  This kind of error can go away, sort of like magic.  Waiting a few minutes before executing again is recommended. There are many reasons that generate checksum errors.  Proxies are one reason.  Mirroring and mirrors are another explaination for md5sum errors.  Either way it means this download was corrupt.  If this keeps repeating, please change your mirror with an editor like vi in knownconfigurations.sh.  See https://sdrausty.github.io/TermuxArchPlus/mirrors for more information.

        Run setupTermuxArch.sh again. Exiting...
$

@SDRausty
Copy link
Owner

SDRausty commented Jan 11, 2018

@dmayle Edit setupTermuxArch.sh locally after setting it aside in its own directory. git clone https://github.com/sdrausty/TermuxArch should do this for you gracefully. Remove the wget, checksum and download calls from setupTermuxArch.sh and necessaryfunctions.sh and edit the download site in knownconfigurations.sh; x86_64 should be up and running locally on your device.

Important pull request information: Using https://raw.githubusercontent.com/sdrausty/TermuxArch/master/scripts/maintenance/makedownload.sh in https://github.com/sdrausty/TermuxArch/tree/master/scripts/files/stable and similar generates setupTermuxArch.tar.gz and setupTermuxArch.md5 after modifying https://raw.githubusercontent.com/sdrausty/TermuxArch/master/scripts/files/stable/knownconfigurations.sh and similar.

Pull requests welcome at https://github.com/sdrausty/TermuxArch/pulls

@ardoi
Copy link

ardoi commented Jan 11, 2018

This is not an issue with the arch bootstrap file failing the md5 check. As you can see from the error message (md5sum: .md5: No such file or directory), the script is looking for a file called .md5. The problem is in the makesystem function in necessaryfunctions.sh. It assumes that $file variable contains the file name, but this is not set for x86_64 systems (as per knowconfigurations.sh). Adding a line with file=$filename in the adjustmd5file function in necessaryfunctions.sh should make it work. Coincidentally had been trying to figure this out myself today and that gets the installation going.

@SDRausty
Copy link
Owner

SDRausty commented Jan 11, 2018

@ardoi Thank you for the update.

Remove the wget, checksum and download calls

Remove the checksum function calls from the download setup script. Leave the downloaded image file checksums checks in place. It is great to see that you have a handle on the script.

@SDRausty
Copy link
Owner

Automatic x86_64 download from evowise no longer works #32
How to solve this error? #35
Latest wget 1.19.3 produces errors termux/termux-packages#2052
All three(3) of these may be related, including this topic.

Can you check by downgrading your wget? Here are the instructions:
At present the simplest solution is to downgrade wget in Termux. Use apt remove wget to downgrade your wget to https://sdrausty.github.io/TermuxArch/scripts/files/wget_1.19.2-1_aarch64.deb this version. dpkg --install wget_1.19.2-1_aarch64.deb, then bash setupTermuxArch.sh may resolve this issue as it has two other issues. Let us know your outcome.

For armv7 users:
https://sdrausty.github.io/TermuxArch/scripts/files/wget_1.19.2_arm.deb https://sdrausty.github.io/TermuxArch/scripts/files/libuuid_1.0.3-1_arm.deb
https://sdrausty.github.io/TermuxArch/scripts/files/libunistring_0.9.7_arm.deb
https://sdrausty.github.io/TermuxArch/scripts/files/pcre_8.41-1_arm.deb

Use apt remove wget libunistring followed by dpkg --install libunistring_0.9.7_arm.deb wget_1.19.2_arm.deb as a possible temporary solution to this x86_64 and ERROR md5sum mismatch topic.

@SDRausty
Copy link
Owner

@SDRausty
Copy link
Owner

SDRausty commented Jan 25, 2018

@dmayle I just checked your architecture with the latest version of wget. Use apt update or au to update the Termux system. Latest wget 1.19.3 produces errors is now closed with this pull request wget: Update from 1.19.3 to 1.19.4 which was causing this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants