Code Monkey home page Code Monkey logo

Comments (4)

 avatar commented on August 21, 2024 1

Now proot-distro provides both Ubuntu 18.04 and 20.04. If you need to install v18.04, then do proot-distro install ubuntu-18.04. Version 20.04 has alias ubuntu (as previously) and ubuntu-20.04.

from proot-distro.

poVoq avatar poVoq commented on August 21, 2024

Funny coincidence, but just today I got the same error.

I am trying to install Ubuntu20.04 or Arch Linux on my x86 Zenfone2.

Can I somehow force a i386 image which should work also? I think AMD64 might not work on the Zenfone2 as it is a strange hybrid with 64bit Linux Kernel, but 32bit Android user space.

from proot-distro.

 avatar commented on August 21, 2024

You need to setup chroot/proot environment with qemu-user. but it may cause segfault. and some programs may not work.. but x86 is fine

from proot-distro.

michalbednarski avatar michalbednarski commented on August 21, 2024

You could add Ubuntu18 by going into /data/data/com.termux/files/usr/etc/proot-distro and creating new file (example for Ubuntu 18.04 (based on ubuntu.sh (for Ubuntu 20.04) from this repo), name new file for example ubuntu18.sh, name will be used in proot-distro commands, omit case and directly echo single URL if you want to force version):

##
## Plug-in for installing Ubuntu Focal (18.04).
##

DISTRO_NAME="Ubuntu 18.04"

# Returns download URL.
get_download_url() {
	case "$(uname -m)" in
		aarch64)
			echo "https://partner-images.canonical.com/core/bionic/current/ubuntu-bionic-core-cloudimg-arm64-root.tar.gz"
			;;
		armv7l|armv8l)
			echo "https://partner-images.canonical.com/core/bionic/current/ubuntu-bionic-core-cloudimg-armhf-root.tar.gz"
			;;
		i686)
			echo "https://partner-images.canonical.com/core/bionic/current/ubuntu-bionic-core-cloudimg-i386-root.tar.gz"
			;;
		x86_64)
			echo "https://partner-images.canonical.com/core/bionic/current/ubuntu-bionic-core-cloudimg-amd64-root.tar.gz"
			;;
	esac
}

# Define here additional steps which should be executed
# for configuration.
distro_setup() {
	# Hint: $PWD is the distribution rootfs directory.
	#echo "hello world" > ./etc/motd

	# Run command within proot'ed environment with
	# run_proot_cmd function.
	# Uncomment this to do system upgrade during installation.
	#run_proot_cmd apt update
	#run_proot_cmd apt upgrade -yq
	:
}

I think you cannot (without qemu) run x86_64 on 32-bit Android even with 64-bit Linux as Android would set seccomp policy which would prevent 64-bit programs from executing any syscall.


I guess it'd be question to @xeffyr if script I've pasted above should be bundled with proot-distro

from proot-distro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.