DarkKnight Posté(e) le 25 mars 2012 Posté(e) le 25 mars 2012 (modifié) Hello, Bon, je mets ce topic ici. S'il est pas à la bonne place, désolé! Voilà, J'ai des soucis avec ipkg. Je voulais le réinstaller (je ne sais plus pourquoi...mal m'en a pris). J'ai suivi les étapes décrites ici : http://blog.bangbits...logy-ds211.html A savoir que j'ai un 411 et le bootstrap est le même que pour le ds211 (d'après http://forum.synolog...strap,_ipkg_etc) Donc, j'ai supprimé d'abord le /volume1/@optware et l'autre (je me souviens plus, mais ce sont ceux qui sont indiqués si on relance le xsh) J'ai rebooté, et relancé l'installation. Après l'install, j'ai de nouveau rebooté Je fais les tests de fonctionnement, mais j'ai des erreurs : TRINITY> ipkg -ash: ipkg: not found Il est pourtant installé au bon endroit puisque : TRINITY> /opt/bin/ipkg update Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz An error ocurred, return value: 1. Collected errors: ipkg_download: ERROR: Command failed with return value 41: `wget --passive-ftp -q -P /opt/ipkg-oVTLET http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz' Mais il semble mal installé, visiblement Pour le problème de PATH, j'avais corrigé le /etc/profile en rajoutant ":/opt/bin:/opt/sbin" à la fin de la variable PATH. L'installation l'avait mis en fin de script, sans les " " J'avais même rebooté après la modif, mais cela ne change rien. J'ai tout dit, je pense. Sinon, config : DS411 DSM 4.0 - 2198 Merci pour votre aide Modifié le 25 mars 2012 par DarkKnight 0 Citer
CoolRaoul Posté(e) le 25 mars 2012 Posté(e) le 25 mars 2012 TRINITY> ipkg -ash: ipkg: not found Pour le problème de PATH, j'avais corrigé le /etc/profile en rajoutant ":/opt/bin:/opt/sbin" à la fin de la variable PATH. L'installation l'avait mis en fin de script, sans les " " J'avais même rebooté après la modif, mais cela ne change rien. Regarde si le PATH ne serait pas redéfini "from scratch" dans le ".profile" du compte ("/root/.profile") 0 Citer
DarkKnight Posté(e) le 25 mars 2012 Auteur Posté(e) le 25 mars 2012 Regarde si le PATH ne serait pas redéfini "from scratch" dans le ".profile" du compte ("/root/.profile") Ok, c'est bien ça ! merci Par contre pour le comportement de Ipkg, pas d'idée ? 0 Citer
CoolRaoul Posté(e) le 25 mars 2012 Posté(e) le 25 mars 2012 Par contre pour le comportement de Ipkg, pas d'idée ? Peux-tu nous dire ce qui se passe en exécutant la commande wget a la main en mode verbeux, comme ça: wget --verbose --passive-ftp -P /volume1/@tmp/ http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz[/CODE] 0 Citer
DarkKnight Posté(e) le 25 mars 2012 Auteur Posté(e) le 25 mars 2012 Peux-tu nous dire ce qui se passe en exécutant la commande wget a la main en mode verbeux, comme ça: wget --verbose --passive-ftp -P /volume1/@tmp/ http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz ça me semble bon : TRINITY> wget --verbose --passive-ftp -P /volume1/@tmp/ http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz --15:03:56-- http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz => `/volume1/@tmp/Packages.gz' Resolving ipkg.nslu2-linux.org... 140.211.169.161 Connecting to ipkg.nslu2-linux.org|140.211.169.161|:... connected. HTTP request sent, awaiting response... 200 OK Length: 128,583 (126K) [text/plain] 100%[=================================================================================================================================================>] 128,583 143.12K/s 15:03:58 (142.98 KB/s) - `Packages.gz' saved [128583/128583][/code] 0 Citer
CoolRaoul Posté(e) le 25 mars 2012 Posté(e) le 25 mars 2012 ça me semble bon : TRINITY> wget --verbose --passive-ftp -P /volume1/@tmp/ http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz --15:03:56-- http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz => `/volume1/@tmp/Packages.gz' Resolving ipkg.nslu2-linux.org... 140.211.169.161 Connecting to ipkg.nslu2-linux.org|140.211.169.161|:... connected. HTTP request sent, awaiting response... 200 OK Length: 128,583 (126K) [text/plain] 100%[=================================================================================================================================================>] 128,583 143.12K/s 15:03:58 (142.98 KB/s) - `Packages.gz' saved [128583/128583] Re-essaie alors la commande ipkg qui plantait tout a l'heure, peut-être qu'a cause du mauvais path, c'est le mauvais wget qui était exécuté. Sinon, pour t'aider me faudrait une trace, mais comme la commande "strace" s'installe avec ipkg .... http://youtu.be/QDZoAxm9cjQ 0 Citer
DarkKnight Posté(e) le 25 mars 2012 Auteur Posté(e) le 25 mars 2012 Re-essaie alors la commande ipkg qui plantait tout a l'heure, peut-être qu'a cause du mauvais path, c'est le mauvais wget qui était exécuté. Sinon, pour t'aider me faudrait une trace, mais comme la commande "strace" s'installe avec ipkg .... Alors, état des lieux : après reconnexion en root pour prendre les modifications du .profile, voici les commandes tapées : TRINITY> echo $PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin:/opt/bin:/opt/sbin TRINITY> ipkg ipkg: ipkg must have one sub-command argument ipkg version 0.99.163 usage: ipkg [options...] sub-command [arguments...] [...aide ipkg... ] TRINITY> ipkg update Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz An error ocurred, return value: 1. Collected errors: ipkg_download: ERROR: Command failed with return value 41: `wget --passive-ftp -q -P /opt/ipkg-1jtsde http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz' TRINITY> wget --passive-ftp -q -P /opt/ipkg-1jtsde http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz TRINITY> cd /opt TRINITY> ll drwxr-xr-x 9 root root 4096 Mar 25 17:20 . drwxr-xr-x 24 root root 4096 Mar 25 14:18 .. drwxr-xr-x 2 root root 4096 Mar 25 10:44 bin drwxr-xr-x 4 root root 4096 Mar 25 10:44 etc drwxr-xr-x 3 root root 4096 Mar 25 10:44 lib drwxr-xr-x 3 root root 4096 Mar 25 10:44 man drwxr-xr-x 3 root root 4096 Mar 25 10:44 share drwxr-xr-t 2 root root 4096 May 15 2010 tmp drwxr-xr-x 3 root root 4096 Mar 25 10:44 var TRINITY> ipkg update Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz ipkg: /opt/ipkg-6lzbDu/Packages.gz: No such file or directory file_copy: ERROR: failed to copy /opt/ipkg-6lzbDu/Packages.gz to /tmp/ipkg.4mG4gP/cross.gz An error ocurred, return value: 1. TRINITY> whoami root TRINITY> ipkg install strace Nothing to be done An error ocurred, return value: 4. Collected errors: Cannot find package strace. Check the spelling or perhaps run 'ipkg update' TRINITY> ipkg list wget - 1.12-2 - Successfully terminated. TRINITY> Commande wget en "no-quiet" : TRINITY> wget --passive-ftp -P /opt/ipkg-1jtsde http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz --17:33:05-- http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz => `/opt/ipkg-1jtsde/Packages.gz' Resolving ipkg.nslu2-linux.org... 140.211.169.161 Connecting to ipkg.nslu2-linux.org|140.211.169.161|:... connected. HTTP request sent, awaiting response... 200 OK Length: 128,583 (126K) [text/plain] Packages.gz has sprung into existence. Retrying. 0 Citer
CoolRaoul Posté(e) le 25 mars 2012 Posté(e) le 25 mars 2012 (modifié) Essaie ceci: ipkg -V 4 -verbose_wget update et donne le résultat Modifié le 25 mars 2012 par CoolRaoul 0 Citer
DarkKnight Posté(e) le 25 mars 2012 Auteur Posté(e) le 25 mars 2012 Essaie ceci: ipkg -V 4 -verbose_wget update et donne le résultat ça a l'air de donner le même résultat que ce que j'ai fait avec la commande wget TRINITY> ipkg -V 4 -verbose_wget update Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz --18:04:42-- http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz => `/opt/ipkg-iE4mfA/Packages.gz' Resolving ipkg.nslu2-linux.org... 140.211.169.161 Connecting to ipkg.nslu2-linux.org|140.211.169.161|:... connected. HTTP request sent, awaiting response... 200 OK Length: 128,583 (126K) [text/plain] Packages.gz has sprung into existence. Retrying. [...] (j'ai squizzé les 19 autres tentatives) --18:06:39-- http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz (try:20) => `/opt/ipkg-ubEtz9/Packages.gz' Connecting to ipkg.nslu2-linux.org|140.211.169.161|:... connected. HTTP request sent, awaiting response... 200 OK Length: 128,583 (126K) [text/plain] Packages.gz has sprung into existence. Giving up. An error ocurred, return value: 1. Collected errors: ipkg_download: ERROR: Command failed with return value 41: `wget --passive-ftp -P /opt/ipkg-ubEtz9 http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz' hash_table[pkg-hash] n_buckets=0 n_elements=3 max_conflicts=0 n_conflicts=0 hash_table[file-hash] n_buckets=0 n_elements=0 max_conflicts=0 n_conflicts=0 hash_table[obs-file-hash] n_buckets=0 n_elements=0 max_conflicts=0 n_conflicts=0 [/code] 0 Citer
CoolRaoul Posté(e) le 25 mars 2012 Posté(e) le 25 mars 2012 Puisque ca marche avec wget -P /volume1/@tmp/ mais pas avec wget -P /opt/ipkg-1jtsde[/code] C'est qu'il y a un lezard dans le montage /opt Vérifie déja que tu as le droit d'écriture ("touch /opt/toto") 0 Citer
DarkKnight Posté(e) le 25 mars 2012 Auteur Posté(e) le 25 mars 2012 Puisque ca marche avec wget -P /volume1/@tmp/ mais pas avec wget -P /opt/ipkg-1jtsde C'est qu'il y a un lezard dans le montage /opt Vérifie déja que tu as le droit d'écriture ("touch /opt/toto") Les droits semblent bons TRINITY> touch /opt/toto TRINITY> ll toto -rw-r--r-- 1 root root 0 Mar 25 19:56 toto 0 Citer
CoolRaoul Posté(e) le 25 mars 2012 Posté(e) le 25 mars 2012 vérifie si wget est parvenu a créer le répertoire temporaire en nous donnant le résultat de avec la commande suivante: ls -lrtd /opt/ipkg* essaie aussi de créer un répertoire mkdir /opt/ipkg-toto[/code] 0 Citer
DarkKnight Posté(e) le 25 mars 2012 Auteur Posté(e) le 25 mars 2012 vérifie si wget est parvenu a créer le répertoire temporaire en nous donnant le résultat de avec la commande suivante: ls -lrtd /opt/ipkg* essaie aussi de créer un répertoire mkdir /opt/ipkg-toto[/code] un répertoire n'est apparu qu'après ma commande manuelle : [code]TRINITY> ls -lrtd /opt/ipkg* ls: /opt/ipkg*: No such file or directory TRINITY> mkdir /opt/ipkg-toto TRINITY> ls -lrtd /opt/ipkg* drwxr-xr-x 2 root root 4096 Mar 25 20:08 /opt/ipkg-toto[/code] 0 Citer
CoolRaoul Posté(e) le 25 mars 2012 Posté(e) le 25 mars 2012 (modifié) Ca va te sembler un peu désespéré mais ja ta place j’essaierai de repartir à zero du bootstrap Commencer par: umount /opt mv /opt /opt.bak # important!!! et lance le bootstrap en re-téléchargeant le bon xsh : http://tools.forret....y/bootstrap.php Modifié le 25 mars 2012 par CoolRaoul 0 Citer
bud77 Posté(e) le 26 mars 2012 Posté(e) le 26 mars 2012 A tout hasard, tu es bien connecté en root ? 0 Citer
CoolRaoul Posté(e) le 26 mars 2012 Posté(e) le 26 mars 2012 A tout hasard, tu es bien connecté en root ? Si j'en crois le résultat de ses commandes, il était bien root quand il a exécuté le mkdir. TRINITY> ls -lrtd /opt/ipkg* drwxr-xr-x 2 root root 4096 Mar 25 20:08 /opt/ipkg-toto 0 Citer
Jess Posté(e) le 30 mars 2012 Posté(e) le 30 mars 2012 Génial djikstra, c'est parfait !!!!! Merci 0 Citer
DarkKnight Posté(e) le 2 avril 2012 Auteur Posté(e) le 2 avril 2012 (Désolé, j'étais en congés la semaine dernière, avec juste l'accès à distance sur le Syno. Mais je ne voulais pas tenter les manips au risque de perdre la main. (Surtout que je crois que le telnet ssh ne passerait pas,et je n'ai pas (encore) mis de VPN)) Super djikstra! Il m'a suffit de remettre la variable PATH dans le bon ordre et ensuite la commande "ipkg update" s'est déroulée sans pb. Je suppose que je n'ai pas besoin de continuer plus loin dans tes étapes. Merci bcp à tous les intervenants pour votre aide ! 0 Citer
tibuche Posté(e) le 5 mai 2012 Posté(e) le 5 mai 2012 Merci djikstra, ça marche nickel. Pour ma part j'ai du faire quelques manip' supplémentaires car wget-ssl avait un conflit avec wget : DiskStation> ipkg install wget-ssl_1.12-2_arm.ipk Installing wget-ssl (1.12-2) to root... Nothing to be done An error ocurred, return value: 1. Collected errors: ERROR: The following packages conflict with wget-ssl: wget DiskStation> ipkg remove wget Removing package wget from root... Successfully terminated. Pour installer wget-ssl, j'ai du aussi installer openssl DiskStation> ipkg install openssl_0.9.8v-2_arm.ipk Installing openssl (0.9.8v-2) to root... Configuring openssl Successfully terminated. DiskStation> ipkg install wget-ssl_1.12-2_arm.ipk Installing wget-ssl (1.12-2) to root... Configuring wget-ssl Successfully terminated. Ensuite ipkg fonctionne comme un charme! 0 Citer
Messages recommandés
Rejoindre la conversation
Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.