How I fixed my luci.ucodebridge error

Could be just some priority system like dpkg/apt has on debian where some packages are flagged as system ones and cannot be removed, but it would probably make the opkg too fat for some routers with small flash chips

Just had the same issue and it fixed for me.

it is a remedy. Thanks!

Thank you! I hadn't rebooted OpenWRT 23.05.0 (Belkin RT3200) for 250 days. When I did, I could not access LuCI, but the install command fixed it immediately.

this worked

It was one of:

  • luci-app-uhttpd - this is the one that I sudo opkg install-ed
  • lua - dependency
  • luci-lib-nixio - dependency
  • luci-lib-ip - dependency
  • luci-lib-jsonc - dependency
  • liblucihttp-lua - dependency
  • luci-lib-base - dependency
  • luci-lua-runtime - dependency
  • luci-compat - dependency

that did it for me. I'm not sure which of the above packages was the one that was missing/broken. Either way, thanks to the OP for posting that.

EDIT: forgot to mention, I'm running OpenWRT 23.05.3, "out of the box" version, not any custom compiled version, or RC version.

I had the same issue on OpenWRT 23.05.3, I removed luci-app-ddns from luci including "Automatically remove unused dependencies". opkg install luci-app-uhttpd fixed it for me, but now I have an additional menu to set up uhttpd in luci that I didn't before :slight_smile: !

What to do if it give:
Unknown package .
Collected errors:

  • opkg_install : Cannot install ?

you need to type opkg update before so you get package info pulled in first

1 Like

This issue just happened to me when I deleted Tinyproxy. Running opkg install luci-lua-runtime resulted in an error:
Unknown package 'luci-lua-runtime'.
Collected errors:

  • opkg_install_cmd: Cannot install package luci-lua-runtime

After some fiddling around and Googling, I solved the problem by first installing:
opkg install luci-base
THEN installing:
opkg install luci-lua-runtime

All is well again, and so far, nothing else broken.

Just read the thread?

Not sure why the UI suddenly became inaccessible. The error shows up after I log in.

I'm having an issue because my OpenWRT is a WAN Failover that connects to the Wi-Fi Hotspot on my phone.

This is what I'm seeing:

root@WAN-Failover-Router:~# opkg update
Downloading https://downloads.openwrt.org/releases/23.05.3/targets/bcm27xx/bcm2711/packages/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.3/targets/bcm27xx/bcm2711/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a72/base/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a72/base/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a72/luci/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a72/luci/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a72/packages/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a72/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a72/routing/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a72/routing/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a72/telephony/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a72/telephony/Packages.gz

Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.3/targets/bcm27xx/bcm2711/packages/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a72/base/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a72/luci/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a72/packages/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a72/routing/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.3/packages/aarch64_cortex-a72/telephony/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

root@WAN-Failover-Router:~# opkg install luci-app-uhttpd
Unknown package 'luci-app-uhttpd'.
Collected errors:
 * opkg_install_cmd: Cannot install package luci-app-uhttpd.

It was connecting to my phone the last time I tried, but I think it's not working because I rebooted it thinking that might fix the UI state before finding this thread.

I fixed the fact that it wasn't connecting to my phone's hotspot using /etc/init.d/network restart and wifi, but even still, it's refusing to update with opkg update even though it has an Internet connection:

root@WAN-Failover-Router:~# ping google.com
PING google.com (142.250.72.46): 56 data bytes
64 bytes from 142.250.72.46: seq=0 ttl=109 time=33.674 ms
64 bytes from 142.250.72.46: seq=1 ttl=109 time=127.331 ms
64 bytes from 142.250.72.46: seq=2 ttl=109 time=79.845 ms
^C
--- google.com ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 33.674/80.283/127.331 ms

Looks like it's a cert issue?

root@WAN-Failover-Router:~# wget https://downloads.openwrt.org/releases/23.05.3/targets/bcm27xx/bcm2711/pa
ckages/Packages.gz
Downloading 'https://downloads.openwrt.org/releases/23.05.3/targets/bcm27xx/bcm2711/packages/Packages.gz'
Connecting to 151.101.130.132:443

Connection error: Invalid SSL certificate

Thanks to some ChatGPT, I was able to fix the issue by running:

ntpd -q -p pool.ntp.org

Hopefully that helps anyone else who sees this thread after not having their OpenWRT device online for an extended period of time.