Opkg update not downloading any packages

Hi,

I installed opkg on top of linux kernel built using buildroot and I am running this on qemu. When I do 'opkg update' I do not get any failure messages but no packages are downloaded. My internet connection is good since I am able to ping.

# opkg update
# ifconfig
eth0      Link encap:Ethernet  HWaddr 52:54:00:12:34:56
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:fe12:3456/64 Scope:Link
          inet6 addr: fec0::5054:ff:fe12:3456/64 Scope:Site
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4347 (4.2 KiB)  TX bytes:2555 (2.4 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

# ping  downloads.openwrt.org
PING downloads.openwrt.org (168.119.138.211): 56 data bytes
64 bytes from 168.119.138.211: seq=0 ttl=255 time=136.639 ms
64 bytes from 168.119.138.211: seq=1 ttl=255 time=134.218 ms
64 bytes from 168.119.138.211: seq=2 ttl=255 time=133.425 ms
64 bytes from 168.119.138.211: seq=3 ttl=255 time=128.448 ms
64 bytes from 168.119.138.211: seq=4 ttl=255 time=132.817 ms

^C--- downloads.openwrt.org ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 128.448/133.109/136.639 ms
# opkg update
# opkg --version
opkg version 0.4.5
#

So I am not able to install any packages:

# opkg update
# opkg --version
opkg version 0.4.5
# opkg install gcc
 * opkg_prepare_url_for_install: Couldn't find anything to satisfy 'gcc'.
#

Any leads on this would be most helpful! Thanks!

What's in your feeds?

$ cat /etc/opkg/distfeeds.conf
src/gz openwrt_core https://downloads.openwrt.org/releases/22.03.5/targets/x86/64/packages
src/gz openwrt_base https://downloads.openwrt.org/releases/22.03.5/packages/x86_64/base
src/gz openwrt_luci https://downloads.openwrt.org/releases/22.03.5/packages/x86_64/luci
src/gz openwrt_packages https://downloads.openwrt.org/releases/22.03.5/packages/x86_64/packages
src/gz openwrt_routing https://downloads.openwrt.org/releases/22.03.5/packages/x86_64/routing
src/gz openwrt_telephony https://downloads.openwrt.org/releases/22.03.5/packages/x86_64/telephony
1 Like

Seems like there is no such directory .. weird

# cd /etc/opkg
-sh: cd: can't cd to /etc/opkg: No such file or directory
#

How is this tread related to openwrt?

1 Like

Welcome to the community!

@jayashree505 - to be clear, OpenWrt is its own Linux "distribution", meaning you don't install it on top of another OS. Images are available for use in virtualization.

For OpenWrt for x86_64 and the virtualization Wiki, see:

1 Like

…and OpenWrt-opkg is not the same as buildroot-opkg or yocto-opkg.

1 Like

Thank you all for the clarifications. I have a better idea now. I was confused because buildroot documentation said that package managers are not supported, but opkg was still an option on menuconfig. Upon searching I found Openwrt and assumed it might be somewhat similar... I think I can try using openwrt since it supports opkg.

Just to set expectations here -- OpenWrt is a special case linux environment that is optimized for a very specific set of criteria, namely:

  • small footprint, currently supporting as little as 8MB of storage and 64MB RAM (yes - megabytes), although the requirements will be increasing with the next major release, aimed to run on small embedded devices like consumer all-in-one wifi routers
  • focus on routing and networking -- it is primarily intended for use as a router firmware, although it is extensible to do many other things. But it is not, and never will be, a full 'big distro' general purpose desktop OS.

So when you say that you can "try using" OpenWrt because of the act that it supports opk, can you describe what it is that you are trying to achieve (and also on what device)?

1 Like