opkg update失败问题解决

opkg update失败问题解决执行opkgupdate提示找不文件。root@EC2022v:~/clienttest#opkgupdateDownloadinghttp://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/base/Packages.gz.wget:serverreturnederror:HTTP/1.0…

大家好,又见面了,我是你们的朋友全栈君。

执行opkg update提示找不文件。

root@EC2022v:~/clienttest# opkg update
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/base/Packages.gz.
wget: server returned error: HTTP/1.0 404 Not Found
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/luci/Packages.gz.
wget: server returned error: HTTP/1.0 404 Not Found
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/management/Packages.gz.
wget: server returned error: HTTP/1.0 404 Not Found
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/oldpackages/Packages.gz.
wget: server returned error: HTTP/1.0 404 Not Found
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/packages/Packages.gz.
wget: server returned error: HTTP/1.0 404 Not Found
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/routing/Packages.gz.
wget: server returned error: HTTP/1.0 404 Not Found
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/telephony/Packages.gz.
wget: server returned error: HTTP/1.0 404 Not Found
Collected errors:
 * opkg_download: Failed to download http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/base/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/luci/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/management/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/oldpackages/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/packages/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/routing/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/telephony/Packages.gz, wget returned 1.

去对应的网站上查看:
http://archive.openwrt.org/barrier_breaker/14.07/at91/
在这里插入图片描述
其中并没有generic文件。

也不知道使用的AT91SAM9x25属于哪个分类,打开发现:

在这里插入图片描述
假装就是这个吧。

开始修改配置文件:

root@EC2022v:/etc# cat opkg.conf
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
src/gz barrier_breaker_base http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/base
src/gz barrier_breaker_luci http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/luci
src/gz barrier_breaker_management http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/management
src/gz barrier_breaker_oldpackages http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/oldpackages
src/gz barrier_breaker_packages http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/packages
src/gz barrier_breaker_routing http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/routing
src/gz barrier_breaker_telephony http://downloads.openwrt.org/barrier_breaker/14.07/at91/generic/packages/telephony

修改后的配置文件:

root@EC2022v:/etc# vi opkg.conf
root@EC2022v:/etc# cat opkg.conf
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
src/gz barrier_breaker_base http://downloads.openwrt.org/barrier_breaker/14.07/at91/9g20/packages/base
src/gz barrier_breaker_luci http://downloads.openwrt.org/barrier_breaker/14.07/at91/9g20/packages/luci
src/gz barrier_breaker_management http://downloads.openwrt.org/barrier_breaker/14.07/at91/9g20/packages/management
src/gz barrier_breaker_oldpackages http://downloads.openwrt.org/barrier_breaker/14.07/at91/9g20/packages/oldpackages
src/gz barrier_breaker_packages http://downloads.openwrt.org/barrier_breaker/14.07/at91/9g20/packages/packages
src/gz barrier_breaker_routing http://downloads.openwrt.org/barrier_breaker/14.07/at91/9g20/packages/routing
src/gz barrier_breaker_telephony http://downloads.openwrt.org/barrier_breaker/14.07/at91/9g20/packages/telephony
root@EC2022v:/etc# 

好像就更新完了~

root@EC2022v:/etc# opkg update
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/at91/9g20/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/barrier_breaker_base.
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/at91/9g20/packages/luci/Packages.gz.
Updated list of available packages in /var/opkg-lists/barrier_breaker_luci.
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/at91/9g20/packages/management/Packages.gz.
Updated list of available packages in /var/opkg-lists/barrier_breaker_management.
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/at91/9g20/packages/oldpackages/Packages.gz.
Updated list of available packages in /var/opkg-lists/barrier_breaker_oldpackages.
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/at91/9g20/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/barrier_breaker_packages.
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/at91/9g20/packages/routing/Packages.gz.
Updated list of available packages in /var/opkg-lists/barrier_breaker_routing.
Downloading http://downloads.openwrt.org/barrier_breaker/14.07/at91/9g20/packages/telephony/Packages.gz.
Updated list of available packages in /var/opkg-lists/barrier_breaker_telephony.
root@EC2022v:/etc# 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/135528.html原文链接:https://javaforall.cn

【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛

【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...

(0)
blank

相关推荐

  • 方法引用

    方法引用

    2021年11月12日
  • 2021idea激活码【中文破解版】

    (2021idea激活码)2021最新分享一个能用的的激活码出来,希望能帮到需要激活的朋友。目前这个是能用的,但是用的人多了之后也会失效,会不定时更新的,大家持续关注此网站~IntelliJ2021最新激活注册码,破解教程可免费永久激活,亲测有效,下面是详细链接哦~https://javaforall.cn/100143.html…

  • offset偏移量_如何调用结构体

    offset偏移量_如何调用结构体一、函数原型#include<stddef.h>size_toffsetof(type,member);offsetof原型定义:defineoffsetof(t,m)((size_t)&((t*)0)->m)1、关于&((t*)0)的解释1-1:(type*)0作用是强制类型转换,将0转换为(type*)类型,一个type指针类型1-2:编译器在会将&((t*)0)优化为直接取地址,因为这种表达是:先访问空间,再取空间的

  • QThread使用——关于run和movetoThread的区别「建议收藏」

    QThread使用——关于run和movetoThread的区别「建议收藏」QThread使用探讨2010-10-2300:30注意:本文停止更新,请优先考虑 Qt线程基础(QThread、QtConcurrent等)dbzhang8002011.06.18QThread似乎是很难的一个东西,特别是信号和槽,有非常多的人(尽管使用者本人往往不知道)在用不恰当(甚至错误)的方式在使用QThread,随便

  • JAX-RS 2.0如何验证查询参数

    JAX-RS 2.0如何验证查询参数

  • 图片加载失败显示默认图片

    图片加载失败显示默认图片在页面加载的图片的时候,如果图片不存在或者路径不存在,页面加载图片就会如下图所示。解决方法:在img标签中添加一下标签onerror=”onerror=null;src=’img/a3.jpg'”src中写默认图片地址即可

发表回复

您的电子邮箱地址不会被公开。

关注全栈程序员社区公众号