简体   繁体   English

buildozer android 调试部署运行错误:命令失败:['tar','xzf','apache-ant-1.9.4-bin.tar.gz']

[英]buildozer android debug deploy run error: Command failed: ['tar', 'xzf', 'apache-ant-1.9.4-bin.tar.gz']

I'm getting the above error when trying to package up my kivy app.尝试 package 升级我的 kivy 应用程序时出现上述错误。 After running buildozer android debug deploy run I am met the the below error:运行buildozer android debug deploy run后,我遇到以下错误:

Command failed: ['tar', 'xzf', 'apache-ant-1.9.4-bin.tar.gz']

When running the above command ( tar xzf apache-ant-1.9.4-bin.tar.gz ) I get the following output:运行上述命令( tar xzf apache-ant-1.9.4-bin.tar.gz )时,我得到以下 output:

/usr/bin/gzip: 1: ELF: not found
/usr/bin/gzip: 3: : not found
/usr/bin/gzip: 4: Syntax error: "(" unexpected
tar: Child returned status 2
tar: Error is not recoverable: exiting now

在此处输入图像描述

Tried to look on line for anything close to this but haven't found anything relevant.试图在网上寻找任何与此接近的东西,但没有找到任何相关的东西。 Has anyone else seen this error?有没有其他人看到这个错误?

Ubuntu Version Info: Ubuntu 版本信息:

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy

thanks谢谢

I was missing p4a and its dependencies:我缺少 p4a 及其依赖项:

https://python-for-android.readthedocs.io/en/latest/quickstart/ https://python-for-android.readthedocs.io/en/latest/quickstart/

running:跑步:

sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y build-essential ccache git zlib1g-dev python3 python3-dev libncurses5:i386 libstdc++6:i386 zlib1g:i386 openjdk-8-jdk unzip ant ccache autoconf libtool libssl-dev

solved my problem解决了我的问题

well i still have same issue even after installing the p4a and its dependencies好吧,即使在安装 p4a 及其依赖项后我仍然有同样的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 命令失败:tar xzf android-sdk_r20-linux.tgz - Command failed: tar xzf android-sdk_r20-linux.tgz Buildozer 执行最后一条命令失败(android 调试) - Buildozer failed to execute the last command (android debug) Python pip install jira 1.0.10.tar.gz给出“命令” python setup.py egg_info“失败,错误代码为1” - Python pip install jira 1.0.10.tar.gz gives “Command ”python setup.py egg_info“ failed with error code 1” 在 Python 中安装 coco-0.4.0.tar.gz 时出错:“Command errored out with exit status 1” - Error installing coco-0.4.0.tar.gz in Python: “Command errored out with exit status 1” Python或Linux命令行检测.tar.gz中的目录名称 - Python or linux command line detect directory name in .tar.gz tar 命令的子进程 Popen 和 shell=False 出错 - Error with subprocess Popen and shell=False for the tar command Buildozer“Command”['ant','debug']'返回非零退出状态1“ - Buildozer “Command '['ant', 'debug']' returned non-zero exit status 1” 如何在没有目录的tar.gz中压缩tar文件? - How to compress a tar file in a tar.gz without directory? 如何使用Python将tar文件保存在平面tar.gz中 - How to save tar file in flat tar.gz using Python 在 python 中创建简单的 tar.gz 时会创建嵌套 tar - Nested tar is created while creating simple tar.gz in python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM