Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

line 2: can't open '/etc/uci-defaults/30_luci-theme-argon #523

Open
bropines opened this issue Sep 7, 2024 · 16 comments
Open

line 2: can't open '/etc/uci-defaults/30_luci-theme-argon #523

bropines opened this issue Sep 7, 2024 · 16 comments

Comments

@bropines
Copy link

bropines commented Sep 7, 2024

I'm new to Owrt and don't understand much at all. Here is the SSH output

root@OpenWrt:~# opkg install luci-theme-argon*.ipk
Installing luci-theme-argon (2.3.1) to root...
Installing libnghttp2-14 (1.57.0-1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/mipsel_24kc/packages/libnghttp2-14_1.57.0-1_mipsel_24kc.ipk
Installing libcurl4 (8.7.1-r1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/mipsel_24kc/packages/libcurl4_8.7.1-r1_mipsel_24kc.ipk
Installing curl (8.7.1-r1) to root...
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/mipsel_24kc/packages/curl_8.7.1-r1_mipsel_24kc.ipk
Configuring libnghttp2-14.
Configuring libcurl4.
Configuring curl.
Configuring luci-theme-argon.
//usr/lib/opkg/info/luci-theme-argon.postinst: .: line 2: can't open '/etc/uci-defaults/30_luci-theme-argon': No such file or directory
@bropines
Copy link
Author

bropines commented Sep 7, 2024

It is fixed by creating this file with hands and taking the code from the file in the repository, but I do not think that this should be the case

@walterzilla
Copy link

walterzilla commented Sep 9, 2024

Same issue here, also similar error installing luci-app-argon-config.
OpenWrt 23.05.4 (r24012-d8dd03c46f)

@bropines
Copy link
Author

bropines commented Sep 9, 2024

Same issue here, also similar error installing luci-app-argon-config. OpenWrt 23.05.4 (r24012-d8dd03c46f)

Maybe this is a common bug for 23.05.*?
openwrt-23.05 branch (git-23.233.52805-dae2684)

@iiwwnnaa
Copy link

iiwwnnaa commented Sep 11, 2024

Same.
Working after downgrade 23.05.4 to 23.05.0

@Chr1s70ph
Copy link

@jerrykuku can we get a fix for this?
23.05.5 released yesterday, so more and more people are going to run into this issue

@miodzicho
Copy link

Even after creating file luci-argon-config disapears either when run /usr/lib/opkg/info/luci-app-argon-config.postinst
Or did remove / install of luci-app-argon-config_0.9_all.ipk

@valeriigamaley
Copy link

get the same problem at Xiaomi R4AC with OpenWrt 23.05.3, r23809-234f1a2efa. but theme is working & running normally)

@Looccri
Copy link

Looccri commented Oct 1, 2024

类似的问题,
Collected errors:

  • wfopen: luci-app-argon-config*.ipk: No such file or directory.
  • pkg_init_from_file: Failed to extract control file from luci-app-argon-config*.ipk.
    手动上传后,文件也会在安装过程中被删除

@1025766948
Copy link

先安装
opkg install luci-compat
opkg install luci-lib-ipkg

@TerrenceMiao
Copy link

Modify /lib/functions.sh file, replace line: 282:

    ( [ -f "$i" ] && cd "$(dirname $i)" && . "$i" ) && rm -f "$i"

with:

    ( [ -f "$i" ] && cd "$(dirname $i)" && . "$i" ) && echo

temporarily, then run installation:

root@OpenWRT:~# opkg install luci-theme-argon.ipk 
Installing luci-theme-argon (2.3.1) to root...
Configuring luci-theme-argon.

root@OpenWRT:~# opkg install luci-app-argon-config.ipk 
Installing luci-app-argon-config (0.9) to root...
Configuring luci-app-argon-config.

@ac1982
Copy link

ac1982 commented Dec 25, 2024

Modify /lib/functions.sh file, replace line: 282:

    ( [ -f "$i" ] && cd "$(dirname $i)" && . "$i" ) && rm -f "$i"

with:

    ( [ -f "$i" ] && cd "$(dirname $i)" && . "$i" ) && echo

temporarily, then run installation:

root@OpenWRT:~# opkg install luci-theme-argon.ipk 
Installing luci-theme-argon (2.3.1) to root...
Configuring luci-theme-argon.

root@OpenWRT:~# opkg install luci-app-argon-config.ipk 
Installing luci-app-argon-config (0.9) to root...
Configuring luci-app-argon-config.

Thank you for the solution. However, after doing this, the Argon theme is not working as expected; the fallback theme is still being used.

@ac1982
Copy link

ac1982 commented Dec 25, 2024

My bad, after install "Lua runtime", works now.

@rickyrick2002
Copy link

rickyrick2002 commented Jan 6, 2025

@jerrykuku can we get a fix for this? 23.05.5 released yesterday, so more and more people are going to run into this issue

+1

DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='23.05.5'
DISTRIB_REVISION='r24106-10cc5fcd00'
DISTRIB_TARGET='ramips/mt7621'
DISTRIB_ARCH='mipsel_24kc'
DISTRIB_DESCRIPTION='OpenWrt 23.05.5 r24106-10cc5fcd00'
DISTRIB_TAINTS=''

Xiaomi Mi Router 4A Gigabit Edition


TerrenceMiao

Modify /lib/functions.sh file, replace line: 282:

    ( [ -f "$i" ] && cd "$(dirname $i)" && . "$i" ) && rm -f "$i"

with:

    ( [ -f "$i" ] && cd "$(dirname $i)" && . "$i" ) && echo

temporarily, then run installation:

root@OpenWRT:~# opkg install luci-theme-argon.ipk 
Installing luci-theme-argon (2.3.1) to root...
Configuring luci-theme-argon.

root@OpenWRT:~# opkg install luci-app-argon-config.ipk 
Installing luci-app-argon-config (0.9) to root...
Configuring luci-app-argon-config.

This works but shouldn't we make an update?

@bendavis78
Copy link

I'm having the same error. Is this a problem with openwrt/luci? If so is there an issue someone can link to?

@bropines
Copy link
Author

I'm having the same error. Is this a problem with openwrt/luci? If so is there an issue someone can link to?

#523 (comment)

@joe-albert
Copy link

Also having this error-- modifying the functions.sh doesn't seem like it's an option for me though..

When I went to line 282 there was something entirely different there?

Just posting so others know that this is a widespread issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests