Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install on LEDE #22

Closed
FilipBB opened this issue Jan 4, 2017 · 5 comments
Closed

Can't install on LEDE #22

FilipBB opened this issue Jan 4, 2017 · 5 comments

Comments

@FilipBB
Copy link

FilipBB commented Jan 4, 2017

The ipk won't install on LEDE:

[root@lede:~] # cat /etc/openwrt_release
DISTRIB_ID='LEDE'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='r2709-b7677f0'
DISTRIB_CODENAME='reboot'
DISTRIB_TARGET='brcm47xx/mips74k'
DISTRIB_DESCRIPTION='LEDE Reboot SNAPSHOT r2709-b7677f0'
DISTRIB_TAINTS='no-all'

[root@lede:~] # opkg install ./wrtbwmon_0.35_all.ipk
Collected errors:

  • pkg_init_from_file: Malformed package file ./wrtbwmon_0.35_all.ipk.
@pyrovski
Copy link
Owner

pyrovski commented Jan 7, 2017

How about this version?

@FilipBB
Copy link
Author

FilipBB commented Jan 7, 2017

Nope, it didn't work, it's giving the same error, but I managed to figure out the problem: the control file must be compressed into control.tar.gz from it's own directory, and the final ipk file must be as well so that you have them compressed like so:

[root@lede:wrt] # bsdtar -tf ./wrtbwmon_0.35_all.ipk
./
./control.tar.gz
./data.tar.gz
./debian-binary
[root@lede:wrt] # bsdtar -tf tmp/control.tar.gz
./
./control
[root@lede:wrt] #

Notice the directory references "./"

@FilipBB
Copy link
Author

FilipBB commented Jan 7, 2017

Actually the control.tar.gz file was already zipped that way, only the final ipk wasn't.

@pyrovski
Copy link
Owner

pyrovski commented Jan 11, 2017

Could you try the package at that link again? I switched to packaging with tar instead of ar, and now I get this output:

$ bsdtar -tf wrtbwmon_0.35_all.ipk

./debian-binary
./data.tar.gz
./control.tar.gz

@FilipBB
Copy link
Author

FilipBB commented Jan 14, 2017

Yes, it is working now, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants