LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-12-2007, 12:20 PM   #1
Mahonri
Member
 
Registered: May 2007
Location: Austin, Texas, USA
Distribution: Debian Etch
Posts: 34

Rep: Reputation: 15
Help using dpkg to build and install debian packages


Hello All,

I need some help understanding how dpkg works. Specifically, I would like to know how the mechanism for checking debian package dependencies works. I'd like to know what essential files are needed for this.

I've built a few packages and tried to install them. Those with dependencies are failing to install for some reason.

Here is my scenario:

I built a binary libc6-i386.deb package on my Debian host and installed it on another host which has nothing but a bare Linux 2.6.21.1 kernel and a static busybox installed. I used the busybox 'dpkg' command to install the package. Everything went fine and the output of the 'dpkg -l' command is:

Name Version
+++-=============-==============
ii libc6-i386 2.3.6

After this, I built a busybox package to re-install the full busybox implementation on to my target host. This package is dependent on libc6-i386 as can be seen from the 'dpkg --info' command:

dallas@debian:~/packages$ dpkg --info busybox_1.6.0-1_i386.deb
new debian package, version 2.0.
size 233752 bytes: control archive= 619 bytes.
444 bytes, 12 lines control
258 bytes, 4 lines md5sums
Package: busybox
Version: 1.6.0-1
Section: unknown
Priority: extra
Architecture: i386
Depends: libc6-i386 (>= 2.3.5-1)
Installed-Size: 436
Maintainer: Dallas Clement <dallas.clement@specktel.com>
Description: Busybox UNIX command utilities.
BusyBox combines tiny versions of many common UNIX utilities into \
a single small executable. It provides replacements for most of the \
utilities you usually find in GNU fileutils, shellutils, etc.

When I try to install this package, it fails during the installation. This is the error I get:

dpkg: package busybox depends on libc6-i386, which is not installed or flagged to be installed


I cannot understand why I am getting this error, when clearly the libc6-i386 package is installed as you can see from the previous 'dpkg -l' output.

In fact, the contents of the /var/lib/dpkg/status file are as follows:

cat /var/lib/dpkg/status

Package: libc6-i386
Version: 2.3.6
Section: libs
Priority: optional
Architecture: i386
Maintainer: Dallas Clement <dallas.clement@specktel.com>
Description: The GNU C library
The GNU C library is the standard C/C++ library \
needed to support most Linux applications.
Status: install ok installed

----

Clearly, the libc6-i386 package is installed.

Is there anything else that 'dpkg' checks other than this 'status' file to do the dependency check? Is it just a simple package name check, or is there more involved?

Thanks in advance for any help you could provide.
 
Old 07-24-2007, 09:44 AM   #2
emi_ramo
Member
 
Registered: Apr 2007
Location: Barcelona, Spain
Distribution: Debian, KUbuntu
Posts: 213

Rep: Reputation: 36
you can use apt-get instead of directly dpkg...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
new ATI 8.27.10 installer won't install or build packages on FC5 vinbob Fedora 2 08-05-2006 08:36 AM
using dpkg to install packages for wrong architecture linuxmandrake Linux - General 2 09-23-2005 04:22 AM
Unable to install packages from fat32 for -current build MWilson Slackware 10 09-04-2005 11:05 PM
AUTOPACKAGE :Build packages that will install on many different distros ubuntu2 Linux - Software 1 08-05-2005 06:12 AM
How can I install packages after Linux build? ajcrm125 Linux - Software 1 04-01-2004 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:21 PM.

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