LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2016, 04:58 AM   #1
niravkhera
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Rep: Reputation: Disabled
unable to install packages using opkg


Hi All
i m working on openwrt project and for that i m using opkg packages manager to install various packages.

whenever i m trying to install any packages using opkg install package name than its showing follwing error. please help me out in that.


root@user-OptiPlex-7010:~/opkg# opkg install luci-theme-bootstrap_git-16.038.37696-9b5724d-1_all.ipk
Collected errors:
* open_outer: Failed to open package 'luci-theme-bootstrap_git-16.038.37696-9b5724d-1_all.ipk': Unrecognized archive format
* pkg_extract_control_file_to_stream: Failed to extract control.tar.gz from package 'luci-theme-bootstrap_git-16.038.37696-9b5724d-1_all.ipk'.
* pkg_init_from_file: Failed to extract control file from luci-theme-bootstrap_git-16.038.37696-9b5724d-1_all.ipk.
 
Old 02-15-2016, 12:24 PM   #2
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180
Blog Entries: 1

Rep: Reputation: 32
See this post about .ipk archives:

http://stackoverflow.com/questions/1...ting-ipk-files
 
Old 02-15-2016, 11:57 PM   #3
niravkhera
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi sixerjman

Thank you for your reply. i just went through the link and i m trying to untar ipk file using ar x command but its showing the folloiwing error.


ar: netifd_2016-02-01-3610a24b218974bdf2d2f709a8af9e4a990c47bd_ar71xx.ipk: File format not recognized

what should i suppose to do for this ?
 
Old 02-16-2016, 08:06 AM   #4
sixerjman
Member
 
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180
Blog Entries: 1

Rep: Reputation: 32
See:

http://www.linuxquestions.org/questi...618/page2.html

"
Originally Posted by colucix View Post
Regarding the IPK files, they are archived and compressed debian packages meant to be used on embedded systems with limited storage capacity. Usually the archives were created using ar (not tar) so that you can try to list or extract their content using
Code:
ar t file.ipk
ar x file.ipkrespectively. Nowadays ipk packages are managed by opkg.
Actually, although based on deb file format the outer container is not ar (like deb) but a gzipped tar, e.g. inspect the following ipkg-opt_0.99.163-10_arm.ipk.

So to extract the contents you would actually do the following:

Code:
tar xf filename.ipkTo the OP, installing it is another matter and would only be appropriate if you use a system that actually uses .ipk files. What are you actually trying to install, what are you trying to achieve by doing this and what is your distro?
 
Old 02-16-2016, 11:18 PM   #5
niravkhera
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi

i m working om IoT board and for that i m using openwrt. i need to install packages for that and i get to know that to install packages in openwrt we need opkg. i m very new in this technology so i dont know anything. i installed opkg and trying to install packages but its giving following error

root@user-OptiPlex-7010:~/opkg# opkg install luci-theme-bootstrap_git-16.038.37696-9b5724d-1_all.ipk
Collected errors:
* open_outer: Failed to open package 'luci-theme-bootstrap_git-16.038.37696-9b5724d-1_all.ipk': Unrecognized archive format
* pkg_extract_control_file_to_stream: Failed to extract control.tar.gz from package 'luci-theme-bootstrap_git-16.038.37696-9b5724d-1_all.ipk'.
* pkg_init_from_file: Failed to extract control file from luci-theme-bootstrap_git-16.038.37696-9b5724d-1_all.ipk.




after that from link which you suggested i got ipk file untar and i found 3 file inside that which are
./debian-binary
./data.tar.gz
./control.tar.gz

now what i suppose to do to install packages?? currenty i m trying to install any random package so i can get to know that how to install package using opkg.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to install three packages related to KVM in 14.1 funboy Slackware 1 11-16-2013 07:22 AM
rpm packages unable to install sagar666 Linux - Server 7 03-28-2013 06:31 AM
Unable to install new packages using apt-get on Ubuntu 12.04 vikram_cvk Linux - Server 1 06-28-2012 06:07 AM
Unable to install packages with installpkg Sargalus Linux - Software 2 03-07-2010 05:48 PM
Unable to install packages from DVD using YUM Mr. ameya sathe Linux - Enterprise 21 08-23-2008 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration