vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
16.8k stars 3.1k forks source link

preinst script returned status 1. #871

Closed zcq100 closed 3 years ago

zcq100 commented 3 years ago
root@OpenWrt:/# opkg install -V2 luci-app-openclash
opkg_conf_parse_file: Loading conf file /etc/opkg.conf.
opkg_conf_parse_file: Loading conf file /etc/opkg/customfeeds.conf.
opkg_conf_parse_file: Loading conf file /etc/opkg/distfeeds.conf.
pkg_hash_load_feeds:
pkg_hash_load_feeds:
pkg_hash_load_feeds:
pkg_hash_load_feeds:
pkg_hash_load_status_files:
pkg_info_preinstall_check: Updating file owner list.
Installing luci-app-openclash (0.40.10-beta) to root...
Downloading https://<my_domain.com>/openwrt/20201016/packages/x86_64/base/luci-app-openclash_0.40.10-beta_all.ipk
pkg_run_script: Running script /tmp/opkg-HgIgkj/luci-app-openclash-HMeLiB/preinst.
opkg_configure_packages: Configuring unpacked packages.
opkg_configure_packages: Reordering packages before configuring them...
write_status_files_if_changed: Writing status file.
pkg_write_changed_filelists: Saving changed filelists.
Collected errors:
 * pkg_run_script: package "luci-app-openclash" preinst script returned status 1.
 * preinst_configure: Aborting installation of luci-app-openclash.
 * opkg_install_cmd: Cannot install package luci-app-openclash.

这个是出了什么问题呢?

zcq100 commented 3 years ago

我是通过squashfs升级上来的,保留了旧的配置文件,即便luci-app-openclash没安装,新安装也报错。 但是我逐个对比包里面的文件,彻底删除所有的残留,然后重启路由器,就成功安装上了。

没搞明白了这个预安装脚本为什么报错,希望能在日志里面把错误输出更详细点。