aa65535 / openwrt-chinadns

ChinaDNS for OpenWrt/LEDE
GNU General Public License v3.0
702 stars 174 forks source link

openwrt ChinaDNS_1.3.2-6_x86_64.ipk 文件错误 #93

Closed 4ft35t closed 6 years ago

4ft35t commented 6 years ago

http://openwrt-dist.sourceforge.net/packages/base/x86_64/ChinaDNS_1.3.2-6_x86_64.ipk 的 chinadns 文件无法执行

root@OpenWrt:/tmp/base# wget http://openwrt-dist.sourceforge.net/packages/base/x86_64/ChinaDNS_1.3.2-6_x86_64.ipk
--2018-05-11 09:39:28--  http://openwrt-dist.sourceforge.net/packages/base/x86_64/ChinaDNS_1.3.2-6_x86_64.ipk
Resolving openwrt-dist.sourceforge.net... 216.105.38.10
Connecting to openwrt-dist.sourceforge.net|216.105.38.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26171 (26K) [application/vnd.shana.informed.package]
Saving to: 'ChinaDNS_1.3.2-6_x86_64.ipk'

ChinaDNS_1.3.2-6_x86_64.ipk       100%[==============================================================>]  25.56K   107KB/s   in 0.2s

2018-05-11 09:39:29 (107 KB/s) - 'ChinaDNS_1.3.2-6_x86_64.ipk' saved [26171/26171]

root@OpenWrt:/tmp/base# tar zxf ChinaDNS_1.3.2-6_x86_64.ipk
root@OpenWrt:/tmp/base# tar zxf data.tar.gz
root@OpenWrt:/tmp/base# usr/bin/chinadns
-ash: usr/bin/chinadns: not found
root@OpenWrt:/tmp/base# ls -al usr/bin/chinadns
-rwxr-xr-x    1 root     root         20492 Apr 14 21:40 usr/bin/chinadns

http://openwrt-dist.sourceforge.net/archives/ChinaDNS/1.3.2-6/OpenWrt/x86_64/ChinaDNS_1.3.2-6_x86_64.ipk 可以正常执行

root@OpenWrt:/tmp/archives# wget http://openwrt-dist.sourceforge.net/archives/ChinaDNS/1.3.2-6/OpenWrt/x86_64/ChinaDNS_1.3.2-6_x86_64.i
pk
--2018-05-11 09:45:28--  http://openwrt-dist.sourceforge.net/archives/ChinaDNS/1.3.2-6/OpenWrt/x86_64/ChinaDNS_1.3.2-6_x86_64.ipk
Resolving openwrt-dist.sourceforge.net... 216.105.38.10
Connecting to openwrt-dist.sourceforge.net|216.105.38.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25801 (25K) [application/vnd.shana.informed.package]
Saving to: 'ChinaDNS_1.3.2-6_x86_64.ipk'

ChinaDNS_1.3.2-6_x86_64.ipk       100%[==============================================================>]  25.20K   108KB/s   in 0.2s

2018-05-11 09:45:28 (108 KB/s) - 'ChinaDNS_1.3.2-6_x86_64.ipk' saved [25801/25801]

root@OpenWrt:/tmp/archives# tar zxf ChinaDNS_1.3.2-6_x86_64.ipk
root@OpenWrt:/tmp/archives# tar zxf data.tar.gz
root@OpenWrt:/tmp/archives# usr/bin/chinadns
Fri May 11 09:45:46 2018 CHNROUTE_FILE not specified, CHNRoute is disabled
Fri May 11 09:45:46 2018 chinadns.c:597 bind: Address already in use
Fri May 11 09:45:46 2018 Can't bind address 0.0.0.0:53
lixingcong commented 6 years ago

opkg install China*.ipk

aa65535 commented 6 years ago
root@LEDE:~# wget http://openwrt-dist.sourceforge.net/packages/base/x86_64/ChinaDNS_1.3.2-6_x86_64.ipk
Downloading 'http://openwrt-dist.sourceforge.net/packages/base/x86_64/ChinaDNS_1.3.2-6_x86_64.ipk'
Connecting to 216.105.38.10:80
Writing to 'ChinaDNS_1.3.2-6_x86_64.ipk'
ChinaDNS_1.3.2-6_x86 100% |*******************************| 26171   0:00:00 ETA
Download completed (26171 bytes)
root@LEDE:~# sha256sum ChinaDNS_1.3.2-6_x86_64.ipk
0ea7cdc4e3b142b94125bccf2fb57fe1205259dc1a8910f5ef7df85185962076  ChinaDNS_1.3.2-6_x86_64.ipk
root@LEDE:~# tar zxf ChinaDNS_1.3.2-6_x86_64.ipk
root@LEDE:~# tar zxf data.tar.gz
root@LEDE:~# usr/bin/chinadns
Fri May 11 11:53:24 2018 CHNROUTE_FILE not specified, CHNRoute is disabled
Fri May 11 11:53:24 2018 chinadns.c:597 bind: Address in use
Fri May 11 11:53:24 2018 Can't bind address 0.0.0.0:53
root@LEDE:~# ls -al usr/bin/chinadns
-rwxr-xr-x    1 root     root         20492 Apr 14 21:40 usr/bin/chinadns
root@LEDE:~# sha256sum usr/bin/chinadns
20977dd69a06a2430f08ecd39caa146a79a9635f6c5f72ed13f035655f4e4590  usr/bin/chinadns
4ft35t commented 6 years ago

sha256sum 值是一样的,不同之处在于你的环境 LEDE,我的是 CHAOS CALMER (15.05, r46767)http://openwrt-dist.sourceforge.net/auto_install.sh 自动安装的。

aa65535 commented 6 years ago

@4ft35t 15.05 使用的是 uClibc 库,你需要使用 http://openwrt-dist.sourceforge.net/legacy/base/x86_64/ 下的 ipk

http://openwrt-dist.sourceforge.net/packages/base/ 下面的是给 17.01 及以上版本使用的(musl 库)。