简体   繁体   English

命令失败:tar xzf android-sdk_r20-linux.tgz

[英]Command failed: tar xzf android-sdk_r20-linux.tgz

I was trying to build kivy app to android and got this error 我试图构建kivy应用程序到Android并得到此错误

# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Install platform
# Apache ANT found at /home/ali/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK is missing, downloading
# Unpacking Android SDK
# Command failed: tar xzf android-sdk_r20-linux.tgz
# 
# Buildozer failed to execute the last command
# If the error is not obvious, please raise the log_level to 2
# and retry the latest command.
# In case of a bug report, please add a full log with log_level = 2

command 命令

$ buildozer android_new debug

log: http://paste.ubuntu.com/20850804/ 日志: http//paste.ubuntu.com/20850804/

want any details? 想要任何细节? request in the comments 请求在评论中

The machine fails to properly download the android SDK. 机器无法正常下载Android SDK。

You can confirm this by checking the md5 sum of the file : 您可以通过检查文件的md5总和来确认:

wget -O - http://dl.google.com/android/android-sdk_r20-linux.tgz | md5sum

This should output : 22a81cf1d4a951c62f71a8758290e9bb 这应输出:22a81cf1d4a951c62f71a8758290e9bb

If it doesn't, my first guess would be that you're blocked by some kind of proxy or firewall. 如果没有,我的第一个猜测就是你被某种代理或防火墙阻止了。 A proxy can be configured to limit the maximum size of aa file you're trying to download. 可以配置代理以限制您尝试下载的文件的最大大小。 Check the logs or contact your sysadmins if you're not the administrator of the machine. 如果您不是计算机的管理员,请检查日志或联系您的系统管理员。

I figured it out! 我想到了!

the problem was some google services are not available where i live due to USA sanctions on my country (Sudan) and the returned response is html (not in gzip format). 问题是由于美国对我的国家(苏丹)实施制裁,一些谷歌服务无法在我居住,并且返回的响应是html(不是gzip格式)。

the solution is to use vpn. 解决方案是使用vpn。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM