Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
pkgs--update
[env工具]pkgs --update 失败
发布于 2023-03-19 13:01:16 浏览:49
订阅该版
```c fatal: unable to access 'https://gitee.com/RT-Thread-Mirror/ota_downloader.git/': Failed to connect to gitee.com port 443: Bad access Error message:[Error 267] ``` 没有开代理  env下git clone失败 但是在git bash下gitclone成功 env下 ```c > git clone https://gitee.com/RT-Thread-Mirror/ota_downloader.git Cloning into 'ota_downloader'... fatal: unable to access 'https://gitee.com/RT-Thread-Mirror/ota_downloader.git/': Failed to connect to gitee.com port 443: Bad access git bash下 Cloning into 'ota_downloader'... remote: Enumerating objects: 113, done. remote: Counting objects: 100% (26/26), done. remote: Compressing objects: 100% (26/26), done. remote: Total 113 (delta 10), reused 0 (delta 0), pack-reused 87 Receiving objects: 100% (113/113), 1.09 MiB | 8.31 MiB/s, done. Resolving deltas: 100% (38/38), done. ``` 采用先下载,然后pkgs --update ```c pkgs --update ==============================> OTA_DOWNLOADER latest is downloaded successfully. Error package : {u'path': u'/packages/iot/ota_downloader', u'ver': u'latest', u'name': u'OTA_DOWNLOADER'} ==============================> Packages list to download : Package name : OTA_DOWNLOADER, Ver : latest The packages in the list above are accidentally deleted or renamed. If you manually delete the version suffix of the package folder name, you can use
command to re-download these packages. In case of accidental deletion, the ENV tool will automatically re-download these packages. ==============================> OTA_DOWNLOADER latest update done [Use Gitee server] cmd_package_update 473 WARNING Missing path D:\Document\ARM\rt-thread_learn\bsp\stm32\stm32l496-ali-developer-1\packages\ota_downloader-latest cmd_package_update 474 WARNING If you manage this package manually, Env tool will not update it. Operation failed. ``` 又出现如上错误
查看更多
2
个回答
默认排序
按发布时间排序
宇宙码蚁
4天前
接口与实现分离
在使用 Git 进行代码克隆(clone)时,如果出现 267 错误,通常是由于 Windows 操作系统的文件路径长度限制导致的。 Windows 操作系统中,文件路径最大长度为260个字符,如果文件路径超过了这个长度限制,就会出现错误。而在进行 Git 克隆时,如果代码仓库里的某些文件名太长,加上克隆时所在的本地路径,就很容易超过 Windows 的文件路径长度限制,导致无法克隆成功。 此时可以尝试以下几种解决方法: 1. 缩短本地代码仓库的路径,尽量避免本地路径过长。 2. 将 Git 克隆到本地磁盘的根目录下。 3. 修改 Windows 的注册表以支持长路径,具体方法可参考 Stack Overflow 网站上的解答。 需要注意的是,以上方法虽然可以缓解问题,但也可能带来其他问题或不便,所以在遇到该错误时,需要根据实际情况进行选择和取舍。 来自chatgpt
HNZV_3242
4天前
这家伙很懒,什么也没写!
更新下:排版太丑了 ```c pkgs --update [Use Gitee server] Cloning into 'D:\Document\ARM\rt-thread_learn\bsp\stm32\stm32l496-ali-developer-1\packages\ota_downloader-latest'... fatal: unable to access 'https://gitee.com/RT-Thread-Mirror/ota_downloader.git/': Failed to connect to gitee.com port 443: Bad access Error message:[Error 267] Failed to download software package with git. Please check the network connection. ({'path': '/packages/iot/ota_downloader', 'ver': 'latest', 'name': 'OTA_DOWNLOADER'}, 'download failed.') Operation failed. ``` 采用git bash 下载 ```c $ git clone https://gitee.com/RT-Thread-Mirror/ota_downloader.git Cloning into 'ota_downloader'... remote: Enumerating objects: 113, done. remote: Counting objects: 100% (26/26), done. remote: Compressing objects: 100% (26/26), done. remote: Total 113 (delta 10), reused 0 (delta 0), pack-reused 87 Receiving objects: 100% (113/113), 1.09 MiB | 8.31 MiB/s, done. Resolving deltas: 100% (38/38), done. ``` 采用先下载,然后 pkgs --update ```c pkgs --update ==============================> OTA_DOWNLOADER latest is downloaded successfully. Error package : {u'path': u'/packages/iot/ota_downloader', u'ver': u'latest', u'name': u'OTA_DOWNLOADER'} ==============================> Packages list to download : Package name : OTA_DOWNLOADER, Ver : latest The packages in the list above are accidentally deleted or renamed. If you manually delete the version suffix of the package folder name, you can use
command to re-download these packages. In case of accidental deletion, the ENV tool will automatically re-download these packages. ==============================> OTA_DOWNLOADER latest update done [Use Gitee server] cmd_package_update 473 WARNING Missing path D:\Document\ARM\rt-thread_learn\bsp\stm32\stm32l496-ali-developer-1\packages\ota_downloader-latest cmd_package_update 474 WARNING If you manage this package manually, Env tool will not update it. Operation failed. ```
撰写答案
登录
注册新账号
关注者
0
被浏览
49
关于作者
HNZV_3242
这家伙很懒,什么也没写!
提问
3
回答
1
被采纳
0
关注TA
发私信
相关问题
1
使用env命令pkgs --update无法下载软件包
2
ENV工具的使用问题
3
pkgs在新电脑上不好使
4
env pkgs --update命令软件包没有下载
5
pkgs --update 命令报错 提示python执行语法错误
6
pkgs只下载一个软件包?
7
使用env工具的pkgs --update命令进行软件包下载时报如下错误
8
pkgs --update之后出现如下错误,env版本是v1.2.4
9
ubuntu20.04 如何使用pkgs 来更新软件包
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
机器人操作系统 (ROS2) 和 RT-Thread 通信
4
五分钟玩转RT-Thread新社区
5
国产MCU移植系列教程汇总,欢迎查看!
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
Rt-thread 排坑(持续更新)
2
rt-thread与linux运行支持的平台对比
3
RT-Thread nano移植到恩智浦s32k144,S32 Design Studio使用的代码
4
RT-Thread开发GD32F450 添加adc外设
5
RT-Thread Smart qemu-virt64-riscv 用户态 userapps 的编译与运行
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
FinSH
Bootloader
ART-Pi
CAN总线
Hardfault
文件系统
USB
DMA
RT-Thread
线程
SCons
RT-Thread Nano
stm32
MQTT
ota
ESP8266
RTC
UART
rtthread
packages_软件包
freemodbus
rt-smart
I2C
WIZnet_W5500
flash
cubemx
FAL
定时器
BSP
AB32VG1
PWM
ADC
msh
SDIO
socket
keil
Debug
C++_cpp
LVGL
中断
编译报错
SFUD
SMP
MicroPython
本月问答贡献
宇宙码蚁
41
个答案
5
次被采纳
xiaorui
25
个答案
4
次被采纳
Ryan_CW
6
个答案
4
次被采纳
lchnu
12
个答案
3
次被采纳
张世争
4
个答案
3
次被采纳
本月文章贡献
张世争
6
篇文章
13
次点赞
YZRD
5
篇文章
8
次点赞
快乐小鸟
4
篇文章
4
次点赞
RTT_逍遥
3
篇文章
24
次点赞
recan
2
篇文章
17
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部