OpenWrt 发布了最新版的稳定版固件24.10,Passwall 也随之推出了与之对应的 25.3.9 版。近期试着安装了一下,发现新固件功能没增加多少,但是坑却一大堆。现在就把我在 OpenWrt 24.10固件下安装 Passwall 的过程分享给大家,以便避免出现类似问题。
OpenWrt 24.10固件最大的问题是软件库没有调整好,明明所有的 ipk 软件包都在库中,但就是不能通过包管理方式安装软件,这就给 Passwall 的安装过程增加了很多不必要的麻烦。
安装同样采用 >>之前教程<< 提供的步骤,下载固件文件部署虚拟机,然后成功扩展根分区并通过系统界面的软件管理成功安装了中文显示。到此时,一切都看起来似乎很正常,但是上传了 Passwall 软件包并进行安装时,系统出现如下提示,安装失败:
Collected errors: * pkg_hash_check_unresolved: cannot find dependency coreutils for luci-app-passwall * pkg_hash_check_unresolved: cannot find dependency coreutils-base64 for luci-app-passwall * pkg_hash_check_unresolved: cannot find dependency coreutils-nohup for luci-app-passwall * pkg_hash_check_unresolved: cannot find dependency curl for luci-app-passwall * pkg_hash_check_unresolved: cannot find dependency chinadns-ng for luci-app-passwall * pkg_hash_check_unresolved: cannot find dependency dns2socks for luci-app-passwall * pkg_hash_check_unresolved: cannot find dependency luci-compat for luci-app-passwall * pkg_hash_check_unresolved: cannot find dependency luci-lib-jsonc for luci-app-passwall * pkg_hash_check_unresolved: cannot find dependency microsocks for luci-app-passwall * pkg_hash_check_unresolved: cannot find dependency tcping for luci-app-passwall * pkg_hash_check_unresolved: cannot find dependency luci-lua-runtime for luci-app-passwall * pkg_hash_fetch_best_installation_candidate: Packages for luci-app-passwall found, but incompatible with the architectures configured * opkg_install_cmd: Cannot install package luci-app-passwall.
这看起来也没什么了不起,就是缺少依赖包么,装上就行了呀。但是找遍了 Passwall 提供的依赖包,也没发现有什么 coreutils、coreutils-base64、coreutils-nohup、curl、luci-compat、luci-lib-jsonc 和 luci-lua-runtime包,但是更新软件库列表,同样找不到这些软件包。这就有点难为人了呀,这些依赖在哪呢?
事实上,在 OpenWrt 的软件包网站,是可以找到对应的软件包下载的,但是由于软件库组织的问题,还不能在包管理工具中直接安装对应的软件包。于是只有手动安装这些软件包,当然在安装时还会遇到依赖问题,还要安装对应的依赖。
把 Passwall 所有依赖包都安装成功后,就可以安装它本身了。但是这次安装依然没有成功,提示”/etc/”目录下的一些文件不能被修改。观察安装过程,会发现在安装 Passwall 的同时,会安装 dnsmasq-full 软件包以及其它一些软件包,而 OpenWrt 固件已经安装了 dnsmasq, dnsmasq-full 会和该软件包共用配置文件,所有造成安装不成功。那么直接在软件管理界面将 dnsmasq 删除,再次安装 Passwall,系统会提示存在 ssl 鉴权错误,这个可先不用理会,这个再次上传软件包安装 Passwall,最终会成功安装。安装完成后,再安装其对应的中文包,就完成了 OpenWrt 24.10固件安装 Passwall 的全部工作。
有兴趣的朋友可以自行在 OpenWrt 固件上安装 Passwall,>>这里<< 为大家提供了 x86_64 架构完整的软件包和相应的依赖包,耐下心来,根据提示逐步安装软件包,最终一定可以成功。
如果觉得麻烦,也可以试用我安装完成的 >>磁盘镜像文件<<,这个镜像文件已经安装成功了 Passwall,管理密码是 123,网络接口采用 DHCP 方式,希望可以对大家有所帮助。