Git Product home page Git Product logo

Comments (11)

 avatar commented on August 27, 2024 1

@yeasin6152 Perhaps there problem with termux-create-package - there is something wrong with tar archive generation.

I suggest you to rebuild your deb file in this way:

dpkg-deb -R apktool_2018.03.20.1_aarch64.deb unpacked
dpkg-deb -b unpacked apktool_2018.03.20.1_aarch64_fixed.deb

You will get file apktool_2018.03.20.1_aarch64_fixed.deb which can be installed with dpkg -i.


Seems that termux-create-package is not storing parent directories in TAR:

$ tar tf data.tar.xz 
data/data/com.termux/files/usr/bin/apktool
data/data/com.termux/files/usr/lib/apktool/7z.sh
data/data/com.termux/files/usr/lib/apktool/apktool-2.0.1.jar
data/data/com.termux/files/usr/lib/apktool/apktool-2.0.3.jar
data/data/com.termux/files/usr/lib/apktool/apktool-2.2.4.jar

Normally, it should be like this:

$ tar tf data.tar.xz 
./
./data/
./data/data/
./data/data/com.termux/
./data/data/com.termux/files/
./data/data/com.termux/files/usr/
./data/data/com.termux/files/usr/bin/
./data/data/com.termux/files/usr/bin/apktool
./data/data/com.termux/files/usr/lib/
./data/data/com.termux/files/usr/lib/apktool/
./data/data/com.termux/files/usr/lib/apktool/7z.sh
./data/data/com.termux/files/usr/lib/apktool/apktool-2.0.1.jar
./data/data/com.termux/files/usr/lib/apktool/apktool-2.0.3.jar
./data/data/com.termux/files/usr/lib/apktool/apktool-2.2.4.jar

So it seems that tool dpkg-deb does thing much better than termux-create-package.

from termux-create-package.

Grimler91 avatar Grimler91 commented on August 27, 2024

Which OS are you using? What's the output of tar --version?

from termux-create-package.

yeasin6152 avatar yeasin6152 commented on August 27, 2024

from termux-create-package.

Grimler91 avatar Grimler91 commented on August 27, 2024

Try installing the tar package instead of using the busybox version:
pkg in tar

from termux-create-package.

yeasin6152 avatar yeasin6152 commented on August 27, 2024

from termux-create-package.

Grimler91 avatar Grimler91 commented on August 27, 2024

Could you provide the faulty .deb file?

from termux-create-package.

yeasin6152 avatar yeasin6152 commented on August 27, 2024

from termux-create-package.

 avatar commented on August 27, 2024

I think it is problem have
or tar tools or xz-utils

No problem with tar or xz-utils. I guess that you have problem with manifest.json as I used termux-create-package to create deb files and they installed without error.

Can you post contents of your manifest.json file ?

from termux-create-package.

yeasin6152 avatar yeasin6152 commented on August 27, 2024

from termux-create-package.

 avatar commented on August 27, 2024

@yeasin6152 Fixed deb file: https://transfer.sh/vXoWZ/apktool_2018.03.20.1_aarch64.deb
PS. This apktool won't work on Android 8 or later.

from termux-create-package.

yeasin6152 avatar yeasin6152 commented on August 27, 2024

@xeffyr sir, at this time apktool won't work on Android 8 or later but developer trying to finding the way to make it. Jest a few time need to wait.. and thanks to give solution.
And last problem is I make java Deb file and it install successful but when I type Java in terminal it show Java permission denied. After given permission it works. Why installed Deb file need to permission . And how to solve it. Plz help..

dpkg -i openjdk_10_2018.03.20.1_aarch64_fixed.deb
Selecting previously unselected package openjdk.
(Reading database ... 1870 files and directories currently installed.)
Preparing to unpack openjdk_10_2018.03.20.1_aarch64_fixed.deb ...
Unpacking openjdk (2018.03.20.1) ...
Setting up openjdk (2018.03.20.1) ...
$ java
bash: /data/data/com.termux/files/usr/bin/java: Permission denied
$ chmod +x /data/data/com.termux/files/usr/bin/j*
$ java
/data/data/com.termux/files/usr/bin/java: line 6: /data/data/com.termux/files/usr/lib/jvm/openjdk/bin/java: Permission denied
/data/data/com.termux/files/usr/bin/java: line 6: exec: /data/data/com.termux/files/usr/lib/jvm/openjdk/bin/java: cannot execute
$ chmod +x /data/data/com.termux/files/usr/lib/jvm/openjdk/bin/*
$ java
Usage: java [options] [args...]
(to execute a class)
or java [options] -jar [args...]
(to execute a jar file)
or java [options] -m [/] [args...]
java [options] --module [/] [args...]
(to execute the main class in a module)

Arguments following the main class, -jar , -m or --module
/ are passed as the arguments to main class.

where options include:

from termux-create-package.

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.