"Script returned status 255"?

1,361 views
Skip to first unread message

Fred

unread,
Apr 26, 2011, 3:18:16 AM4/26/11
to opkg-devel
Hello

Currently, I use opkg-cl to download and install packages from an ipkg
repository, ie. packages were built with ipkg instead of opkg.

Last night, I tried to install ntp, and although it seems to have
installed OK and ntp runs OK, I got this error:

===========
> ./opkg-cl install ntp
Installing ntp (4.1.1-1) to root...
Downloading http://repo.acme.com/ipkg/./ntp_4.1.1-1_bfin.ipk.
Configuring ntp.
Collected errors:
* pkg_run_script: package "ntp" postinst script returned status 255.
* opkg_configure: ntp.postinst returned 255.
===========

I didn't find information on what error 255 mean.

Thank you.

Camille Moncelier

unread,
Apr 26, 2011, 3:24:43 AM4/26/11
to opkg-...@googlegroups.com
On Tue, Apr 26, 2011 at 9:18 AM, Fred <frdt...@gmail.com> wrote:
Hello

Currently, I use opkg-cl to download and install packages from an ipkg
repository, ie. packages were built with ipkg instead of opkg.

Last night, I tried to install ntp, and although it seems to have
installed OK and ntp runs OK, I got this error:

===========
 * opkg_configure: ntp.postinst returned 255.
===========

I didn't find information on what error 255 mean.

You may want to check the value of the PATH environment variable. It is likely the cause of your problem. 
I ran into the same error by booting with init=/bin/sh. Just source /etc/profile and it's done.
 

Thank you.

--
You received this message because you are subscribed to the Google Groups "opkg-devel" group.
To post to this group, send email to opkg-...@googlegroups.com.
To unsubscribe from this group, send email to opkg-devel+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opkg-devel?hl=en.




--
Camille Moncelier
http://devlife.org/

If Java had true garbage collection, most programs would
delete themselves upon execution.

Fred

unread,
Apr 28, 2011, 10:35:40 AM4/28/11
to opkg-devel
On 26 avr, 09:24, Camille Moncelier <moncel...@devlife.org> wrote:
> You may want to check the value of the PATH environment variable. It is likely the cause of your problem.

Thanks for the tip. Turns out PATH is empty. What does opkg-cl expect
that would make that error disappear?

Camille Moncelier

unread,
Apr 28, 2011, 10:38:04 AM4/28/11
to opkg-...@googlegroups.com
Whatever it may needs, at least:

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

Fred

unread,
May 1, 2011, 7:09:26 AM5/1/11
to opkg-devel
On 28 avr, 16:38, Camille Moncelier <moncel...@devlife.org> wrote:
> Whatever it may needs, at least:
>
> export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Thank you.
Reply all
Reply to author
Forward
0 new messages