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

updated the version Lunar #161

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This is a script that allows you to install Ubuntu in your termux application wi

## Updates

**• Updated to ubuntu 22.04**
**• Updated to ubuntu 24.04**

## Important

Expand Down
7 changes: 6 additions & 1 deletion ubuntu.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/data/data/com.termux/files/usr/bin/bash

apt update -y && apt upgrade -y
apt install wget proot -y

time1="$( date +"%r" )"

install1 () {
directory=ubuntu-fs
UBUNTU_VERSION=jammy
# updated version from jammy to lunar
UBUNTU_VERSION=lunar
if [ -d "$directory" ];then
first=1
printf "\x1b[38;5;214m[${time1}]\e[0m \x1b[38;5;227m[WARNING]:\e[0m \x1b[38;5;87m Skipping the download and the extraction\n"
Expand Down Expand Up @@ -35,6 +39,7 @@ exit 1

esac

printf "Downloading Lunar 24 LTS version!\n"
wget https://partner-images.canonical.com/core/${UBUNTU_VERSION}/current/ubuntu-${UBUNTU_VERSION}-core-cloudimg-${ARCHITECTURE}-root.tar.gz -q -O ubuntu.tar.gz
printf "\x1b[38;5;214m[${time1}]\e[0m \x1b[38;5;83m[Installer thread/INFO]:\e[0m \x1b[38;5;87m Download complete!\n"

Expand Down