morytyann / OpenWrt-mihomo

Transparent Proxy with Mihomo on OpenWrt.
MIT License
1.21k stars 140 forks source link

[BUG] 安装最新版本(1.7.2)的插件里面的mihomo安装的时候居然提醒不允许降级 #118

Closed Moexin closed 2 months ago

Moexin commented 2 months ago

自查步骤

确认

系统

ImmortalWrt

系统版本

23.05.3

插件版本

1.7.1 to 1.7.2

硬件架构

x86_64

BUG 描述

安装最新版本(1.7.2)的插件里面的mihomo安装的时候居然提醒不允许降级。。。 个人判断应该采取commits作为版本号导致的。新版本的commits值比旧版本的commits要低,造成OPKG判断要按照的版本比现版本低。

root@MoeCat:~# opkg install mihomo_alpha-16c95fca-2_x86_64.ipk 
Not downgrading package mihomo on root from alpha-41efc5e5-2 to alpha-16c95fca-2.

预期行为

正常安装并更新

复现步骤

1.7.1版本内核升级到1.7.2版本内核

root@MoeCat:~# opkg install mihomo_alpha-16c95fca-2_x86_64.ipk 
Not downgrading package mihomo on root from alpha-41efc5e5-2 to alpha-16c95fca-2.

插件配置

配置文件

插件日志

核心日志

附加信息

root@MoeCat:~# opkg install mihomo_alpha-16c95fca-2_x86_64.ipk 
Not downgrading package mihomo on root from alpha-41efc5e5-2 to alpha-16c95fca-2.
ForestL18 commented 2 months ago

直接卸载名称为mihomo(前面不带luci)的插件,然后重新安装新版插件即可

Moexin commented 2 months ago

直接卸载名称为mihomo(前面不带luci)的插件,然后重新安装新版插件即可

目前是这么解决的,甚至还得强行卸载。。 总而言之不是很优雅。。

root@MoeCat:~# opkg remove mihomo
No packages removed.
Collected errors:
 * print_dependents_warning: Package mihomo is depended upon by packages:
 * print_dependents_warning:    luci-app-mihomo
 * print_dependents_warning: These might cease to work if package mihomo is removed.

 * print_dependents_warning: Force removal of this package with --force-depends.
 * print_dependents_warning: Force removal of this package and its dependents
 * print_dependents_warning: with --force-removal-of-dependent-packages.
root@MoeCat:~# opkg remove mihomo --force-depends
Removing package mihomo from root...
Not deleting modified conffile /etc/config/mihomo.
root@MoeCat:~# opkg install mihomo_alpha-16c95fca-2_x86_64.ipk --force-depends
Installing mihomo (alpha-16c95fca-2) to root...
Configuring mihomo.
Collected errors:
 * resolve_conffiles: Existing conffile /etc/config/mihomo is different from the conffile in the new package. The new conffile will be placed at /etc/config/mihomo-opkg.
morytyann commented 2 months ago

可以先用--force-reinstall参数,我会修改一下这个问题

morytyann commented 2 months ago

我更正了Makefile,更新到这个修复版还是会提示不允许降级,但以后不会再出现此问题了