android.git.kernel.org 无法访问后 repo失败的完美解决方法

Unity 2022安卓打包报错全解析:从Gradle原理到实战解决 在移动应用开发中,构建系统是连接代码与可执行应用的关键桥梁。Gradle作为现代Android项目的标准构建工具,通过声明式脚本管理依赖、编译和打包流程,其核心原理在于依赖解析、任务图执行和增量构建。掌握Gradle对于保障构建稳定性、提升开发效率至关重要,尤其在游戏开发领域,Unity引擎与Android平台的集成高度依赖Gradle构建管线。当项目升级到Unity 2022版本时,其构建系统全面转向标准化Gradle,这带来了更灵活的定制能力,但也引入了版本兼容性、依赖冲突等新挑战。本文聚焦Unity 阅读详情
自kernel.org遭受攻击,android.git.kernel.org梦见了电子羊,到kernel.org linux.com linux.org 停机维护,android.git.kernel.org直接连域名解析都关了
这导致repo拼命想连接android.git.kernel.org,然后一次一次失败

但是repo还得继续用啊,默认情况下 都是从 android.git.kernel.org  下载全套的repo工具集到.repo/repo目录下,再用这套工具集去下载git服务器上的源码库。

网上有个办法 http://carltao.blog.51cto.com/856514/667469 但我确实没找出作者修改了什么地方

于是继续google,总算被我找到完美的解决办法了

那就是 git-repo项目,从开发者邮箱就知道这是google官方的项目

托管在 googlecode上 所有repo工具集也是存放在googlecode服务器上 因此 完美解决android.git.kernel.org 无法访问的导致repo失败的问题

步骤:

1.下载repo-1.12

2. 更名
$ mv repo-1.12 repo

3.增加执行权限

$ chmod a+x repo

4.拷贝到/user/bin目录

$ sudo cp repo /user/bin

完工

5.如果repo init时出现 https 443 ssl错误,那么需要将https更改为http

$ sudo vi /user/bin/repo

将第五行

REPO_URL='https://code.google.com/p/git-repo/'

改为

REPO_URL='http://code.google.com/p/git-repo/'

继续享受repo 吧


zz: http://www.bashell.net/archives/repo-without-android-git-kernel-org.html


支付宝域名如何加入白名单(扫码老是弹窗) 支付宝扫码之后,遇到非支付宝官方网页,请确认是否继续访问弹窗,问题解决办法。本章教程提供解决办法,亲测有效。 阅读详情

相关推荐

Unity资源逆向解析:从APK到AssetStudio的完整实战

本文详细介绍了Unity资源逆向解析的全流程,从APK解包到使用AssetStudio深度解析Unity游戏资源。通过实战案例演示如何提取《植物大战僵尸》等游戏的素材,包括贴图、音频和3D模型,帮助开发者掌握Unity游戏逆向工程的核心技术。

weixin_30664051的博客 475

Android:android.git.kernel.org 无法访问时下载源代码的解决方法

今天正准备编译Android源码,根据官网的指示,首先应该执行 curl https://android.git.kernel.org/repo > ~/bin/repo 来下载repo文件,但报出如下错误: curl: (6) Couldn't resol

crazysjf的专栏 8809

持续集成介绍及Jenkins自动化测试部署

学习持续集成及jenkins的自动化测试部署

ouihsiad的博客 4575

git clone https://android.googlesource.com/kernel/common 目录下无内容

git clone https://android.googlesource.com/kernel/common git clone https://android.googlesource.com/kernel/common     clone 下来的文件夹没有内容   需要   git branch -a   git checkout  ......

doloveme的专栏 682

开启虚拟人物互动新时代:探索相芯Avatar SDK驱动功能(Android)

相芯SDK提供了男孩和女孩Avatar驱动模型,这些模型具备半身驱动和全身驱动的功能,使得虚拟角色能够根据用户的面部表情和动作实时模仿和响应。半身驱动功能: 相芯SDK的男孩和女孩Avatar驱动模型具备上身驱动功能,即能够通过用户的面部表情和动作来驱动虚拟角色的上半身行为。这意味着用户的面部表情、头部转动和上半身姿态等动作可以直接映射到虚拟角色上,使得虚拟角色能够栩栩如生地模仿用户的动作。例如,用户微笑时,虚拟角色会展现出笑容;用户转动头部时,虚拟角色也会相应地转动头部。

Faceunity2023的博客 631

Fritzing0.9.10下载安装和简单使用

Fritzing 作为一款电子设计自动化软件,其画图用于导入到论文和文档,清晰好看,能解决用相机拍实物照片杜邦线很乱的痛点。

李同学Lino的博客 3万+

服务器运维解决repo问题

1、解决同事repo问题 The program ‘repo’ is currently not installed. To run ‘repo’ please ask your administrator 如上在服务器输入repo命令 2、解决方法; mkdir ~/bin export PATH="~/bin:$PATH" (根据自身环境使用,目的是为了任意目录使用 repo) curl ht...

qq_40026962的博客 1325

YOLOv8冻结层的迁移学习 全网首发

在调用时会创建trainer此时的模型配置更新了,冻结了个p。

qq_42693842的博客 6586

解决国内git无法下载android源码的方法

目前无法下载 android 的解决办法 android.git.kernel.org 目前无法下载到 android 的源码了,几经google,终于找到下面的方法: 1,下载 repo $mkdir android_src $cd android_src $curl http://php.webtutor.pl/en/wp-content/uploads/

Zen@sz 博客 4544

【AI生成】市面上主流自组网厂家的技术及市场研究

经过对全球自组网产业技术特征与市场格局的系统分析,本文得出以下核心结论:技术演进呈现智能化与融合化双轨路径 当前自组网技术创新已突破传统组网架构局限,形成"协议优化-架构创新-场景适配"的递进式发展路径。国际厂商聚焦智能算法应用,如Silvus采用深度学习实现动态拓扑优化,传输时延较传统方案降低37%;国内企业则侧重异构网络融合,中国移动设计院提出的5G LAN架构使工业场景通信可靠性提升至99.99%。

qq_31310977的博客 1696

【Dify】PPT生成工具应用

本文介绍了一款自动化PPT生成工具,通过智能接口将文本内容高效转化为结构化演示文档。该系统采用三阶段工作流(内容输入、HTTP请求上传、文件输出),无需复杂操作即可生成专业PPT。工具适用于教学课件、产品发布、企业培训等场景,能显著提升内容表达效率,特别适合初学者快速制作演示材料。文章详细说明了核心节点、应用场景及开发资源,为文本到PPT的自动化转换提供了实用解决方案。

Mr数据杨 1216

repo新的下载地址

kernel.org无法访问导致android的源码无法下载,这是另外一个git服务器的android源码的repo文件。 操作如下 $ curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin //获取repo $ chmod a+x repo $ PATH= ~/bi

kyrinleo的专栏 1007

通过实例讲解瀑布模型

在电子商城开发中,瀑布模型如同 “工业时代的流水线”—— 能通过标准化流程交付高质量、高合规性的系统,但也可能因缺乏灵活性而错失市场机会。其优势与缺点本质上源于同一核心特征:严格的阶段性与文档驱动。决策建议若开发传统型、长周期、需求固定的电子商城(如企业内部采购平台),可优先选择瀑布模型,并通过 “需求预验证 + 模块化设计” 降低风险;若开发创新型、短周期、需快速迭代的电商平台(如社交电商、跨境电商),建议采用敏捷模型或混合模型(如瀑布 + Scrum),平衡规范性与响应速度。

跟佟格湾一起学习计算机知识吧~ 271

Kernel.org无法访问,如何获取Android repo

最近Kernel.org无法访问,无论我怎么试都是下面的结果: As you may already know, kernel.org site which hosts the Android git repositoryhas been hacked. Because o

3369

VC中sqlite的使用

在VC中对sqlite的使用,实现数据库大批数据的快速插入,读取数据库中的数据在ListCtrl中显示

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

android系统源代码下载--完美版新下载地址

9月10号左右下过一次android源代码,下了6%之后就死活下不了,不是提示连接失败就是提示没有任何数据返回,最后网上人说android.git.kernel.org网站被黑了,git方式和http方式都下不了,折腾好些时间终于知道怎么配置文件,最后网站被黑却下不了,灰常悲催。 今天晚上试了一下,还是不行,最后google了一下,在网上找到了答案。下面写一个完整的步骤供大家参考(ubutun系

jacpy的专栏 4757

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

无法访问android.git.kernel.org的情况下如何使用repo

Kernel.org维护,android.git.kernel.org索性连域名也不解析了。 可是我正好要用repo下载别的git服务器(nv-tegra)的代码,就试着启动了下。悲剧地发现repo拼命试着连接android.git.kernel.org,然后失败,然后傻眼了。 拜托,repo你到底要干什么? 原来repo要下载全套的repo工具集到.repo/repo...

weixin_34191845的博客 188

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

repo sync: fatal: unable to connect to android.git.kernel.org

I checked out android source code before, but there are errors we I run "repo sync" now: [frank@hpc mydroid]$ repo sync fatal: unable to connect to android.git.kernel.org: android.git.kernel.or

有朋自远方来... 6093

android源码下载出现的错误

一,下载repo时报错: $ curl https://android.git.kernel.org/repo > ~/bin/repo curl: (6) Couldn't resolve host 'android.git.kernel.org' 原因是因为android.git.kernel.org网站被黑了,所以无法从该网站下载repo和android源代码了。 因此我们只能想办法

xiongyingzhuantu的专栏 918

github找android源码,从github检查Android源代码

在完成所有这些步骤以查看Android源代码(Gingerbread分支)之后,为了解决编译错误,我决定尝试从不同的源代码获取源代码.以下是我从GitHub.com存储库中检出源代码所采取的步骤.我检查了GitHub.com存储库中的repo工具git clone git://github.com/android/tools_repo.git在下载的repo脚本文件中,我更改了repo工具的位置,...

weixin_39912250的博客 489

Ubuntu下android源码下载与编译

记录一下在Ubuntu下下载android源码的一些坑。 我是根据网上的资料从搭建环境一步一步开始的,这里推荐两个我认为流程完整的文章: 链接1:点击打开链接 链接2:点击打开链接 链接2是从下载安装Ubuntu开始讲起的,我也是跟着教程进行安装的。这里有一点要注意,就是在分配虚拟硬盘大小时要留意一下,我第一次安装时这里没有看仔细就下一步了,结果是在安装时提示错误,不能往下进行了。具体如图

u014471160的博客 480

Android 手机的高级终端 Termux 安装使用、busybox、安卓 手机 web

手机已经 root安装 tsu,这是一个 su 的 Termux 版本,是一个真正的 root 权限,用来在 Termux上替代su,操作不慎可能对手机有安全风险,因为官方封装了,所以安装也很简单:安装 tsu:pkg install tsu -y切换到 root:tsu退出 root:exittsu切换 root 用户时会弹出 root 授权提示,给予其 root 权限即可。在管理员身份下输入 exit 可回到普通用户身份。

freeking101的博客 10万+

学习记录: android 源码的下载_探究(一)

下载android源码步骤: 一. 环境准备。 1. 安装Git工具。Android源代码采用Git工具来管理,与SVN相比,这是一种分布式的源代码管理工具,而SVN是集中式的源代码管理工具。要安装Git工具,在Ubuntu上执行以下命令即可: USER-NAME@MACHINE-NAME:~$ sudo apt-get installgit-core gnupg 2. ...

weixin_30886233的博客 85

window11使用wsl2下载编译android 8代码,并用emulator运行

博主需要使用android 8代码进行学习,电脑环境window11,踩了很多坑才完成了android 8的代码下载编译运行,在此做记录。如遇到网络问题,一般使用清华源或者中科源。博主生活在中原地区,离中科源更近,所以优先使用的中科源。

xunyan6234的博客 511
上一篇: 佛家的「五隨」
下一篇: LINUX常用查看信息集
LinuxJoey
博客等级 码龄15年 117粉丝 25原创
评论 3
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值