Comments (11)
@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.
Which OS are you using? What's the output of tar --version
?
from termux-create-package.
from termux-create-package.
Try installing the tar package instead of using the busybox version:
pkg in tar
from termux-create-package.
from termux-create-package.
Could you provide the faulty .deb file?
from termux-create-package.
from termux-create-package.
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.
from termux-create-package.
@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.
@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)
- Created packages cannot be added to repo using termux-apt-repo HOT 5
- How To Add Custom Command On Deb Packages HOT 2
- How To Add postint Script To .deb packages HOT 2
- Created Packages are Broken HOT 12
- How to create termux tool HOT 2
- How to include an entire directory? HOT 3
- [Feature Request] Support for manifest suggests and recommends fields as well as debscripts HOT 1
- Prefixed file output path problem
- Add function to run scripts/commands during installation HOT 7
- [Feature Request] Support custom multiple archs, please. HOT 12
- Error while building package HOT 1
- Add support por package size HOT 2
- termux-create-package Does not read images HOT 3
- Missing libandroid-support on WSL HOT 1
- termux-create-package on pip needs to be updated HOT 9
- You cannot perform the script in Cygwin HOT 1
- [feature] Shell completions HOT 1
- [feature] Json schema HOT 1
- [feature] Respect PREFIX enviroment var? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termux-create-package.