Hello,

I happen to use dpkg on my LFS system to keep track of things.  I think
I might be able help a bit.

On Mon, Dec 03, 2012 at 03:30:02PM +0530, James Pinto wrote:
>    Im following the hint to install dpkg and apt on lfs
> 
>    [1]http://www.linuxfromscratch.org/hints/downloads/files/dpkg.txt
> 
>    I installed the latest version of dpkg sucessfully. But Im having problems
>    installing apt
> 
>     dpkg -i apt_0.9.7.6_i386.deb
>    (Reading database ... 1021 files and directories currently installed.)
>    Preparing to replace apt 0.9.7.6 (using apt_0.9.7.6_i386.deb) ...
>    Unpacking replacement apt ...
<snip>
>     apt depends on libc6 (>= 2.4); however:
>      Package libc6 is not installed.
<snip>

libc6 (known as glibc) is installed in Chapter 6 of LFS.  However, dpkg 
does not know about it and believes that is isn't there.  There are two 
solutions as I see it: 1) create a dummy package and fool dpkg or 2) 
create a proper debian style package for everything according to the 
(debian) manual.

I strongly recommend option 2 if you plan to use the premade debian
packages and to follow their naming scheme.

If I do:
dpkg -i apt_0.8.10.3+squeeze1_amd64.deb 

dpkg tells me I am missing libraries, etc.  However, if I unpack the
archive and run ldd apt-get, I discover that everything is just fine:
ldd apt-get
        linux-vdso.so.1 (0x00007fffd7dec000)
        libapt-pkg.so.4.10 => not found --> this one is provided by the apt 
package
        libutil.so.1 => /lib/libutil.so.1 (0x00007f54638df000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f54635d2000)
        libm.so.6 => /lib/libm.so.6 (0x00007f54632d2000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f54630bc000)
        libc.so.6 => /lib/libc.so.6 (0x00007f5462cf8000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f5463ae2000)

best of luck
ae
--
http://elian001.wordpress.com
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to