Presumably the file is within the source of apt (
link). I checked my Ubuntu 16.04 install, and it has only the following:
Code:
/usr/lib/x86_64-linux-gnu/libapt-pkg.so.5.0
. Perhaps if someone has an older Debian based system running that you know then you could find the file. The other thing you can do is download the deb file (
http://ftp.us.debian.org/debian/pool....8.3_amd64.deb), open it up with file-roller (or ark or whatever -- just download the package and left-click on it to open a menu to open it with something like file roller), and extract the file that way.
I just did this, and it's not actually a file. It's a link to "libapt-pkg.so.4.12.0" (note the extra zero at the end). So, see if you have that file on you LFS system, and then create a link named "libapt-pkg.so.4.12" to it. I believe the location is /usr/lib/x86_64-linux-gnu/ for both the file and the link.
Another thought: If you can't get apt/dpkg working, there's some other simpler package managers that the LFS folks give hints for:
paco or
trip.
Someday I may try to build an LFS system. Seems like it might be both fun and educational.
ETA: Oh, sorry, just checked out the link in post #3 and saw that they had already suggested the link. Well, I have no other ideas, unfortunately.