ipkg로 sudo를 설치하고 싶습니다. 먼저 ipkg를 설치해야 합니다. Synology의 부트스트랩 튜토리얼을 찾을 수 있습니다.여기.
DS413j에는 Marvel Kirkwood mv6282 ARM 프로세서가 있습니다. 그래서 이 파일을 사용했습니다. syno-mvkw-bootstrap_1.2-7_arm-ds111.xsh
그런 다음 파일을 다운로드하고 설치하고 제거하는 단계를 따릅니다. 성공적으로 설치한 후 재부팅합니다.
ipkg를 찾을 수 없다는 오류와 함께 'ipkg update' 명령을 시도했습니다.
설치 전에 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
ipkg 서비스에 대한 .profile에 잘못된 위치가 설정되어 있어 ipkg update 명령이 작동하지 않았습니다.
올바른 위치로 이동한 다음 업데이트를 실행해 보면 제대로 작동합니다.
cd /opt/bin
./ipkg update
여전히 문제가 있는 경우 이 항목에서 자세한 정보를 찾을 수 있습니다. http://forum.synology.com/enu/viewtopic.php?f=40&t=91861&p=346607#p346607