Skip to contentSkip to conversation

Usage of apt-get package in yocto

DISCUSSION Raghavendra Kakarla 3 participants 4 messages May 20, 2015 – May 21, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

I have some requirement with apt-get in yocto genearted rootfs.

I built the yocto source code with enabling the apt package.

But after booting the image on my machine and run the "apt-get" command for installing some package it gives the following error.

Could not open the file /var/lib/dpkg/status open(2: no such a file or directory).

The package lists or status files could not be parsed or opened.

Could you please help me for resolving this issue.

Regards,

Raghavendra K.

#1 lore raw

Hi Raghavendra,

Quoted 9 lines · Raghavendra Kakarla

Hi,

I have some requirement with apt-get in yocto genearted rootfs.

I built the yocto source code with enabling the apt package.

Quoted 6 lines

But after booting the image on my machine and run the "apt-get" command for installing some package it gives the following error.

Could not open the file /var/lib/dpkg/status open(2: no such a file or directory).

The package lists or status files could not be parsed or opened.

This error is because you need to add package-management to EXTRA_IMAGE_FEATURES in local.conf,

PACKAGE_CLASSES ?= "package_deb" EXTRA_IMAGE_FEATURES = "debug-tweaks package-management"

Regards,
alimon

Quoted 11 lines

Could you please help me for resolving this issue.

Regards,

Raghavendra K.

#2 lore raw

Hi Alimon,

After adding the lines what you mentioned in the local.conf file and tried to get the git packages with "apt-get " it also give the error but this time it is different. It gives the error "unable to locate package git".

I have a doubt here, when I run the apt-get in yocto distribution where it can get the given package.

Could you please clarify it.

Thnaks in advance.

Regards,

Raghavendra K.

________________________________
From: Aníbal Limón <[email protected]>
Sent: Wednesday, May 20, 2015 9:08 PM
To: Raghavendra Kakarla; [email protected]
Subject: Re: [yocto] Usage of apt-get package in yocto

Hi Raghavendra,

On 20/05/15 04:01, Raghavendra Kakarla wrote:

Hi,

I have some requirement with apt-get in yocto genearted rootfs.

I built the yocto source code with enabling the apt package.

But after booting the image on my machine and run the "apt-get" command for installing some package it gives the following error.

Could not open the file /var/lib/dpkg/status open(2: no such a file or directory).

The package lists or status files could not be parsed or opened.

This error is because you need to add package-management to EXTRA_IMAGE_FEATURES in local.conf,

PACKAGE_CLASSES ?= "package_deb" EXTRA_IMAGE_FEATURES = "debug-tweaks package-management"

Regards,
alimon

Could you please help me for resolving this issue.

Regards,

Raghavendra K.

#3 lore raw
Quoted 3 lines · Raghavendra Kakarla

After adding the lines what you mentioned in the local.conf file and tried to get the git packages with "apt-get " it also give the error but this time it is different. It gives the error "unable to locate package git".

Did you actually configure your sources.list, and run apt-get update?

Ross