vernesong / OpenClash

A Clash Client For OpenWrt
MIT License
17.55k stars 3.18k forks source link

关于新增依赖 libcap-bin #839

Closed e6e6 closed 4 years ago

e6e6 commented 4 years ago

去官方的源看了下 https://github.com/openwrt/packages/blob/openwrt-19.07/libs/libcap/Makefile https://github.com/openwrt/packages/blob/master/libs/libcap/Makefile

似乎以后 openclash 开始只支持 openwrt 的 master分支了么?

e6e6 commented 4 years ago

基于 19.07 编译,直接报不存在 libcap-bin

WARNING: Makefile 'package/new/luci-app-openclash/luci-app-openclash/Makefile' has a dependency on 'libcap-bin', which does not exist

暂时这个 libcap 先用 master 分支的来替代下

maddie commented 4 years ago

Same here, 19.07 release doesn't have libcap-bin available in opkg repos, making OpenClash not usable.

vernesong commented 4 years ago

应该是需要单独去选,19.07没有单独define

iam3ddy commented 4 years ago

does that means kool lede v2.36 no longer supported?

maddie commented 4 years ago

For anyone not running snapshot build and looking for libcap and libcap-bin, download both packages from:

https://downloads.openwrt.org/snapshots/packages/${YOUR_ARCH}/packages

..., and install them manually.

Be sure to download both libcap and libcap-bin, since they need to be the same version.

adminidor commented 4 years ago

手动安装出错,没有依赖包,建议先opkg update,再opkg install ***.ipk

laomao333 commented 4 years ago

Downloading https://openwrt.proxy.ustclug.org/snapshots/packages/x86_64/packages/libcap_2.43-1_x86_64.ipk Collected errors:

maddie commented 4 years ago

@laomao333 run opkg update first.

laomao333 commented 4 years ago

@laomao333 run opkg update first.

I have already update the opkg,but it still have error as above

maddie commented 4 years ago

Then use official mirrors instead of ustclug.org. The mirror might get out of sync (package vs checksum).

1715173329 commented 4 years ago

Just copy the related package from master to openwrt-19.07.

hcym commented 4 years ago

主分支的没问题,已经编译,还没安装,看着鬼哭狼嚎的有点紧张,先v2用着,明后天再说😂

laomao333 commented 4 years ago

Then use official mirrors instead of ustclug.org. The mirror might get out of sync (package vs checksum).

thank u for your guide , i change the opkg source to official mirrors ,then unpdate opkg again ,finally susess

ronlzw commented 4 years ago

Then use official mirrors instead of ustclug.org. The mirror might get out of sync (package vs checksum).

thank u for your guide , i change the opkg source to official mirrors ,then unpdate opkg again ,finally susess

可以教下我如何解决么

adminidor commented 4 years ago

如果是L大的,先opkg update,然后再安装openclash.ipk,肯定成功,安装ipk会自动下载依赖包 2020-10-12_191620

e6e6 commented 4 years ago

如果是编译基于 19.07 的固件,在某一步插入如下即可,用 master 分支的 libcap 来替换。

rm -rf feeds/packages/libs/libcap
svn co https://github.com/openwrt/packages/trunk/libs/libcap feeds/packages/libs/libcap

本身就用openwrt master 分支的,跟 openclash 一起编译固件的时候会自动选上依赖。

没多大问题,只是随口一问,我自己的固件是基于稳定版源代码编译的,所以来问一下。

kimcnc commented 4 years ago

我是官方openwrt 18.06,libcap-bin怎么获取

e6e6 commented 4 years ago

我是官方openwrt 18.06,libcap-bin怎么获取

从snapshot源手动下载 libcap libcap-bin两个包,ssh 到路由中本地安装即可。

laozhang123456 commented 4 years ago

thanks! opkg update first!

ghost commented 4 years ago

这个做法有点激进了吧,直接连最新的stable版本都不支持了。

ghost commented 4 years ago

如果是编译基于 19.07 的固件,在某一步插入如下即可,用 master 分支的 libcap 来替换。

rm -rf feeds/packages/libs/libcap
svn co https://github.com/openwrt/packages/trunk/libs/libcap feeds/packages/libs/libcap

感谢,解决了。

Masstone commented 4 years ago

实测18.06.4的stable可以 手动下载 libcap libcap-bin两个包,ssh下安装使用 https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap_2.43-1_x86_64.ipk https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap-bin_2.43-1_x86_64.ipk

jakeslee commented 4 years ago

实测18.06.4的stable可以 手动下载 libcap libcap-bin两个包,ssh下安装使用 https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap_2.43-1_x86_64.ipk https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap-bin_2.43-1_x86_64.ipk

安装这两个包后还是有这个问题:

# opkg list | grep libcap
libcap - 2.43-1 - Linux capabilities library library
libcap-bin - 2.43-1 - Linux capabilities . This package contains the libcap utilities.
libcap-ng - 0.8-1 - POSIX capabilities library library
libcap-ng-bin - 0.8-1 - POSIX capabilities library . This package contains the libcap-ng utilities.

在 0.40.8-beta 版本下,使用 opkg 手动安装提示(自动升级 0.40.8 面板会消失):

# opkg install luci-app-openclash_0.40.9-beta_all.ipk
Upgrading luci-app-openclash on root from 0.40.8-beta to 0.40.9-beta...
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for luci-app-openclash:
 *  kernel (= 5.4.70-1-873c32b25c3269121c39b38cae2aa9da)
 * opkg_install_cmd: Cannot install package luci-app-openclash.

当前系统:OpenWrt R20.9.15 SPP v10.1[2020] Compiled by eSir

# cat /proc/version
Linux version 5.4.61 (esir@v14) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r2899-9a482a1)) #0 SMP Thu Sep 24 02:01:24 2020
maddie commented 4 years ago

Kernel dependency shouldn't affect normal operation. Use --force-depends to proceed with installation.

ghost commented 4 years ago

实测18.06.4的stable可以 手动下载 libcap libcap-bin两个包,ssh下安装使用 https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap_2.43-1_x86_64.ipk https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap-bin_2.43-1_x86_64.ipk

谢谢大佬,安装后正常启动了

jakeslee commented 4 years ago

Kernel dependency shouldn't affect normal operation. Use --force-depends to proceed with installation.

Resolved, thx.

de-conf commented 4 years ago
/usr/sbin/capsh -h
Error relocating /usr/sbin/capsh: cap_iab_set_proc: symbol not found
Error relocating /usr/sbin/capsh: cap_mode_name: symbol not found
Error relocating /usr/sbin/capsh: cap_iab_from_text: symbol not found
Error relocating /usr/sbin/capsh: cap_iab_get_proc: symbol not found
Error relocating /usr/sbin/capsh: cap_set_ambient: symbol not found
Error relocating /usr/sbin/capsh: cap_set_mode: symbol not found
Error relocating /usr/sbin/capsh: cap_setuid: symbol not found
Error relocating /usr/sbin/capsh: cap_set_secbits: symbol not found
Error relocating /usr/sbin/capsh: cap_get_secbits: symbol not found
Error relocating /usr/sbin/capsh: cap_get_mode: symbol not found
Error relocating /usr/sbin/capsh: cap_get_ambient: symbol not found
Error relocating /usr/sbin/capsh: cap_reset_ambient: symbol not found
Error relocating /usr/sbin/capsh: cap_max_bits: symbol not found
Error relocating /usr/sbin/capsh: cap_iab_to_text: symbol not found
Error relocating /usr/sbin/capsh: cap_setgroups: symbol not found
Error relocating /usr/sbin/capsh: cap_get_ambient: symbol not found

貌似有依赖问题?

maddie commented 4 years ago

@de-conf Check the version between libcap and libcap-bin. If you're running release version OpenWrt, make sure you install both from the snapshot repository, instead of just libcap-bin

de-conf commented 4 years ago

@de-conf Check the version between libcap and libcap-bin. If you're running release version OpenWrt, make sure you install both from the snapshot repository, instead of just libcap-bin

of course,but They are not dependent on each other。 Expect additional dependencies to be met。

maddie commented 4 years ago

They are indeed dependent. libcap-bin links against libcap. If their versions don't match, you will get the symbol not found errors.

Gol2dragon commented 4 years ago

请问iptables-mod-extra哪里有下载?

00LT00 commented 4 years ago
src/gz snapshots https://downloads.openwrt.org/snapshots/packages/mipsel_24kc/packages/

直接添加这个源就可以解决了

ghost commented 4 years ago

@de-conf Check the version between libcap and libcap-bin. If you're running release version OpenWrt, make sure you install both from the snapshot repository, instead of just libcap-bin

Thanks man resolved.

JoeyWu0 commented 4 years ago

For x86 system, a workaround for me is:

curl -Ok https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap-bin_2.43-1_x86_64.ipk curl -Ok https://downloads.openwrt.org/snapshots/packages/x86_64/packages/libcap_2.43-1_x86_64.ipk opkg remove libcap --force-depends opkg install libcap_2.43-1_x86_64.ipk opkg install libcap-bin_2.43-1_x86_64.ipk

Please check your system CPU architecture to chose the right package.

minfengyk commented 4 years ago

基于Lean大稳定版固件,在编译时,可采用如下方法解决,亲测可行。 一、用 master 分支的 libcap 来替换。 rm -rf feeds/packages/libs/libcap svn co https://github.com/openwrt/packages/trunk/libs/libcap feeds/packages/libs/libcap 二、修改OpenWrt依赖的Makefile文件,添加+libcap 路径:package/network/utils/iproute2/

  define Package/ip-full
  $(call Package/iproute2/Default)
  TITLE:=Routing control utility (Full)
  VARIANT:=full
  PROVIDES:=ip
  ALTERNATIVES:=300:/sbin/ip:/usr/libexec/ip-full
  DEPENDS:=+libnl-tiny +libelf +libcap +(PACKAGE_devlink||PACKAGE_rdma):libml
  endef
de-conf commented 4 years ago

resolved

aguero119 commented 3 years ago

请问这种如何解决? Collected errors:

matthuo333 commented 3 years ago

src/gz snapshots https://downloads.openwrt.org/snapshots/packages/ 用这个源,仍然出现从ui上消失的情况

matthuo333 commented 3 years ago

step1: opkg update step2: 移除 libcab step3: 按装libcab libcab-bin image

step4: (由于oc自动消失),手动安装

仍然提示Capsh异常,不能启动

matthuo333 commented 3 years ago

内核版本:3.14.29, 在怎么自动,手动,换源,仍然出现capsh问题

BitionSong commented 3 years ago

Collected errors:

这个依赖安装不了,主程序也装不了了

ttimasdf commented 3 years ago

妈呀……这项目都是哪些人在用呀,,各个 x86_64,人均软路由?

Pasi-Studio commented 3 years ago

妈呀……这项目都是哪些人在用呀,,各个 x86_64,人均软路由?

是的吧,人均软路由 2333

Sakaizd commented 3 years ago

x86添加源 src/gz snapshots https://downloads.openwrt.org/snapshots/packages/x86_64/packages

Nyaacinth commented 3 years ago

官方快照源在不久前将 libcap 和 libcap-bin 更新为了 libcap-ng 和 libcap-ng-bin 现在我正遭遇这个问题,并且没有可供使用的包了 ( ´_ゝ`) 或者有无老歌可以提供一下 mipsel_24kc 架构的相关包?

e6e6 commented 3 years ago

官方快照源在不久前将 libcap 和 libcap-bin 更新为了 libcap-ng 和 libcap-ng-bin 现在我正遭遇这个问题,并且没有可供使用的包了 ( ´_ゝ`) 或者有无老歌可以提供一下 mipsel_24kc 架构的相关包?

被移了位置而已,snapshot的二进制包还没来得及编译出来,多等等 https://github.com/openwrt/openwrt/commit/427acb71

现在已经出来了,修改下快照源,替换自己架构

src/gz snapshots https://downloads.openwrt.org/snapshots/packages/{architecture}/base
aguero119 commented 3 years ago

重新刷机吧,已经解决

nobody @.***> 于 2021年4月7日周三 07:53写道:

官方快照源在不久前将 libcap 和 libcap-bin 更新为了 libcap-ng 和 libcap-ng-bin 现在我正遭遇这个问题,并且没有可供使用的包了 ( ´_ゝ`) 或者有无老歌可以提供一下 mipsel_24kc 架构的相关包?

被移了位置而已,snapshot的二进制包还没来得及编译出来,多等等 @.*** https://github.com/openwrt/openwrt/commit/427acb71

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vernesong/OpenClash/issues/839#issuecomment-814505477, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBBANYET5DBL3BFNL5H64TTHONI7ANCNFSM4SMNLVMQ .

Evyde commented 3 years ago

手动装完对应版本的还是不能用,离谱。

aguero119 commented 3 years ago

要编译固件,不编译的话就重新刷机吧

RainFlying @.***> 于 2021年4月23日周五 16:27写道:

手动安装 libcap-ng 和 libcap-ng-bin 之后,还是出错。 错误:Capsh异常,请尝试重新安装依赖【libcap】和相应的Capsh库,终止启动...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/vernesong/OpenClash/issues/839#issuecomment-825491608, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBBANZ642JJ3JW26ZPUQ3LTKEVNZANCNFSM4SMNLVMQ .

WindroidBot commented 3 years ago

官方快照源在不久前将 libcap 和 libcap-bin 更新为了 libcap-ng 和 libcap-ng-bin 现在我正遭遇这个问题,并且没有可供使用的包了 ( ´_ゝ`) 或者有无老歌可以提供一下 mipsel_24kc 架构的相关包?

被移了位置而已,snapshot的二进制包还没来得及编译出来,多等等 openwrt/openwrt@427acb7

现在已经出来了,修改下快照源,替换自己架构

src/gz snapshots https://downloads.openwrt.org/snapshots/packages/{architecture}/base

折腾一晚上最后居然是换位置了,我吐了