<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11373</bug_id>
          
          <creation_ts>2017-04-18 11:21:47 +0000</creation_ts>
          <short_desc>OPKG package management issue</short_desc>
          <delta_ts>2017-04-19 21:46:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Abhishek">abhishekh</reporter>
          <assigned_to name="Alejandro del Castillo">alejandro.delcastillo</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72585</commentid>
    <comment_count>0</comment_count>
    <who name="Abhishek">abhishekh</who>
    <bug_when>2017-04-18 11:21:47 +0000</bug_when>
    <thetext>Hi,

I am trying to install .ipk with opkg in yocto.
 
 If i run below command
 
    opkg install *.ipk
 
 I am getting the below error:-
 
 Collected errors:
 * opkg_conf_load: Could not create lock file /var/lib/opkg/lock: No such file or directory.

I did some research and followed this link

http://wiki.hioproject.org/index.php?title=Yocto:_Opkg_Package_Management_System_Set_Up

I came to know that one should add in the conf/local.conf

    EXTRA_IMAGE_FEATURES = &quot;package-management&quot;

    IMAGE_INSTALL_append = &quot; opkg &quot;

    PACKAGE_CLASSES = &quot;package_ipk&quot;


Even though i am getting the same error.

&quot;/var/lib/opkg/&quot;  is existed in my image build directory, but after installing the image to the target device the &quot;/var/lib/opkg/&quot; is not appearing.

I am guessing that, the disappearance of the /var/lib/opkg folder may be causing the opkg error.

Can anybody please help me on this problem.

Thank you,
Abhishek</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72603</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2017-04-18 16:20:52 +0000</bug_when>
    <thetext>This doesn&apos;t seem to be a problem with opkg, but a problem with the image lacking /var/lib/opkg (without that folder, opkg will correctly error out).

Closing as not a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72636</commentid>
    <comment_count>2</comment_count>
    <who name="Abhishek">abhishekh</who>
    <bug_when>2017-04-19 04:41:47 +0000</bug_when>
    <thetext>Can you please help me why the /var/lib/opkg folder is not showing in device?
But i checked, it exists in my build directory. 
Thank you</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72686</commentid>
    <comment_count>3</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2017-04-19 21:46:19 +0000</bug_when>
    <thetext>as I mention, that is not an opkg issue, but an issue with the build tool you are using (yocto). I believe you already opened a thread on the yocto mailing list. That&apos;s the correct venue to ask for help.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>