t184256 / nix-in-termux

A script to install Nix package manager inside a Termux installation (on Android, aarch64)
GNU Lesser General Public License v2.1
106 stars 15 forks source link

use curl instead of wget #1

Open kalbasit opened 5 years ago

kalbasit commented 5 years ago

I'm getting an SSL issue with wget, curl works fine

downloading Nix 2.2.1 binary tarball for aarch64-linux from 'https://nixos.org/releases/nix/nix-2.2.1/nix-2.2.1-aarch64-linux.tar.bz2' to '/data/data/com.termux/files/home/.nix/tmp'...
--2019-03-02 12:30:38--  https://nixos.org/releases/nix/nix-2.2.1/nix-2.2.1-aarch64-linux.tar.bz2
Disabling SSL due to encountered errors.
./nix-in-termux: failed to download 'https://nixos.org/releases/nix/nix-2.2.1/nix-2.2.1-aarch64-linux.tar.bz2'
t184256 commented 5 years ago

I cannot reproduce that, does that happen in a clean Termux environment?

kalbasit commented 5 years ago

I installed my environment a while back, and I have not used it much. The first time I tried your script today, it complained about missing libssl. I updated the system with pkg upgrade, it helped with the libssl message, but and then I got this error instead. I don't think it's specific to your script, I suspect it's an upgrade issue, but curl seems to work fine regardless.

dywedir commented 5 years ago

Probably related: https://github.com/termux/termux-packages/issues/3426

kalbasit commented 5 years ago

I can confirm that install openssl-tool makes wget work on my system.