LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-28-2012, 12:11 PM   #1
phoenixfusion
LQ Newbie
 
Registered: Jul 2012
Posts: 16

Rep: Reputation: Disabled
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

Last edited by phoenixfusion; 11-28-2012 at 12:20 PM.
 
Old 11-29-2012, 09:35 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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 ).
 
Old 11-29-2012, 10:47 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
*

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

No apt functions will work in an LFS OS, I think.
 
Old 11-29-2012, 11:36 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by knudfl View Post
*

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.
 
Old 11-30-2012, 07:59 PM   #5
phoenixfusion
LQ Newbie
 
Registered: Jul 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
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
 
Old 12-01-2012, 11:16 AM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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!
 
Old 12-03-2012, 03:18 AM   #7
phoenixfusion
LQ Newbie
 
Registered: Jul 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
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...
 
Old 07-13-2022, 12:34 PM   #8
goldyard
LQ Newbie
 
Registered: Jul 2022
Posts: 1

Rep: Reputation: 0
I have the same question with you

Just compiling the GnuTLS from source code. I don't know how many dependies missing. Good luck.
 
Old 07-13-2022, 02:11 PM   #9
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
necro post! this thread is ten years old!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best OS to build lfs capricus Linux From Scratch 5 06-28-2012 04:28 AM
Apt-src vs Apt-build jmite Linux - Newbie 1 11-02-2008 02:57 AM
Will compiling LFS on an 64 bit distro build an 64 bit LFS? Vampirite Linux From Scratch 4 08-31-2007 02:48 PM
Unable to Build ELDK3.1 for kernel 2.4.25. On Booting Unable to mount root fs.. kannath Debian 0 05-11-2006 09:26 AM
nvsound on an lfs build behmjoe Linux From Scratch 6 12-10-2005 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:15 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