IPKG lässt sich nicht starten

Status
Für weitere Antworten geschlossen.

peterus

Benutzer
Mitglied seit
14. Nov 2009
Beiträge
7
Punkte für Reaktionen
0
Punkte
0
Hallo!

Ich wollte IPKG auf einer DS209j installieren, ich hab das nach dem Wiki gemacht.
Also:
als root peer SSH einloggen, in den Public Ordner wechseln.
Mit "wget http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/syno-x07-bootstrap_1.2-7_arm.xsh" (ARM (armv5tejl)) Paket runtergeladen und installiert.
wenn ich dann "ipkg" eingebe kommt der Fehler:
"/opt/bin/ipkg: /opt/bin/ipkg: 1: Syntax error: word unexpected (expecting ")")"

Wenn ich das Paket für "PowerPC (ppc_6xx)" herunterlade, geht es zwar, aber nach einem neustart kommt der gleiche Fehler...
Leider ist nirgends so genau definiert was für eine CPU das meine DS hat...
Kann mir jemand weiterhelfen?

Lg Peter

Edit: hab die aktuelle FW drauf (2.2)
 

itari

Benutzer
Mitglied seit
15. Mai 2008
Beiträge
21.900
Punkte für Reaktionen
14
Punkte
0

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
14.020
Punkte für Reaktionen
273
Punkte
393
Hallo,
welche Prozessortyp Deine DS hat kannst Du im Wiki nachlesen.
Bitte lösche erst einmal alles was Dein 1. Versuch hinterlassen hat, d.h. lösche das komplette /volume1/opt Verzeichnis (kann eventuell auch /volume1/@optware heißen). Schau in /etc/rc.local ob da Hinterlassenschaften vormanden sind (mount), starte neu beginne von vorn mit dem richtigen Paket.

Gruß Götz

PS: der Itari war schneller :)
 

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
14.020
Punkte für Reaktionen
273
Punkte
393

peterus

Benutzer
Mitglied seit
14. Nov 2009
Beiträge
7
Punkte für Reaktionen
0
Punkte
0
Ok danke mal für die Hilfe...

hab dieses Paket genommen: http://ipkg.nslu2-linux.org/feeds/optware/ds101g/cross/unstable/ds101-bootstrap_1.0-4_powerpc.xsh

ich bekomme jetzt diesen Text auf den Bildschirm:

Rich (BBCode):
DiskStation> sh ds101-bootstrap_1.0-4_powerpc1.xsh
DS-10x Bootstrap extracting archive... please wait
bootstrap/
bootstrap/bootstrap.ipk
bootstrap/bootstrap.sh
bootstrap/ipkg.ipk
bootstrap/ipkg.sh
bootstrap/openssl.ipk
bootstrap/wget-ssl.ipk
10274+1 records in
10274+1 records out
Creating temporary ipkg repository... success
Installing DS101(g)-bootstrap package...Unpacking bootstrap.ipk...Done.
Configuring bootstrap.ipk...mount: Mounting /volume1/opt on /opt failed: No such file or directory
mkdir: Cannot create directory `/opt/etc/': No such file or directory
mkdir: Cannot create directory `/opt/var/': No such file or directory
mkdir: Cannot create directory `/opt/tmp': No such file or directory
mkdir: Cannot create directory `/opt/lib/': No such file or directory
tar: Cannot create directory `./opt/etc': No such file or directory
tar: ./opt/etc/rc.optware: No such file or directory
Regenerating dynamic linker cache...
//usr/lib/ipkg/info/bootstrap.ipk.postinst: //usr/lib/ipkg/info/bootstrap.ipk.postinst: 26: /opt/sbin/ldconfig: not found
Done.
 success
Installing IPKG package... (Ignore missing md5sum warning)
Unpacking ipkg.ipk...Done.
Configuring ipkg.ipk..../ipkg.sh: ./ipkg.sh: 1170: md5sum: not found
tar: Cannot create directory `./opt/etc': No such file or directory
tar: ./opt/etc/ipkg.conf: No such file or directory
Done.
Removing temporary ipkg repository...
Installing OpenSSL..bootstrap.sh: bootstrap.sh: 31: /opt/bin/ipkg: not found

sind diese Fehlermeldungen OK die manchmal kommen oder nicht?
 

AXELB

Benutzer
Mitglied seit
13. Sep 2008
Beiträge
150
Punkte für Reaktionen
0
Punkte
0
Ich hab das selbe Problem gehabt und nun nochmal installiert. Allerdings habe ich eine 107.

Ich habe den (ppc_6xx): http://ipkg.nslu2-linux.org/feeds/optware/ds101g/cross/unstable/ds101-bootstrap_1.0-4_powerpc.xsh genommen.

Rich (BBCode):
SERVER> sh  ds101-bootstrap_1.0-4_powerpc1.xsh
DS-10x Bootstrap extracting archive... please wait
bootstrap/
bootstrap/bootstrap.ipk
bootstrap/bootstrap.sh
bootstrap/ipkg.ipk
bootstrap/ipkg.sh
bootstrap/openssl.ipk
bootstrap/wget-ssl.ipk
10274+1 records in
10274+1 records out
Creating temporary ipkg repository... success
Installing DS101(g)-bootstrap package...Unpacking bootstrap.ipk...Done.
Configuring bootstrap.ipk...mount: Mounting /volume1/opt on /opt failed: No such
 file or directory
mkdir: Cannot create directory `/opt/etc/': No such file or directory
mkdir: Cannot create directory `/opt/var/': No such file or directory
mkdir: Cannot create directory `/opt/tmp': No such file or directory
mkdir: Cannot create directory `/opt/lib/': No such file or directory
tar: Cannot create directory `./opt/sbin': No such file or directory
tar: ./opt/sbin/ldconfig: No such file or directory
Regenerating dynamic linker cache...
//usr/lib/ipkg/info/bootstrap.ipk.postinst: //usr/lib/ipkg/info/bootstrap.ipk.po
stinst: 26: /opt/sbin/ldconfig: not found
Done.
 success
Installing IPKG package... (Ignore missing md5sum warning)
Unpacking ipkg.ipk...Done.
Configuring ipkg.ipk..../ipkg.sh: ./ipkg.sh: 1170: md5sum: not found
tar: Cannot create directory `./opt/lib': No such file or directory
tar: ./opt/lib/libipkg.so.0.0.0: No such file or directory
Done.
Removing temporary ipkg repository...
Installing OpenSSL..bootstrap.sh: bootstrap.sh: 31: /opt/bin/ipkg: not found


BusyBox v1.1.0 (2009.09.03-20:16+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

SERVER> ipkg update
/bin/sh: ipkg: not found

Ich bin genau nacher der Anleitung vom Wiki vorgegangen, ja als Root und nicht admin.

Auch wirklich als Telnet wie es dabei steht und nicht ssh (wobei das keinen unterschied machen dürfte). Die vorherigen Dateien auch gelöscht. Ich habe den verdacht das keine Angabe im Wiki bezüglich "Welchen Prozessor hat meine DS" stimmt.
 

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
14.020
Punkte für Reaktionen
273
Punkte
393
Hallo,
die Fehlermeldungen sind schlecht.
gib bitte mal die Ausgaben von
Rich (BBCode):
ls -la /
mount
cat /etc/rc.local
ls -la /volume1
Gruß Götz
 

AXELB

Benutzer
Mitglied seit
13. Sep 2008
Beiträge
150
Punkte für Reaktionen
0
Punkte
0
Rich (BBCode):
SERVER> ls -la /
drwxr-xr-x   21 root     root         4096 Nov 14 17:53 .
drwxr-xr-x   21 root     root         4096 Nov 14 17:53 ..
-rw-r--r--    1 root     root           11 Oct  7 18:09 .mkcert.serial
-rw-------    1 root     root         1024 Oct  7 18:09 .rnd
drwxr-xr-x    2 root     root         4096 Nov  8 20:54 bin
drwxr-xr-x    3 root     root        12288 Oct  7 18:08 dev
drwxr-xr-x   10 root     root         4096 Nov 14 08:00 etc
drwxr-xr-x   10 root     root         4096 Nov 14 08:00 etc.defaults
drwxr-xr-x    2 root     root         4096 Sep  4 00:53 initrd
drwxr-xr-x   13 root     root        12288 Nov 14 17:53 lib
lrwxrwxrwx    1 root     root           11 Oct  7 18:07 linuxrc -> bin/busybox
drwx------    2 root     root         4096 Sep  4 00:40 lost+found
drwxr-xr-x    2 root     root         4096 Sep  4 00:39 mnt
drwxr-xr-x    0 root     root            0 Nov 14 17:53 opt
dr-xr-xr-x   72 root     root            0 Jan  1  1970 proc
drwxr-xr-x    2 root     root         4096 Oct  7 18:07 root
drwxr-xr-x    2 root     root         4096 Oct  7 18:07 sbin
drwxr-xr-x   10 root     root            0 Nov 14 08:00 sys
drwxrwxrwt    5 root     root          780 Nov 14 17:58 tmp
drwxr-xr-x    7 root     root         4096 Oct 30 20:02 usr
drwxr-xr-x   11 root     root         4096 Nov 14 08:00 var
drwxr-xr-x   11 root     root         4096 Oct  7 18:08 var.defaults
drwxrwxrwx   12 root     root         4096 Nov 14 17:53 volume1
drwxr-xr-x    3 root     root         4096 Nov  8 20:58 writeable
Rich (BBCode):
SERVER> mount
/dev/sda1 on / type ext3 (rw,data=ordered)
/tmp on /tmp type tmpfs (rw)
/sys on /sys type sysfs (rw)
/proc/bus/usb on /proc/bus/usb type usbfs (rw)
/dev/sda3 on /volume1 type ext3 (usrquota,grpquota)
/volume1/opt on /opt type --bind (rw)
Rich (BBCode):
SERVER> cat /etc/rc.local
#!/bin/sh

# Optware setup
mkdir -p /opt
[ -e /volume1/opt ] && mount -o bind /volume1/opt /opt
[ -x /opt/etc/rc.optware ] && /opt/etc/rc.optware
[ -e /bin/killall ] || ln -s /bin/busybox /bin/killall
Rich (BBCode):
SERVER> ls -la /volume1
drwxrwxrwx   12 root     root         4096 Nov 14 17:53 .
drwxr-xr-x   21 root     root         4096 Nov 14 17:53 ..
drwxr-xr-x    3 admin    root         4096 Oct  7 18:08 @database
drwxrwxrwt    4 root     root         4096 Nov 14 14:31 @spool
drwxrwxrwx    3 root     root         4096 Nov 14 08:00 @tmp
-rw-------    1 root     root         7168 Nov 14 14:31 aquota.group
-rw-------    1 root     root         8192 Nov 14 14:31 aquota.user
drwx------    2 root     root        16384 Oct  7 18:03 lost+found
drwxrwxrwx    5 root     root         4096 Oct 31 22:21 music
drwxr-xr-x    2 root     root         4096 Nov 14 17:53 opt
drwxrwxrwx    2 root     root         4096 Oct 12 18:54 photo
drwxrwxrwx    6 root     root         4096 Nov 14 17:53 public
drwxrwxrwx    2 admin    users        4096 Nov 14 17:53 tmp
drwxrwxrwx    4 root     root         4096 Oct 31 17:45 video
 

peterus

Benutzer
Mitglied seit
14. Nov 2009
Beiträge
7
Punkte für Reaktionen
0
Punkte
0
Hier die ausgabe:

Rich (BBCode):
DiskStation> ls -la /
drwxr-xr-x   21 root     root         4096 Nov 14 17:46 .
drwxr-xr-x   21 root     root         4096 Nov 14 17:46 ..
-rw-r--r--    1 root     root            3 Feb 22  2004 .mkcert.serial
-rw-------    1 root     root         1024 Feb 22  2004 .rnd
drwxr-xr-x    2 root     root         4096 Nov 14 16:16 bin
drwxr-xr-x    3 root     root        12288 Nov 14 16:18 dev
drwxr-xr-x   12 root     root         4096 Nov 14 16:47 etc
drwxr-xr-x   11 root     root         4096 Nov 14 16:47 etc.defaults
drwxr-xr-x    2 root     root         4096 Sep  4 04:14 initrd
drwxr-xr-x   13 root     root        12288 Nov 14 17:46 lib
lrwxrwxrwx    1 root     root           11 Nov 14 16:17 linuxrc -> bin/busybox
drwx------    2 root     root         4096 Sep  4 03:54 lost+found
drwxr-xr-x    2 root     root         4096 Sep  4 03:51 mnt
drwxr-xr-x    0 root     root            0 Nov 14 17:46 opt
dr-xr-xr-x   72 root     root            0 Jul  6  1976 proc
drwxr-xr-x    2 root     root         4096 Nov 14 16:17 root
drwxr-xr-x    2 root     root         4096 Nov 14 16:17 sbin
drwxr-xr-x   10 root     root            0 Jul  6  1976 sys
drwxrwxrwt    4 root     root          460 Nov 14 17:46 tmp
drwxr-xr-x    7 root     root         4096 Nov 14 16:23 usr
drwxr-xr-x   12 root     root         4096 Nov 14 16:47 var
drwxr-xr-x   11 root     root         4096 Nov 14 16:18 var.defaults
drwxr-xr-x    9 root     root         4096 Nov 14 17:46 volume1
drwxr-xr-x    3 root     root         4096 Nov 14 17:46 writeable
DiskStation> mount
/dev/md0 on / type ext3 (rw,data=ordered)
/tmp on /tmp type tmpfs (rw)
/sys on /sys type sysfs (rw)
/proc/bus/usb on /proc/bus/usb type usbfs (rw)
/dev/md2 on /volume1 type ext3 (usrquota,grpquota)
/volume1/@optware on /opt type --bind (rw)
DiskStation> cat /etc/rc.local
#!/bin/sh

# Optware setup
[ -x /etc/rc.optware ] && /etc/rc.optware start

exit 0

# Optware setup
mkdir -p /opt
[ -e /volume1/opt ] && mount -o bind /volume1/opt /opt
[ -x /opt/etc/rc.optware ] && /opt/etc/rc.optware
[ -e /bin/killall ] || ln -s /bin/busybox /bin/killall
DiskStation> ls -la /volume1
drwxr-xr-x    9 root     root         4096 Nov 14 17:46 .
drwxr-xr-x   21 root     root         4096 Nov 14 17:46 ..
drwxr-xr-x    8 root     root         4096 Nov 13 01:28 @download
drwxrwxrwx    2 root     root         4096 Nov 14 16:47 @tmp
drwxrwxrwx    3 root     root         4096 Nov 14 17:46 Public
-rw-------    1 root     root         7168 Nov 14 16:46 aquota.group
-rw-------    1 root     root         8192 Nov 14 16:46 aquota.user
drwx------    2 root     root        16384 Nov  6 18:12 lost+found
drwxr-xr-x    2 root     root         4096 Nov 14 17:46 opt
drwxrwxrwx    8 root     root         4096 Nov 13 12:46 peter
drwxrwxrwx    2 root     root         4096 Nov 14 17:46 tmp
DiskStation>
 

itari

Benutzer
Mitglied seit
15. Mai 2008
Beiträge
21.900
Punkte für Reaktionen
14
Punkte
0
Ein

Rich (BBCode):
umount /opt

und dann nochmal installieren

Itari
 

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
14.020
Punkte für Reaktionen
273
Punkte
393

AXELB

Benutzer
Mitglied seit
13. Sep 2008
Beiträge
150
Punkte für Reaktionen
0
Punkte
0
Rich (BBCode):
SERVER> umount /opt

	
	


Rich (BBCode):
SERVER> cd /volume1/public
SERVER> sh ds101-bootstrap_1.0-4_powerpc1.xsh
DS-10x Bootstrap extracting archive... please wait
bootstrap/
bootstrap/bootstrap.ipk
bootstrap/bootstrap.sh
bootstrap/ipkg.ipk
bootstrap/ipkg.sh
bootstrap/openssl.ipk
bootstrap/wget-ssl.ipk
10274+1 records in
10274+1 records out
Creating temporary ipkg repository... success
Installing DS101(g)-bootstrap package...Unpacking bootstrap.ipk...Done.
Configuring bootstrap.ipk...Regenerating dynamic linker cache...
/opt/sbin/ldconfig: /opt/sbin/ldconfig: 1: Syntax error: "(" unexpected
Done.
 success
Installing IPKG package... (Ignore missing md5sum warning)
Unpacking ipkg.ipk...Done.
Configuring ipkg.ipk..../ipkg.sh: ./ipkg.sh: 1170: md5sum: not found
Done.
Removing temporary ipkg repository...
Installing OpenSSL../opt/bin/ipkg: /opt/bin/ipkg: 1: Syntax error: "(" unexpecte
d


BusyBox v1.1.0 (2009.09.03-20:16+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

SERVER> ipkg
/opt/bin/ipkg: /opt/bin/ipkg: 1: Syntax error: "(" unexpected
 

peterus

Benutzer
Mitglied seit
14. Nov 2009
Beiträge
7
Punkte für Reaktionen
0
Punkte
0
Ein

Rich (BBCode):
umount /opt

und dann nochmal installieren

Itari

Ok... welches Paket solln wir/ich jetzt verwenden? es sind schon 2 verschiedene Paketequellen in diesem Thema herinnen...
Sollen wir die alten daten löschen? also /volume1/Public/bootstrap und /volume1/Public/opt ?
 

AXELB

Benutzer
Mitglied seit
13. Sep 2008
Beiträge
150
Punkte für Reaktionen
0
Punkte
0
Hallo,

@AXELB
In Deiner Singnatur steht aber DS-107+. Du mußt schon die richtige Bezeichnung nehmen und dann in der Tabelle schauen.

Gruß Götz

Das ist mir nun aber sehr sehr peinlich. :eek: Wirklich großes sorry für die Umstände.
 

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
14.020
Punkte für Reaktionen
273
Punkte
393
Hallo,
an Euch beide:

1. Aufräumen

Rich (BBCode):
cd /
umount /opt
rm -R /volume1/opt
rm -R /opt
vi /etc/rc.local
in rc.local folgende Zeilen löschen

@AXELB
# Optware setup
mkdir -p /opt
[ -e /volume1/opt ] && mount -o bind /volume1/opt /opt
[ -x /opt/etc/rc.optware ] && /opt/etc/rc.optware
[ -e /bin/killall ] || ln -s /bin/busybox /bin/killall

@peterus
# Optware setup
[ -x /etc/rc.optware ] && /etc/rc.optware start

Dann bitte neu starten.

@AXELB
http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/syno-x07-bootstrap_1.2-7_arm.xsh

@peterus
http://ipkg.nslu2-linux.org/feeds/optware/ds101g/cross/unstable/ds101-bootstrap_1.0-4_powerpc.xsh

Gruß Götz
 

AXELB

Benutzer
Mitglied seit
13. Sep 2008
Beiträge
150
Punkte für Reaktionen
0
Punkte
0
Danke dir meines hat geklappt.
 

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
14.020
Punkte für Reaktionen
273
Punkte
393
Hallo,
Nachtrag an peterus

in rc.local folgendes löschen:

# Optware setup
[ -x /etc/rc.optware ] && /etc/rc.optware start

exit 0

# Optware setup
mkdir -p /opt
[ -e /volume1/opt ] && mount -o bind /volume1/opt /opt
[ -x /opt/etc/rc.optware ] && /opt/etc/rc.optware
[ -e /bin/killall ] || ln -s /bin/busybox /bin/killall

Gruß Götz
 

peterus

Benutzer
Mitglied seit
14. Nov 2009
Beiträge
7
Punkte für Reaktionen
0
Punkte
0
Also ich hab mal alles gelöscht und bekomme beim installieren diese ausgabe:

Rich (BBCode):
DiskStation> sh ds101-bootstrap_1.0-4_powerpc.xsh
DS-10x Bootstrap extracting archive... please wait
bootstrap/
bootstrap/bootstrap.ipk
bootstrap/bootstrap.sh
bootstrap/ipkg.ipk
bootstrap/ipkg.sh
bootstrap/openssl.ipk
bootstrap/wget-ssl.ipk
10274+1 records in
10274+1 records out
Creating temporary ipkg repository... success
Installing DS101(g)-bootstrap package...Unpacking bootstrap.ipk...Done.
Configuring bootstrap.ipk...Regenerating dynamic linker cache...
/opt/sbin/ldconfig: /lib/libss.so.2 is not a symbolic link

/opt/sbin/ldconfig: /lib/libext2fs.so.2 is not a symbolic link

/opt/sbin/ldconfig: /lib/libuuid.so.1 is not a symbolic link

/opt/sbin/ldconfig: /lib/libblkid.so.1 is not a symbolic link

/opt/sbin/ldconfig: /lib/libe2p.so.2 is not a symbolic link

/opt/sbin/ldconfig: /lib/libcom_err.so.2 is not a symbolic link

Modifying /etc/rc.local
Done.
 success
Installing IPKG package... (Ignore missing md5sum warning)
Unpacking ipkg.ipk...Done.
Configuring ipkg.ipk..../ipkg.sh: ./ipkg.sh: 1170: md5sum: not found
Done.
Removing temporary ipkg repository...
Installing OpenSSL..Installing openssl (0.9.7m-5) to root...
Configuring openssl
Successfully terminated.
 success
Installing wget-SSL...Installing wget-ssl (1.12-2) to root...
Nothing to be done
An error ocurred, return value: 1.
Collected errors:
ERROR: Cannot satisfy the following dependencies for wget-ssl:
         libidn

passt das so?

wenn ich jetzt "ipkg update" mache lädt er die daten herunter.
Ich möchte eigentlich den gcc installieren, das würde ich gerne so machen: "ipkg install gcc" aber es kommt diese meldung:

Rich (BBCode):
DiskStation> ipkg install gcc
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package gcc.
Check the spelling or perhaps run 'ipkg update'

ideen?
 

itari

Benutzer
Mitglied seit
15. Mai 2008
Beiträge
21.900
Punkte für Reaktionen
14
Punkte
0
Was sagt denn ein ipkg list | grep gcc

Itari
 
Status
Für weitere Antworten geschlossen.
 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat