tuanpham-dev / termux-ubuntu

This helps you install Ubuntu 20 + XFCE4 desktop on Termux with ease.
395 stars 61 forks source link

unexpected end of file in ubuntu.sh #10

Closed AndrewRocky closed 3 years ago

AndrewRocky commented 3 years ago

I tried to install it first with single line from readme, but it threw an error. On fresh install of termux v.0.116 from f-droid Android 10

~ $ pkg update -y && pkg install wget curl proot tar -y && wget https://raw.githubusercontent.com/tuanpham-dev/termux-ubuntu/master/ubuntu.sh && chmod +x ubuntu.sh && bash ubuntu.sh
Checking availability of current mirror: ok
Hit:1 https://termux.mentality.rip/termux-main stable InRelease
Hit:2 https://packages.termux.org/apt/termux-games games InRelease
Hit:3 https://packages.termux.org/apt/termux-science science InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Checking availability of current mirror: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.77.0-3).
proot is already the newest version (5.1.107-40).
tar is already the newest version (1.34).
wget is already the newest version (1.21.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
--2021-07-09 22:14:43--  https://raw.githubusercontent.com/tuanpham-dev/termux-ubuntu/master/ubuntu.sh
Resolving raw.githubusercontent.com... 185.199.109.133, 185.199.111.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8965 (8.8K) [text/plain]
Saving to: ‘ubuntu.sh’

ubuntu.sh       100%[=====>]   8.75K  --.-KB/s    in 0.001s

2021-07-09 22:14:44 (11.3 MB/s) - ‘ubuntu.sh’ saved [8965/8965]

--2021-07-09 22:14:44--  https://andronixos.sfo2.cdn.digitaloceanspaces.com/OS-Files/setup-audio.sh
Resolving andronixos.sfo2.cdn.digitaloceanspaces.com... 205.185.216.10, 205.185.216.42
Connecting to andronixos.sfo2.cdn.digitaloceanspaces.com|205.185.216.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20643 (20K) [application/x-sh]
Saving to: ‘setup-audio.sh’

setup-audio.sh  100%[=====>]  20.16K  --.-KB/s    in 0.002s

2021-07-09 22:14:46 (12.4 MB/s) - ‘setup-audio.sh’ saved [20643/20643]

Checking availability of current mirror: ok
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
pulseaudio is already the newest version (14.2-4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
module already present
modiefied timeout to 180 seconds
Download Rootfs, this may take a while base on your internet speed.
--2021-07-09 22:14:47--  https://github.com/AndronixApp/AndronixOrigin/raw/master/Rootfs/Ubuntu20/focal-arm64.tar.gz
Resolving github.com... 140.82.121.3
Connecting to github.com|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu20/focal-arm64.tar.gz [following]
--2021-07-09 22:14:48--  https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu20/focal-arm64.tar.gz
Resolving raw.githubusercontent.com... 185.199.109.133, 185.199.111.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26215001 (25M) [application/octet-stream]
Saving to: ‘ubuntu20-rootfs.tar.gz’

ubuntu20-rootfs 100%[=====>]  25.00M  8.48MB/s    in 2.9s

2021-07-09 22:14:52 (8.48 MB/s) - ‘ubuntu20-rootfs.tar.gz’ saved [26215001/26215001]

Decompressing Rootfs, please be patient.
ubuntu.sh: line 257: warning: here-document at line 42 delimited by end-of-file (wanted `EOF')
ubuntu.sh: line 258: syntax error: unexpected end of file
~ $
tuanpham-dev commented 3 years ago

Hi @AndrewRocky - Thank you for reporting this. It should be fixed now.