我想用 ipkg 安装 sudo。首先需要安装 ipkg。您可以找到 Synology 的 bootstrap 教程这里。
DS413j 有一个 Marvel Kirkwood mv6282 ARM 处理器。所以我使用了这个文件 syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh
然后我按照下载、安装和删除文件的步骤操作。安装成功后,我重新启动。
我尝试命令“ipkg update”,但出现错误“ipkg not found”。
安装之前没有安装 opt,我尝试再次安装,卸载并重新安装,还是同样的错误。
卸载命令:
mount
umount /opt
rm -rf /volume1/@optware
rm -rf /usr/lib/ipkg
我在这里做错了什么?
我做的每一件事:
login as: root
[email protected]'s password:
BusyBox v1.16.1 (2014-05-29 11:35:48 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
MyNas> mount
/dev/root on / type ext4 (defaults)
none on /dev/pts type devpts (gid=4,mode=620)
/sys on /sys type sysfs (0)
/tmp on /tmp type tmpfs (0)
/proc/bus/usb on /proc/bus/usb type usbfs (0)
/dev/vg1/volume_1 on /volume1 type ext4 (usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,synoacl)
MyNas> umount /opt
umount: can't umount /opt: Invalid argument
MyNas> rm -rf /volume1/@optware
MyNas> rm -rf /usr/lib/ipkg
MyNas> cd /volume1/@tmp
MyNas> wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstabl
e/syno-mvkw-bootstrap_1.2-7_arm.xsh
--2014-10-23 17:05:41-- http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_arm.xsh
Resolving ipkg.nslu2-linux.org... 140.211.169.161
Connecting to ipkg.nslu2-linux.org|140.211.169.161|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 252947 (247K) [text/plain]
Saving to: 'syno-mvkw-bootstrap_1.2-7_arm.xsh'
100%[======================================>] 252,947 218KB/s in 1.1s
2014-10-23 17:05:43 (218 KB/s) - 'syno-mvkw-bootstrap_1.2-7_arm.xsh' saved [252947/252947]
MyNas> sh syno-mvkw-bootstrap_1.2-7_arm.xsh
Optware Bootstrap for syno-mvkw.
Extracting archive... please wait
bootstrap/
bootstrap/bootstrap.sh
bootstrap/ipkg-opt.ipk
bootstrap/ipkg.sh
1232+1 records in
1232+1 records out
bootstrap/optware-bootstrap.ipk
bootstrap/wget.ipk
Error: CPU not Marvell Kirkwood, probably wrong bootstrap.xsh
BusyBox v1.16.1 (2014-05-29 11:35:48 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
MyNas> wget http://web.archive.org/web/20121005035819/http://wizjos.endofintern
et.net/synology/archief/syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh
--2014-10-23 17:06:23-- http://web.archive.org/web/20121005035819/http://wizjos.endofinternet.net/synology/archief/syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh
Resolving web.archive.org... 207.241.226.190
Connecting to web.archive.org|207.241.226.190|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 251866 (246K) [text/plain]
Saving to: 'syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh'
100%[======================================>] 251,866 239KB/s in 1.0s
2014-10-23 17:06:25 (239 KB/s) - 'syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh' saved [251866/251866]
MyNas> sh syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh
Optware Bootstrap for syno-mvkw.
Extracting archive... please wait
bootstrap/
bootstrap/optware-bootstrap.ipk
bootstrap/wget.ipk
1227+1 records in
1227+1 records out
bootstrap/bootstrap.sh
bootstrap/ipkg.sh
bootstrap/ipkg-opt.ipk
Creating temporary ipkg repository...
Installing optware-bootstrap package...
Unpacking optware-bootstrap.ipk...Done.
Configuring optware-bootstrap.ipk...Done.
Installing ipkg...
Unpacking ipkg-opt.ipk...Done.
Configuring ipkg-opt.ipk...WARNING: can't open config file: /usr/syno/ssl/openssl.cnf
Done.
Removing temporary ipkg repository...
Installing wget...
Installing wget (1.12-2) to root...
Configuring wget
Successfully terminated.
Creating /opt/etc/ipkg/cross-feed.conf...
Setup complete.
BusyBox v1.16.1 (2014-05-29 11:35:48 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
MyNas> reboot
MyNas>
Broadcast message from root@MyNas
(/dev/pts/1) at 17:07 ...
The system is going down for reboot NOW!
login as: root
[email protected]'s password:
BusyBox v1.16.1 (2014-05-29 11:35:48 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
MyNas> ipkg update
-ash: ipkg: not found
MyNas>
MyNas> mount
/dev/root on / type ext4 (defaults)
none on /dev/pts type devpts (gid=4,mode=620)
/sys on /sys type sysfs (0)
/tmp on /tmp type tmpfs (0)
/proc/bus/usb on /proc/bus/usb type usbfs (0)
/dev/vg1/volume_1 on /volume1 type ext4 (usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,synoacl)
/volume1/@optware on /opt type bind (bind)
MyNas>
答案1
正如您在上面的日志中看到的,ipkg 已成功安装。您可以像这样检查版本:
/opt/bin/ipkg -v
由于 .profile 中为 ipkg 服务设置的位置错误,ipkg update 命令不起作用。
如果我去正确的位置然后尝试运行更新,它可以正常工作。
cd /opt/bin
./ipkg update
如果您仍有问题,您可以在此主题中找到更多信息。 http://forum.synology.com/enu/viewtopic.php?f=40&t=91861&p=346607#p346607