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 - 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 09-25-2016, 11:58 PM   #1
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Rep: Reputation: Disabled
Apt-get


I have been following this (http://www.linuxfromscratch.org/hint...files/dpkg.txt) tutorial and cannot seem to get apt to work I have done everything right (I think...) however I am getting this error.
Code:
apt-get: error while loading shared libraries: libapt-pkg.so.4.12: cannot open shared object file: No such file or directory
Thanks in advance!
 
Old 09-26-2016, 04:40 AM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by zoelee4 View Post
I have been following this (http://www.linuxfromscratch.org/hint...files/dpkg.txt) tutorial and cannot seem to get apt to work I have done everything right (I think...) however I am getting this error.
Code:
apt-get: error while loading shared libraries: libapt-pkg.so.4.12: cannot open shared object file: No such file or directory
Thanks in advance!
Hi...

The error means that APT is missing a dependency, libapt-pkg.so.4.12. However, I'm not sure how you would go about obtaining and installing this file for LFS, unless you can do it using a .deb package. Perhaps the LQ contributor for LFS or another member can help with this.

Where did you download APT, from Debian's site? Also what is the version number of the APT package you downloaded and installed? I did find a copy of the dependency here, but it may not work for the version of APT you have installed.

Regards...

Last edited by ardvark71; 09-26-2016 at 04:44 AM. Reason: Added wordage/Correction.
 
Old 09-26-2016, 06:22 PM   #3
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Original Poster
Rep: Reputation: Disabled
I found this: http://askubuntu.com/questions/67435...rieslibapt-pkg I tried to do what it said, but it did not seem to work either.
 
Old 09-27-2016, 05:44 PM   #4
zoelee4
Member
 
Registered: Aug 2016
Distribution: Debian, Ubuntu, BLFS
Posts: 116

Original Poster
Rep: Reputation: Disabled
Is there a better place for this thread to go?
 
Old 10-19-2016, 12:24 AM   #5
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
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.

Last edited by mark_alfred; 10-19-2016 at 12:30 AM.
 
Old 10-19-2016, 01:12 AM   #6
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by zoelee4 View Post
Is there a better place for this thread to go?
Here would likely be the best place: http://lists.linuxfromscratch.org/listinfo/lfs-support
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ubuntu apt-get & apt-cache commands with practical examples LXer Syndicated Linux News 0 12-31-2014 02:01 PM
[SOLVED] 404errors when running apt-get update already tried sudo rm /var/lib/apt/lists/* -vf rasec8711 Linux - Software 2 05-31-2012 10:33 AM
LXer: Create a Local Ubuntu Repository using Apt-Mirror and Apt-Cacher LXer Syndicated Linux News 0 08-04-2009 10:13 PM
apt pinning /etc/apt/apt.conf parent's_basement Debian 5 10-26-2008 05:50 PM
apt-get update errors since Debian released ( bad /etc/apt/sources.list ?) forgox Debian 10 06-13-2005 12:28 PM

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

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