ipkg update fails

Questions about IPKG can go here!
Forum rules
Please note the disclaimer before modifying your Synology Product.

ipkg update fails

Postby Noah » Sun Jul 29, 2012 5:33 pm

G'day,

As I am still a Linux-noob I'm lost. I want to install fdupes, so I enter:

Code: Select all
ipkg install fdupes


Although the file is only 11k, it takes a few minutes. After which it gives me:
ipkg install fdupes
Installing fdupes (1.40-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optwa ... unstable/f dupes_1.40-1_i686.ipk
Nothing to be done
An error ocurred, return value: 22.
Collected errors:
ipkg_download: ERROR: Command failed with return value 4: `wget --passive-ftp -q -P /opt/ipkg-8VGjWA http://ipkg.nslu2-linux.org/feeds/optwa ... _i686.ipk'
Failed to download fdupes. Perhaps you need to run 'ipkg update'?


Fine, so I do:

Code: Select all
ipkg update


Which finally after some time of downloading gives me:

ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optwa ... ackages.gz
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 4: `wget --passive-ftp -q -P /opt/ipkg-svUy9X http://ipkg.nslu2-linux.org/feeds/optwa ... ckages.gz'


I've googled and googled and googled, but I can't seem to find a solution. Does anybody happen to have a clue?

Thank you in advance for your answer,

Bye,
2x 1812+ + 16 disks; damn, they are sexy :D --- My nick? The name of my youngest dog, after 30 years of dogs, by far the sweetest baby we've ever had. A Molosser, he is as brave as ever, but at the same time, all he wants to do is kiss mum and dad the whole day, trying to persuade us to feed him cookies. Tons of cookies :-)
Noah
Experienced
Experienced
 
Posts: 110
Joined: Sat Apr 21, 2012 3:20 pm
Location: Belgium & Netherlands - I travel a lot :-)

Re: ipkg update fails

Postby Noah » Sun Jul 29, 2012 6:20 pm

I got the answer myself :mrgreen:

It turned out my router address was changed (true, I replaced the router and it had a different address) and the Syno couldn't find it. Changed it in control panel/network/default gateway and everything works again.
2x 1812+ + 16 disks; damn, they are sexy :D --- My nick? The name of my youngest dog, after 30 years of dogs, by far the sweetest baby we've ever had. A Molosser, he is as brave as ever, but at the same time, all he wants to do is kiss mum and dad the whole day, trying to persuade us to feed him cookies. Tons of cookies :-)
Noah
Experienced
Experienced
 
Posts: 110
Joined: Sat Apr 21, 2012 3:20 pm
Location: Belgium & Netherlands - I travel a lot :-)

Re: ipkg update fails

Postby some-Ds409plus-user » Mon Aug 06, 2012 9:29 pm

I recently installed ipkg on a 409+ and after I installed the boostrap I got the following failure
syno> ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/optwa ... le/Package s.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-MLnI1c http://ipkg.nsl u2-linux.org/feeds/optware/syno-e500/cross/unstable/Packages.gz'

its because the native wget that comes with the synology don't support passive mode
so you need to make the system to temporary use the wget that comes with the bootstrap, for this go to /root/.profiles and move /opt/bin:/opt/sbin in front of the PATH

TEMP SOLUTION
AS I DONT RECOMAND TO USE ANOTHER WGET I RECOMAND THE TEMPORARY SOLUTION
as root in the shell
Code: Select all
PATH=/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin:/usr/syno/mailstation/bin:/usr/syno/mailstation/sbin
export PATH
now ipkg update should work until your reboot

THE FINAL SOLUTION
Code: Select all
vi /root/.profiles
now press "I" on the keyboard to put vi in INSERT MODE
then modify the line containing PATH
PATH=/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin:/usr/syno/mailstation/bin:/usr/syno/mailstation/sbin
now press [Esc] key and then insert the following keys one by one
:wq!
now vi is gonna save(write) and quit and you land in the shell again
Modifying the PATH in the profile is only effective next boot
but we like to ipkg update also immediately so we enter in the shell the following
Code: Select all
PATH=/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin:/usr/syno/mailstation/bin:/usr/syno/mailstation/sbin
export PATH
this tells the system to use the new PATH
now the system uses the binaries from the /opt folder preferential.
and ipkg update should not fail any more

THEORETICALLY THERE IS ANOTHER DIRTY TRICK
to replace the synology wget in the root folder. But i sincerely do not recommend because this can produce a unknown status

have fun
christian
User avatar
some-Ds409plus-user
I'm New!
I'm New!
 
Posts: 7
Joined: Sun Dec 06, 2009 10:03 am


Return to IPKG

Who is online

Users browsing this forum: No registered users and 2 guests