openwrt / luci

LuCI - OpenWrt Configuration Interface
Apache License 2.0
6.28k stars 2.51k forks source link

luci-app-transmission and other packages fails to install #1136

Closed Goro2030 closed 7 years ago

Goro2030 commented 7 years ago

Version luci-app-transmission - git-17.119.62808-1497d4a-1 fails to install.

Error printed out is.

uci: Parse error (invalid command) at line 1, byte 0
uci: Entry not found
uci: Parse error (invalid command) at line 1, byte 0

Debugged the opkg output and what fails is when running /usr/lib/opkg/info/luci-app-transmission.postinst ... went there and found the file, and also a file called luci-app-transmission.postinst-pkg

Then found all of this "uncompleted upgrades" ...

root@RouterACS:/usr/lib/opkg/info# ls *-pkg
kmod-crypto-crc32.postinst-pkg     luci-app-statistics.postinst-pkg
kmod-crypto-des.postinst-pkg       luci-app-upnp.postinst-pkg
kmod-crypto-ecb.postinst-pkg       luci-mod-admin-full.postinst-pkg
kmod-crypto-md4.postinst-pkg       luci-theme-bootstrap.postinst-pkg
kmod-fs-cifs.postinst-pkg          tar.postinst-pkg
kmod-fs-f2fs.postinst-pkg

Is there something wrong with opkg?

Goro2030 commented 7 years ago

I've found the root cause of this. I had several "non-configuration" files in the /etc/config folder, so a simple "uci changes" was returning errors. Removed the files and now everything is working ok.

Maybe have uci just check the config files for installed services will avoid this?