LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   unable to install apt on LFS (https://www.linuxquestions.org/questions/linux-from-scratch-13/unable-to-install-apt-on-lfs-4175439170/)

phoenixfusion 11-28-2012 12:11 PM

unable to install apt on LFS
 
Hi

I have successfully installed dpkg on my lfs system but cant seem to install apt
I get the below errors

Code:

root [ /sources ]# 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 ...
dpkg: dependency problems prevent configuration of apt:
 apt depends on libapt-pkg4.12 (>= 0.9.7.6); however:
  Package libapt-pkg4.12 is not installed.
 apt depends on libc6 (>= 2.4); however:
  Package libc6 is not installed.
 apt depends on libgcc1 (>= 1:4.1.1); however:
  Package libgcc1 is not installed.
 apt depends on libstdc++6 (>= 4.6); however:
  Package libstdc++6 is not installed.
 apt depends on debian-archive-keyring; however:
  Package debian-archive-keyring is not installed.
 apt depends on gnupg; however:
  Package gnupg is not installed.

dpkg: error processing apt (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 apt

I tried installing the dependencies but they all seem to depend on each other, I also have gnupg installed But above it shows me that gnupg is not installed.

I have tried severaal versins of apt but I get similar errors.

Is there an up to date guide or instructions somewhere to install apt on an lfs system?

The hint I was using is http://www.linuxfromscratch.org/hint...files/dpkg.txt

I used it to install the latest dpkg.(version 1.16.9 (i386))

But I cant seems to get apt to work please help.

I have been stuck on this for more than 2 days!

Regards
James

Keith Hedger 11-29-2012 09:35 AM

Have you tried downloading the source and compiling it, that would solve the stupid apt errors, ( I don't like apt, and don't see the point of compiling LFS and then using a package manager to install binary's ).

knudfl 11-29-2012 10:47 AM

*

http://www.linuxquestions.org/questi...kg-4175438741/

No apt functions will work in an LFS OS, I think.

Keith Hedger 11-29-2012 11:36 AM

Quote:

Originally Posted by knudfl (Post 4839649)
*

http://www.linuxquestions.org/questi...kg-4175438741/

No apt functions will work in an LFS OS, I think.

Why on earth do say that? If apt is compiled and set up properly and the config is correct it should work just like any other program, if you are going to make such a blanket statement at least give your reasons otherwise you are not really helping!

I dont like/use apt so I don't have an axe to grind anyway.

phoenixfusion 11-30-2012 07:59 PM

Quote:

Originally Posted by Keith Hedger (Post 4839600)
Have you tried downloading the source and compiling it, that would solve the stupid apt errors, ( I don't like apt, and don't see the point of compiling LFS and then using a package manager to install binary's ).

Yes i tried downloading and installing the package from source still had errors. Im just installing apt so that a really novice user my gf who prefers ubuntu to my lfs system. I want her to prefer using my lfs system than ubuntu which is so simpleand dumbed down for new linux users. I want to make my lfs os into a user friendly os that even novice users can use easily. After apt i want to create some front end gui fot apt like ubuntu software center or something graphical to add remove programs.
I
so i tried installing the apt dependencies mentioned for apt even going back to the really old version of apt mentioned in the hint, to install libc6 I need to install the eglibc package which just doesnt seem to build from source. I get errors again which on googling showed unresolved threads elsewhere. I hope to get this solved at linuxquestions coz i get most solutions here...

Regards
James

Keith Hedger 12-01-2012 11:16 AM

If you are not married to apt why not try a different approach, try using one of the other package managers like yum, but if you are happy to write a front end gui for apt why not just do it from scratch I use my own package manager based on slackware's slackpkg for instance, or then again if you are aiming to REALLY dumb down your installation, should you be letting just anybody install/uninstall stuff? which could totally fubar you install!

phoenixfusion 12-03-2012 03:18 AM

I tried installing eglibc (libc6) the dependency of apt, but I get the below error:-

Code:

make[2]: Leaving directory `/sources/eglibc-2.11.3/csu'
make  subdir=iconv -C iconv ..=../ subdir_lib
make[2]: Entering directory `/sources/eglibc-2.11.3/iconv'
make[2]: Leaving directory `/sources/eglibc-2.11.3/iconv'
make[2]: Entering directory `/sources/eglibc-2.11.3/iconv'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/sources/eglibc-2.11.3/iconv'
make  subdir=locale -C locale ..=../ subdir_lib
make[2]: Entering directory `/sources/eglibc-2.11.3/locale'
make[2]: Leaving directory `/sources/eglibc-2.11.3/locale'
make[2]: Entering directory `/sources/eglibc-2.11.3/locale'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/sources/eglibc-2.11.3/locale'
make  subdir=localedata -C localedata ..=../ subdir_lib
make[2]: Entering directory `/sources/eglibc-2.11.3/localedata'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/sources/eglibc-2.11.3/localedata'
make  subdir=iconvdata -C iconvdata ..=../ subdir_lib
make[2]: Entering directory `/sources/eglibc-2.11.3/iconvdata'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/sources/eglibc-2.11.3/iconvdata'
make  subdir=assert -C assert ..=../ subdir_lib
make[2]: Entering directory `/sources/eglibc-2.11.3/assert'
make[2]: Leaving directory `/sources/eglibc-2.11.3/assert'
make[2]: Entering directory `/sources/eglibc-2.11.3/assert'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/sources/eglibc-2.11.3/assert'
make  subdir=ctype -C ctype ..=../ subdir_lib
make[2]: Entering directory `/sources/eglibc-2.11.3/ctype'
make[2]: Leaving directory `/sources/eglibc-2.11.3/ctype'
make[2]: Entering directory `/sources/eglibc-2.11.3/ctype'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/sources/eglibc-2.11.3/ctype'
make  subdir=intl -C intl ..=../ subdir_lib
make[2]: Entering directory `/sources/eglibc-2.11.3/intl'
make[2]: Leaving directory `/sources/eglibc-2.11.3/intl'
make[2]: Entering directory `/sources/eglibc-2.11.3/intl'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/sources/eglibc-2.11.3/intl'
make  subdir=catgets -C catgets ..=../ subdir_lib
make[2]: Entering directory `/sources/eglibc-2.11.3/catgets'
make[2]: Leaving directory `/sources/eglibc-2.11.3/catgets'
make[2]: Entering directory `/sources/eglibc-2.11.3/catgets'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/sources/eglibc-2.11.3/catgets'
make  subdir=math -C math ..=../ subdir_lib
make[2]: Entering directory `/sources/eglibc-2.11.3/math'
make[2]: Leaving directory `/sources/eglibc-2.11.3/math'
make[2]: Entering directory `/sources/eglibc-2.11.3/math'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/sources/eglibc-2.11.3/math'
make  subdir=setjmp -C setjmp ..=../ subdir_lib
make[2]: Entering directory `/sources/eglibc-2.11.3/setjmp'
make[2]: Leaving directory `/sources/eglibc-2.11.3/setjmp'
make[2]: Entering directory `/sources/eglibc-2.11.3/setjmp'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/sources/eglibc-2.11.3/setjmp'
make  subdir=signal -C signal ..=../ subdir_lib
make[2]: Entering directory `/sources/eglibc-2.11.3/signal'
make[2]: Leaving directory `/sources/eglibc-2.11.3/signal'
make[2]: Entering directory `/sources/eglibc-2.11.3/signal'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/sources/eglibc-2.11.3/signal'
make  subdir=stdlib -C stdlib ..=../ subdir_lib
make[2]: Entering directory `/sources/eglibc-2.11.3/stdlib'
make[2]: Leaving directory `/sources/eglibc-2.11.3/stdlib'
make[2]: Entering directory `/sources/eglibc-2.11.3/stdlib'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/sources/eglibc-2.11.3/stdlib'
make  subdir=stdio-common -C stdio-common ..=../ subdir_lib
make[2]: Entering directory `/sources/eglibc-2.11.3/stdio-common'
make[2]: Leaving directory `/sources/eglibc-2.11.3/stdio-common'
make[2]: Entering directory `/sources/eglibc-2.11.3/stdio-common'
make[2]: *** No rule to make target `../manual/errno.texi', needed by `../sysdeps/gnu/errlist.c'.  Stop.
make[2]: Leaving directory `/sources/eglibc-2.11.3/stdio-common'
make[1]: *** [stdio-common/subdir_lib] Error 2
make[1]: Leaving directory `/sources/eglibc-2.11.3'
make: *** [all] Error 2

I posted the end of the make output, hope this is enough.

Please help...

goldyard 07-13-2022 12:34 PM

I have the same question with you
 
Just compiling the GnuTLS from source code. I don't know how many dependies missing. Good luck.

Keith Hedger 07-13-2022 02:11 PM

necro post! this thread is ten years old!


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