Is it possible to use apt-get package manager in Yocto?

Is it possible to use apt-get package manager in Yocto?

Hi all,

We've successfully installed the Yocto and configured the internet connection as well. The Yocto image is built using Ubuntu 12 (as base-distribution), and there's apt-base installed. I've configured the apt-get configuration file and successfully run the apt-get update. Subsequently, I run apt-get install -f, so that no dependencies missing. But, it's not working, I got this error:

root@valleyisland-64:~# apt-get install -f
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  apt-utils coreutils debconf debconf-i18n dpkg dropbear libacl1
  libapt-inst1.4 libapt-pkg4.12 libattr1 libbz2-1.0 libc6 libdb5.1 libgcc1
  liblocale-gettext-perl liblzma5 libselinux1 libstdc++6
  libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl perl-base
  tar tzdata xz-utils zlib1g
Suggested packages:
  debconf-doc debconf-utils whiptail dialog gnome-utils
  libterm-readline-gnu-perl libgtk2-perl libnet-ldap-perl libqtgui4-perl
  libqtcore4-perl apt openssh-client udev runit xauth glibc-doc locales bzip2
  ncompress xz-lzma
The following NEW packages will be installed:
  apt-utils coreutils debconf debconf-i18n dpkg dropbear libacl1
  libapt-inst1.4 libapt-pkg4.12 libattr1 libbz2-1.0 libc6 libdb5.1 libgcc1
  liblocale-gettext-perl liblzma5 libselinux1 libstdc++6
  libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl perl-base
  tar tzdata xz-utils zlib1g
0 upgraded, 26 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/14.2 MB of archives.
After this operation, 41.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: warning: downgrading libc6 from 2.17-r3 to 2.15-0ubuntu10.5
(Reading database ... 6276 files and directories currently installed.)
Preparing to replace libc6 2.17-r3 (using .../libc6_2.15-0ubuntu10.5_amd64.deb) ...
readlink: invalid option -- 'e'
BusyBox v1.20.2 (2014-05-03 05:11:18 CST) multi-call binary.

Usage: readlink [-fnv] FILE

dpkg: error processing /var/cache/apt/archives/libc6_2.15-0ubuntu10.5_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
dpkg: regarding .../libgcc1_1%3a4.6.3-1ubuntu5_amd64.deb containing libgcc1:amd64, pre-dependency problem:
 libgcc1 pre-depends on multiarch-support
  multiarch-support is unpacked, but has never been configured.

dpkg: error processing /var/cache/apt/archives/libgcc1_1%3a4.6.3-1ubuntu5_amd64.deb (--unpack):
 pre-dependency problem - not installing libgcc1:amd64
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.15-0ubuntu10.5_amd64.deb
 /var/cache/apt/archives/libgcc1_1%3a4.6.3-1ubuntu5_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

We need some required libraries to run the application, and using package manager is the common one. Is there any way to use one of .deb package manager in Yocto Project?

Any suggestion would be appreciated.

Really thanks in advance.

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Why you want to use apt-get while you can build everything from source?  I don't kown whether there is a package repository provide for yocto, but the odds is small.

Quote:

Pluto wrote:

Why you want to use apt-get while you can build everything from source?  I don't kown whether there is a package repository provide for yocto, but the odds is small.

I suppose if the embedded linux has a apt-get, we can get the libraries more easily just by a simple 'sudo apt-get install [things you want to have]' command, rather than modifing the bblayers.conf, and fearing for possible build errors after waiting for hours.

Hi All,

Quote:

Edward H. wrote:

Quote:

Pluto wrote:

Why you want to use apt-get while you can build everything from source?  I don't kown whether there is a package repository provide for yocto, but the odds is small.

 

I suppose if the embedded linux has a apt-get, we can get the libraries more easily just by a simple 'sudo apt-get install [things you want to have]' command, rather than modifing the bblayers.conf, and fearing for possible build errors after waiting for hours.

Yes I do agree with Edward, due to the time constraint only :). As I know, Yocto has several options such as: Smart Package Manager and OPKG, but we need to configure our own repo. Thus, as Pluto said as well, now we're starting to build required libraries from the source.

 

If you have further question about this discussion, please post it on mailing list of yoctoproject.org.  

Leave a Comment

Please sign in to add a comment. Not a member? Join today