ipkg not found

Status
Für weitere Antworten geschlossen.

NeWCN

Benutzer
Mitglied seit
22. Apr 2012
Beiträge
26
Punkte für Reaktionen
0
Punkte
0
Hallo zusammen,

ich habe heute versucht, IPKG auf der DS 1512+ zu installieren. Dabei habe ich die Anweisungen auf IPKG - Synlology Wiki zu Hilfe genommen.

Auf den ersten Blick hat alles funktioniert. Allerdings ist wohl nach den Abschnitten "Altes Startup Script anpassen" und "Neues separates Startup Script für Optware" gewisse Dinge durcheinander geraten.

Auf der DS findet sich nach dem Neustart IPKG nicht mehr, dasselbe gilt für /opt:

Rich (BBCode):
DS> ipgk update
-ash: ipgk: not found

Rich (BBCode):
DS> cd /opt
-ash: cd: can't cd to /opt

Allerdings scheint die "Volume1/@optware /opt vorhanden zu sein:

Rich (BBCode):
DS> ln -s /volume1/@optware /opt
ln: /opt: File exists

bzw. mit ls -la /

Rich (BBCode):
DS> ls -la /
drwxr-xr-x   33 root     root          4096 Jun 12 13:20 .
drwxr-xr-x   33 root     root          4096 Jun 12 13:20 ..
drwxr-xr-x    2 root     root          4096 Apr 13  2011 .old_patch_info
-rw-------    1 root     root          1024 Apr 13  2011 .rnd
drwxr-xr-x    3 root     root          4096 Jan  1  2000 .syno
drwxr-xr-x    2 root     root          4096 Apr 13  2011 .system_info
drwxr-xr-x    2 root     root          4096 Apr 13  2011 bin
drwxr-xr-x    9 root     root         36864 Jun 12 13:20 dev
drwxr-xr-x   16 root     root          4096 Jun 12 13:21 etc
drwxr-xr-x   14 root     root          4096 Jun 12 13:20 etc.defaults
drwxr-xr-x   18 root     root          1024 Jun 12 13:20 initrd
drwxr-xr-x   18 root     root         20480 Apr 24 17:42 lib
drwxr-xr-x    2 root     root          4096 Apr 13  2011 lib64
lrwxrwxrwx    1 root     root            11 Apr 13  2011 linuxrc -> bin/busybox
drwx------    2 root     root          4096 Apr 13 06:03 lost+found
drwxr-xr-x    2 root     root          4096 Apr 13 05:53 mnt
lrwxrwxrwx    1 root     root            16 Jun 12 11:30 opt -> /volume1@optware
drwxr-xr-x    2 root     root          4096 Jun 12 11:36 optware.sh
dr-xr-xr-x  221 root     root             0 Jun 12 13:19 proc
drwxr-xr-x    2 root     root          4096 Jun 12 10:58 public
drwxr-xr-x    2 root     root          4096 Apr 13  2011 root
drwxr-xr-x    2 root     root          4096 Apr 13  2011 sbin
drwxr-xr-x   12 root     root             0 Jun 12 13:19 sys
drwxrwxrwt    7 root     root           880 Jun 12 13:36 tmp
drwxr-xr-x    8 root     root          4096 Apr 13  2011 usr
drwxr-xr-x   12 root     root          4096 Jun 12 13:20 var
drwxr-xr-x   11 root     root           4096 Apr 13  2011 var.defaults
drwxr-xr-x   11 root     root          4096 Jun 12 13:20 volume1
drwxr-xr-x    6 root     root          4096 Jun 12 13:20 volume2
drwxr-xr-x    9 root     root          4096 Jun 12 13:20 volume3
drwxr-xr-x    6 root     root          4096 Jun 12 13:20 volume4
drwxr-xr-x    5 root     root          4096 Jun 12 13:20 volume5
drwxr-xr-x    9 root     root          4096 Jun 12 13:20 volume6
drwxrwxrwx    3 root     root          4096 Apr 30 09:10 volumeSATA1
drwxr-xr-x    2 root     root          4096 May  6 22:52 volumeUSB1
drwxrwxrwx    2 root     root          4096 Apr 24 20:52 volumeUSB2

Vor lauter Bastelei weiss ich nicht mehr weiter...

Hat irgend jemand eine Idee?

Grüsse
 

ubuntulinux

Benutzer
Mitglied seit
23. Jan 2010
Beiträge
2.063
Punkte für Reaktionen
0
Punkte
82
opt -> /volume1@optware


Der Symlink ist falsch. Mach mal rm /opt und dann ln -s /volume1/@optware /opt


Viele Grüsse,
ubuntulinux
 

NeWCN

Benutzer
Mitglied seit
22. Apr 2012
Beiträge
26
Punkte für Reaktionen
0
Punkte
0
Hallo,

das ging aber schnell!

Habe die Befehle ausgeführt, aber DS meldet wieder:

Rich (BBCode):
-ash: ipkg: not found

Liegt das Problem eventuell an der modifizierten "optware.sh" oder den Änderungen in der "rc.local"?

Rich (BBCode):
#!/bin/sh
#
# Optware setup
# Alternatives Optware Startup und Shutdown Script #/usr/local/etc/rc.d/optware.sh
#
case $1 in
start)
       for i in /opt/etc/init.d/S??* ;do
#
               # Ignore dangling symlinks (if any).
               [ ! -f "$i" ] && continue
#
               case "$i" in
                  *.sh)
                       # Source shell script for speed.
                       (
                               trap - INT QUIT TSTP
                               set start
                               . $i
                       )
                       ;;
                  *)
                       # No sh extension, so fork subprocess.
                       $i start
                       ;;
               esac
       done
       ;;
#
stop)
#
       for i in /opt/etc/init.d/S??* ;do
#
               # Ignore dangling symlinks (if any).
               [ ! -f "$i" ] && continue
#
               case "$i" in
                  *.sh)
                       # Source shell script for speed.
                       (
                               trap - INT QUIT TSTP
                               set stop
                              . $i
                       )
                       ;;
                  *)
                       # No sh extension, so fork subprocess.
                       $i stop                       ;;
               esac
         done
         ;;
#
*)
         echo "Usage: $0 [start|stop]"
         ;;
esac
#
# End


Rich (BBCode):
#!/bin/sh
[ -e /opt/etc/rc.optware ] && /opt/etc/rc.optware 
# Optware setup
#[ -x /etc/rc.optware ] && /etc/rc.optware start

Grüsse
 

ubuntulinux

Benutzer
Mitglied seit
23. Jan 2010
Beiträge
2.063
Punkte für Reaktionen
0
Punkte
82
Was sagt jetzt ls -la /?
 

NeWCN

Benutzer
Mitglied seit
22. Apr 2012
Beiträge
26
Punkte für Reaktionen
0
Punkte
0
Rich (BBCode):
drwxr-xr-x    2 root     root          4096 Apr 13  2011 .
drwxr-xr-x   33 root     root          4096 Jun 12 14:51 ..
-rw-r--r--    1 root     root           366 Jun 12 14:18 .profile
 

ubuntulinux

Benutzer
Mitglied seit
23. Jan 2010
Beiträge
2.063
Punkte für Reaktionen
0
Punkte
82
Sicher dass das / ist und nicht ./? ;)
 

NeWCN

Benutzer
Mitglied seit
22. Apr 2012
Beiträge
26
Punkte für Reaktionen
0
Punkte
0
Sorry…

Rich (BBCode):
drwxr-xr-x   33 root     root          4096 Jun 12 14:51 .
drwxr-xr-x   33 root     root          4096 Jun 12 14:51 ..
drwxr-xr-x    2 root     root          4096 Apr 13  2011 .old_patch_info
-rw-------    1 root     root          1024 Apr 13  2011 .rnd
drwxr-xr-x    3 root     root          4096 Jan  1  2000 .syno
drwxr-xr-x    2 root     root          4096 Apr 13  2011 .system_info
drwxr-xr-x    2 root     root          4096 Apr 13  2011 bin
drwxr-xr-x    9 root     root         36864 Jun 12 13:20 dev
drwxr-xr-x   16 root     root          4096 Jun 12 13:21 etc
drwxr-xr-x   14 root     root          4096 Jun 12 13:20 etc.defaults
drwxr-xr-x   18 root     root          1024 Jun 12 13:20 initrd
drwxr-xr-x   18 root     root         20480 Apr 24 17:42 lib
drwxr-xr-x    2 root     root          4096 Apr 13  2011 lib64
lrwxrwxrwx    1 root     root            11 Apr 13  2011 linuxrc -> bin/busybox
drwx------    2 root     root          4096 Apr 13 06:03 lost+found
drwxr-xr-x    2 root     root          4096 Apr 13 05:53 mnt
lrwxrwxrwx    1 root     root            16 Jun 12 14:51 opt -> /volume1@optware
drwxr-xr-x    2 root     root          4096 Jun 12 11:36 optware.sh
dr-xr-xr-x  221 root     root             0 Jun 12 13:19 proc
drwxr-xr-x    2 root     root          4096 Jun 12 10:58 public
drwxr-xr-x    2 root     root          4096 Apr 13  2011 root
drwxr-xr-x    2 root     root          4096 Apr 13  2011 sbin
drwxr-xr-x   12 root     root             0 Jun 12 13:19 sys
drwxrwxrwt    7 root     root           880 Jun 12 15:07 tmp
drwxr-xr-x    8 root     root          4096 Apr 13  2011 usr
drwxr-xr-x   12 root     root          4096 Jun 12 13:20 var
drwxr-xr-x   11 root     root          4096 Apr 13  2011 var.defaults
drwxr-xr-x   11 root     root          4096 Jun 12 13:20 volume1
drwxr-xr-x    6 root     root          4096 Jun 12 13:20 volume2
drwxr-xr-x    9 root     root          4096 Jun 12 13:20 volume3
drwxr-xr-x    6 root     root          4096 Jun 12 13:20 volume4
drwxr-xr-x    5 root     root          4096 Jun 12 13:20 volume5
drwxr-xr-x    9 root     root          4096 Jun 12 13:20 volume6
drwxrwxrwx    3 root     root          4096 Apr 30 09:10 volumeSATA1
drwxr-xr-x    2 root     root          4096 May  6 22:52 volumeUSB1
drwxrwxrwx    2 root     root          4096 Apr 24 20:52 volumeUSB2
 

ubuntulinux

Benutzer
Mitglied seit
23. Jan 2010
Beiträge
2.063
Punkte für Reaktionen
0
Punkte
82
opt -> /volume1@optware ist immernoch falsch (zwischen dem 1 und dem @ sollte noch ein / sein). Mach mal rm -r /opt und dann nochmal den ln.
 

NeWCN

Benutzer
Mitglied seit
22. Apr 2012
Beiträge
26
Punkte für Reaktionen
0
Punkte
0
Super und herzlichen Dank, hat funktioniert. Habe wohl den "/" vergessen!

Was genau ist bezüglich der Alternativen Start/Stop-Scripts für Optware und IPKG - wie hier beschrieben - sinnvoll/nützlich? Ich blicke nicht ganz durch, was jetzt wirklich sinnvoll ist oder nicht, auch weil auf anderen Beiträgen z.T. andere Einstellungen vorgeschlagen werden.

Grüsse
 

thunderbirdy

Benutzer
Mitglied seit
06. Jan 2013
Beiträge
3
Punkte für Reaktionen
0
Punkte
0
Hallo Zusammen,

ich habe das gleiche Problem. Beim Aufruf von ipkg kommt jedesmal -ash: ipkg: not found. Der Symlink sollte eigentlich richtig sein

[EDIT]
Ergänzung:
Ich nutze ein DS211j und habe gerade vorhin auf die aktuellste DSM Version aktualisiert.
Ob es vorher lief kann ich nicht sagen, da ich es zuvor nicht probiert hatte

Rich (BBCode):
DiskStation> ls -la
drwxr-xr-x   25 root     root          4096 Jan  6 20:33 .
drwxr-xr-x   25 root     root          4096 Jan  6 20:33 ..
drwx------    3 root     root          4096 Jul  6  2012 .cache
drwx------    3 root     root          4096 Jul  6  2012 .config
drwx------    3 root     root          4096 Jul  6  2012 .local
drwxr-xr-x    3 root     root          4096 Jan  6 20:13 .old_patch_info
-rw-------    1 root     root          1024 Jul  6  2012 .rnd
drwxr-xr-x    3 root     root          4096 Jan  6 20:11 .syno
drwxr-xr-x    2 root     root          4096 Jul  6  2012 .system_info
drwxr-xr-x    2 root     root          4096 Jan  6 20:13 bin
drwxr-xr-x   10 root     root         45056 Jan  6 20:14 dev
drwxr-xr-x   17 root     root          4096 Jan  6 20:15 etc
drwxr-xr-x   15 root     root          4096 Jan  6 20:14 etc.defaults
drwxr-xr-x    2 root     root          4096 Dec 11 13:50 initrd
drwxr-xr-x   17 root     root         20480 Jan  6 20:16 lib
lrwxrwxrwx    1 root     root            11 Jan  6 20:13 linuxrc -> bin/busybox
drwx------    2 root     root          4096 Dec 11 13:33 lost+found
drwxr-xr-x    2 root     root          4096 Dec 11 13:32 mnt
lrwxrwxrwx    1 root     root            17 Jan  6 20:20 opt -> /volume1/@optware
dr-xr-xr-x  119 root     root             0 Jan  1  1970 proc
drwxr-xr-x    2 root     root          4096 Jan  6 20:13 root
drwxr-xr-x    2 root     root          4096 Jan  6 20:13 sbin
drwxr-xr-x   11 root     root             0 Jan  1  1970 sys
drwxrwxrwt    7 root     root          1120 Jan  6 20:17 tmp
drwxr-xr-x    8 root     root          4096 Jan  6 20:13 usr
drwxr-xr-x   14 root     root          4096 Jan  6 20:15 var
drwxr-xr-x   11 root     root          4096 Jan  6 20:13 var.defaults
drwxr-xr-x   20 root     root          4096 Jan  6 20:14 volume1

/root/.profile sieht so aus:

Rich (BBCode):
DiskStation> cat /root/.profile

umask 022

#PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
#export PATH

#This fixes the backspace when telnetting in.
#if [ "$TERM" != "linux" ]; then
#        stty erase
#fi

HOME=/root
export HOME

TERM=${TERM:-cons25}
export TERM

PAGER=more
export PAGER

PS1="`hostname`> "

alias dir="ls -al"
alias ll="ls -la"

und die /etc/profile

Rich (BBCode):
DiskStation> cat profile
#/etc/profile: system-wide .profile file for ash.
PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin"
umask 022
#This fixes the backspace when telnetting in.
#if [ "$TERM" != "linux" ]; then
#        stty erase
#fi
PGDATA=/var/service/pgsql
export PATH PGDATA
HOME=/root
export HOME
TERM=${TERM:-cons25}
export TERM
PAGER=more
export PAGER
PS1="`hostname`> "
alias dir="ls -al"
alias ll="ls -la"
ulimit -c unlimited
PATH=/opt/bin:/opt/sbin:$PATH

Habt Ihr eine Idee, warum es bei mir nicht startet?

Vielen Dank und viele Grüße
Thunderbirdy
 
Zuletzt bearbeitet:

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
14.042
Punkte für Reaktionen
299
Punkte
393
Hallo,
was sagt denn
echo $PATH
?

Gruß Götz
 

thunderbirdy

Benutzer
Mitglied seit
06. Jan 2013
Beiträge
3
Punkte für Reaktionen
0
Punkte
0
Path sieht bei mir so aus:

Rich (BBCode):
DiskStation> echo $PATH
/opt/bin:/opt/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/syno/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin
DiskStation>
 

lordfiSh

Benutzer
Mitglied seit
07. Sep 2011
Beiträge
21
Punkte für Reaktionen
0
Punkte
0
und ls -l /opt/bin/ipkg
sagt sowas wie "-rwxr-xr-x 1 root root 3236 Feb 15 2012 /opt/bin/ipkg" ?
 

thunderbirdy

Benutzer
Mitglied seit
06. Jan 2013
Beiträge
3
Punkte für Reaktionen
0
Punkte
0
Ja. Das Ergebnis sieht so aus:

DiskStation> ls -l /opt/bin/ipkg
-rwxr-xr-x 1 root root 3232 May 20 2010 /opt/bin/ipkg
DiskStation>

Aber wieso ist das von 2010 und nicht von 2012?
 

Doppelter Wolf

Benutzer
Mitglied seit
11. Sep 2008
Beiträge
171
Punkte für Reaktionen
0
Punkte
16
Kann es sein das du dir mal eine neue Synology gekauft hast und ein Restore gefahren bist? führe die Befehle aus
Rich (BBCode):
rm -rf /volume1/@optware
rm -rf /usr/lib/ipkg
mache ein reboot
dann
Rich (BBCode):
umount /opt
rmdir /opt

ln -s /volume1/@optware /opt
Instaliere nochmal neu..
gehe in das Verzeichnis wo sich dein Bootstraper befindet.
mit
Rich (BBCode):
sh bootstrap.sh
das Ergbniss sollte dann so aussehen

Rich (BBCode):
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...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.
 
Zuletzt bearbeitet:

Ha34Meiner

Benutzer
Mitglied seit
28. Dez 2012
Beiträge
568
Punkte für Reaktionen
11
Punkte
44
Verzeiht unsere Fragen, aber da wir mit Linux noch nie gearbeitet haben kommen wir hier nicht weiter.

Wir haben folgende Pakete installiert:
nit_3rdparty_1.5.spk?
spk adm_0_99c.spk?

Nun wollten wir ipkg installieren und gingen nach der Anleitung aus dem Wiki vor:

Zentralspeicher> cd /volume1/public

Zentralspeicher> sh syno-x07-bootstrap_1.2-7_arm.xsh
Optware Bootstrap for syno-x07.
Extracting archive... please wait
bootstrap/
bootstrap/bootstrap.sh
bootstrap/ipkg-opt.ipk
bootstrap/ipkg.sh
bootstrap/optware-bootstrap.ipk
bootstrap/wget.ipk
1226+1 records in
1226+1 records out
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...
bootstrap.sh: line 45: /opt/bin/ipkg: not found


BusyBox v1.16.1 (2012-12-11 12:47:34 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Warum kommen immer nur bei uns diese Fehlermeldung?
 

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
14.042
Punkte für Reaktionen
299
Punkte
393
Hallo,
habt Ihr denn auch Punkt 5., das auskommentieren in der /root/.profile gemacht und die Session neu gestartet? Welche DS habt ihr?

Gruß Götz
 

Ha34Meiner

Benutzer
Mitglied seit
28. Dez 2012
Beiträge
568
Punkte für Reaktionen
11
Punkte
44
DS 112+ mit DSM 4.1
Session neu gestartet?
Mehrmals :)

Da könnte der Fehler sein:
habt Ihr denn auch Punkt 5., das auskommentieren in der /root/.profile gemacht

Dies wollten wir, aber nachdem wir in putty: vi /root/.profile eingeben hatten, kam nur das "~" in vielen Zeilen, aber keine "Schrift"... Was haben wir nun wieder falsch gemacht ... :cool:

EDIT_ Dies wollen wir installieren: Für ARM (armv5tejl): //ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/syno-x07-bootstrap_1.2-7_arm.xsh

22-01-2013.jpg
 
Zuletzt bearbeitet:

Doppelter Wolf

Benutzer
Mitglied seit
11. Sep 2008
Beiträge
171
Punkte für Reaktionen
0
Punkte
16
Versuch doch mal das:
Erstellen einer default config für ssl

Rich (BBCode):
cd /usr/syno
mkdir ssl
cd ssl
wget http://123adm.free.fr/home/pages/documents/syno-cert_fichiers/openssl.cnf

dann nochmal neu versuchen. Warum der nach dem SSL frägt weiss ich so spontan auch nicht

und was sagt Die Syno
auf
Rich (BBCode):
echo $PATH

Wenn nach der Installation ein not found erscheint stimmen irgend wo die Pfadangaben nicht.
 

goetz

Super-Moderator
Teammitglied
Sehr erfahren
Mitglied seit
18. Mrz 2009
Beiträge
14.042
Punkte für Reaktionen
299
Punkte
393
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 

 
 
  AdBlocker gefunden!

Du bist nicht hier, um Support für Adblocker zu erhalten. Dein Adblocker funktioniert bereits ;-)

Klar machen Adblocker einen guten Job, aber sie blockieren auch nützliche Funktionen.

Das Forum wird mit hohem technischen, zeitlichen und finanziellen Aufwand kostenfrei zur Verfügung gestellt. Wir zeigen keine offensive Werbung und bemühen uns um eine dezente Integration.

Bitte unterstütze dieses Forum, in dem du deinen Adblocker für diese Seite deaktivierst.

Du kannst uns auch über unseren Kaffeautomat einen Kaffe ausgeben oder ein PUR Abo abschließen und das Forum so werbefrei nutzen.

Vielen Dank für Deine Unterstützung!