绿联云 NAS, 系统是 openwrt 22.03.
root 用户,ssh 登录,默认使用 busybox.
执行 opkg update && opkg install git
安装 git.
执行命令如下
# git
bash: /usr/bin/git: No such file or directory
# cd /usr/bin
# ll |grep git
-rwxr-xr-x 2 root root 2643059 Feb 24 02:34 git*
lrwxrwxrwx 1 root root 3 Aug 15 15:11 git-receive-pack -> git*
-rwxr-xr-x 2 root root 1430955 Feb 24 02:34 git-shell*
lrwxrwxrwx 1 root root 3 Aug 15 15:11 git-upload-archive -> git*
lrwxrwxrwx 1 root root 3 Aug 15 15:11 git-upload-pack -> git*
# ./git
bash: ./git: No such file or directory
# echo $PATH
/usr/sbin:/usr/bin:/sbin:/bin
安装其他包,也是一样的问题。搞了几个小时都解决不了。
2
cp19890714 OP 绿联云通过 opkg 安装的 git 不能用,我把 centos 的 git 直接复制到绿联云,可以用。
这什么情况,opkg 的仓库有问题? 现在仓库配置如下 src/gz openwrt_core https://downloads.openwrt.org/releases/22.03-SNAPSHOT/targets/x86/64/packages src/gz openwrt_base https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/x86_64/base src/gz openwrt_luci https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/x86_64/luci src/gz openwrt_packages https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/x86_64/packages src/gz openwrt_routing https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/x86_64/routing src/gz openwrt_telephony https://downloads.openwrt.org/releases/22.03-SNAPSHOT/packages/x86_64/telephony |