Unknown package 'ddns-scripts'

Installing ddns support on my Linksys E8450 with OpenWRT 23.05.0.

Attempting to install ddns-scripts gives the following error:

Executing package manager

Unknown package 'ddns-scripts'.

Errors

Collected errors: * pkg_hash_check_unresolved: cannot find dependency libc for ddns-scripts-services * pkg_hash_fetch_best_installation_candidate: Packages for ddns-scripts-services found, but incompatible with the architectures configured * pkg_hash_check_unresolved: cannot find dependency libc for ddns-scripts * pkg_hash_fetch_best_installation_candidate: Packages for ddns-scripts found, but incompatible with the architectures configured * opkg_install_cmd: Cannot install package ddns-scripts.

The opkg install command failed with code 255.

Anybody know how to work around this?

You should probably go ahead an upgrade to 23.05.3.

This may be the result of a connectivity issue.

From the router, can you ping downloads.openwrt.org?

Yes. I can ping downloads.openwrt.org.

From Luci when I update the software lists, it seems to give me a positive response.

let's see the output of the following:

ubus call system board
opkg update
opkg install ddns-scripts
{
        "kernel": "5.15.134",
        "hostname": "E8450_OpenWRT",
        "system": "ARMv8 Processor rev 4",
        "model": "Linksys E8450 (UBI)",
        "board_name": "linksys,e8450-ubi",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "23.05.0",
                "revision": "r23497-6637af95aa",
                "target": "mediatek/mt7622",
                "description": "OpenWrt 23.05.0 r23497-6637af95aa"
        }
}```

```root@E8450_OpenWRT:~# opkg update
Downloading https://downloads.openwrt.org/releases/23.05.0/targets/mediatek/mt7622/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/23.05.0/targets/mediatek/mt7622/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/aarch64_cortex-a53/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/aarch64_cortex-a53/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/aarch64_cortex-a53/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/aarch64_cortex-a53/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/aarch64_cortex-a53/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/aarch64_cortex-a53/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/aarch64_cortex-a53/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/aarch64_cortex-a53/routing/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/aarch64_cortex-a53/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/23.05.0/packages/aarch64_cortex-a53/telephony/Packages.sig
Signature check passed.```

```root@E8450_OpenWRT:~# opkg install ddns-scripts
Unknown package 'ddns-scripts'.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency libc for ddns-scripts-services
 * pkg_hash_fetch_best_installation_candidate: Packages for ddns-scripts-services found, but incompatible with the architectures configured
 * pkg_hash_check_unresolved: cannot find dependency libc for ddns-scripts
 * pkg_hash_fetch_best_installation_candidate: Packages for ddns-scripts found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package ddns-scripts.
root@E8450_OpenWRT:~#```

Try upgrading to 23.05.3 and then see if that solves the problem.

Not super swift with formatting for the forum. But I think you can see what happened.

This system is in production. DDNS can probably wait a while. I have to find an opportunity to inflict an outage.

It appears that opkg has somehow become corrupt on my system.

root@E8450_OpenWRT:~# opkg list luci-app-attendedsysupgrade
luci-app-attendedsysupgrade - git-23.339.51123-138595a - LuCI support for attended sysupgrades
root@E8450_OpenWRT:~# opkg install luci-app-attendedsysupgrade
Unknown package 'luci-app-attendedsysupgrade'.
Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency libc for libubox20230523
 * pkg_hash_fetch_best_installation_candidate: Packages for libubox20230523 found, but incompatible with the architectures configured
 * pkg_hash_check_unreso...

If I utter "opkg list-installed", I get nothing. And I know that I have installed packages that are clearly installed and working.

File "/etc/opkg.conf" contains:

dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
option check_signature

Don't have any idea what I did to mess up opkg. Is there any way to reset/resync opkg?

Casting about for answers to my apparently corrupt okpg... I read somewhere that CLI invocations of opkg are discouraged.

If memory serves, I may have executed something like "opkg install kmod-fs-ext4". It seemed to work and allowed me to set up a USB drive.

Is this a clue?

This is not true; what is discouraged is blindly upgrading packages with opkg upgrade ...

Let's see the output of:

cat /etc/opkg/distfeeds.conf 
cat /etc/opkg/customfeeds.conf 
root@E8450_OpenWRT:~# cat /etc/opkg/distfeeds.conf
src/gz openwrt_core https://downloads.openwrt.org/releases/23.05.0/targets/mediatek/mt7622/packages
src/gz openwrt_base https://downloads.openwrt.org/releases/23.05.0/packages/aarch64_cortex-a53/base
src/gz openwrt_luci https://downloads.openwrt.org/releases/23.05.0/packages/aarch64_cortex-a53/luci
src/gz openwrt_packages https://downloads.openwrt.org/releases/23.05.0/packages/aarch64_cortex-a53/packages
src/gz openwrt_routing https://downloads.openwrt.org/releases/23.05.0/packages/aarch64_cortex-a53/routing
src/gz openwrt_telephony https://downloads.openwrt.org/releases/23.05.0/packages/aarch64_cortex-a53/telephony
root@E8450_OpenWRT:~# cat /etc/opkg/customfeeds.conf
# add your custom package feeds here
#
# src/gz example_feed_name http://www.example.com/path/to/files
root@E8450_OpenWRT:~#

I'm not seeing anything unexpected there.

I think that the upgrade to 23.05.3 will solve the issue. Just make a regular backup of your config, run the upgrade, and then you can install any user-installed packages once things are back up and running.