当前位置: 首页 > 工具软件 > opkg-upgrade > 使用案例 >

angsrom linux opkg update 失败 解决方案

苏华藏
2023-12-01

在这篇文章的指导下解决了,Opkg update失败的问题,问题出在开发板的网络DNS配置,开发板可以访问局域网的,但是不能访问互联网,另外angstrom linux 软件源 feeds 地址改变了 不在是原来的 所有需要更改 /etc/opkg/*下的conf文件,前缀改成http://feeds.angstrom-distribution.org/feeds/,原来的地址是http://www.angstrom-distribution.org/feeds/,这个地址访问不通 。这样就可以执行opkg update命令 来安装软件了

How-to update opkg package feeds

Page historylast edited by  Chris  2 years ago

opkg is the default software package manager for Angstrom linux running on the  Beagle Embedded starter kit hardware. It provides hundreds of open source software packages optimized specifically for the ARM platform architecture, similar to the heavy-weight apt-get package manager on desktop systems. The following describes how to update opkg feeds.

 

1. Make sure you have a live internet connection.

 

root@beagleboard:~# ping  www.liquidware.com

 

If no internet is live, attach the ethernet cable (Beagle xM), or connect your  ethernet adapter (Beagle C5), and execute the following commands:

 

root@beagleboard:~# ifdown usb0
root@beagleboard:~# ifup usb0

 

2. Look at what's inside your opkg config file:

 

root@beagleboard:~#  cat /etc/opkg/beagleboard-feed.conf

 

3. Browse online for angstrom feeds to obtain a new URL here:

 

http://feeds.angstrom-distribution.org/feeds/ 

 

4. Edit each of your package feed configuration files located here using the URL from step 3:

 

root@beagleboard:~# ls -l /etc/opkg/*

 

-rw-r--r-- 1 www-data www-data 157 Mar  2  2011 /etc/opkg/arch.conf 

 

-rw-r--r-- 1 www-data www-data  87 Mar 11 02:58 /etc/opkg/base-feed.conf 
-rw-r--r-- 1 www-data www-data 109 Mar 11 02:57 /etc/opkg/beagleboard-feed.conf 
-rw-r--r-- 1 www-data www-data  89 Mar 11 03:00 /etc/opkg/debug-feed.conf 
-rw-r--r-- 1 www-data www-data  98 Mar  2  2011 /etc/opkg/gstreamer-feed.conf 
-rw-r--r-- 1 www-data www-data 103 Mar 11 03:00 /etc/opkg/locale-en-feed.conf 
-rw-r--r-- 1 www-data www-data  83 Mar  2  2011 /etc/opkg/noarch-feed.conf 
-rw-r--r-- 1 www-data www-data  87 Mar 11 02:59 /etc/opkg/perl-feed.conf 
-rw-r--r-- 1 www-data www-data  91 Mar 11 02:59 /etc/opkg/python-feed.conf 
-rw-r--r-- 1 www-data www-data  80 Mar  2  2011 /etc/opkg/sdk-feed.conf 

 

5. Execute commands:

 

 $ opkg update

 

Then, you will be able to use the install command to install new software packages.

 

 $ opkg install your-package

 

Additional documentation for opkg command:

http://wiki.openmoko.org/wiki/Opkg/Documentation#configuration_files


http://antipastohw.pbworks.com/w/page/53817795/How-to%20update%20opkg%20package%20feeds

 

 类似资料: