root access – help to finish termux set up to install ubuntu

I want to mine sugar on my android phone
can someone help a simple complete coding. especially to complete method 1 or two, whichever works.

thanks in advance

METHOD 1

installed f-droid and termux

commands

pkg install automake clang git vim

press y to continue

clone git https://github.com/decryp2kanon/sugarmaker

when its done,

i enter

  • $ cd sugarmaker/
    then
    -/sugarmaker $ ./autogen.sh

it says bash: no such file or directory

METHOD 2

these two methods i tried each of them on both phones
on method 2 on when i get here it keeps saying error on huawei y pro phone and huawei p20 lite

pkg udate

press y to continue

pkg upgrade

press y to continue

pkg install git

pkg install wget

press y to continue

pkg install proot
press y to continue

git clone http://github.com/Neo-oli/termux-ubuntu.get

problem start here on p20 lite

-$ cd termux-ubuntu

-/termux-ubuntu $ ./ubuntu.sh

it says decompressing ubuntu image, but this does not look like a trz archive

making star ubuntu excutable. you can now launch ubuntu with ./start-ubuntu.sh scrpt.

and it shows code 404 like the link to the image is not working also