error while loading shared libraries: libselinux.so.1

Bug #1300726 reported by Jörg Frings-Fürst
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pbuilder (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Hi,

I have create on sausy 64bit a sausy/trusty buildsys:

sudo DIST=saucy pbuilder create --debootstrapopts --arch --debootstrapopts i386
sudo DIST=trusty pbuilder create --debootstrapopts --arch --debootstrapopts i386

On build a package with:

DIST=trusty ARCH=i386 pdebuild

or

DIST=saucy ARCH=i386 pdebuild

I get every time the error:

/var/cache/pbuilder/build//10404/usr/bin/dpkg: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory

Full buildlog is attached.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: pbuilder 0.215ubuntu2
ProcVersionSignature: Ubuntu 3.11.0-15.25-generic 3.11.10
Uname: Linux 3.11.0-15-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.12.5-0ubuntu2.2
Architecture: amd64
Date: Tue Apr 1 13:24:17 2014
InstallationDate: Installed on 2013-12-12 (109 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: pbuilder
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jörg Frings-Fürst (jff-de) wrote :
Revision history for this message
Thorsten Glaser (mirabilos) wrote : Re: [Bug 1300726] [NEW] error while loading shared libraries: libselinux.so.1

Jörg Frings-Fürst dixit:

>I have create on sausy 64bit a sausy/trusty buildsys:
>
>sudo DIST=saucy pbuilder create --debootstrapopts --arch --debootstrapopts i386

Try this instead:

sudo linux32 env DIST=saucy pbuilder create --debootstrapopts --arch=i386

Also, use --debootstrapopts --variant=buildd for it to only install
packages needed to build other packages.

>On build a package with:
>
>DIST=trusty ARCH=i386 pdebuild

Same here, prepend “linux32”.

bye,
//mirabilos
--
<igli> exceptions: a truly awful implementation of quite a nice idea.
<igli> just about the worst way you could do something like that, afaic.
<igli> it's like anti-design. <mirabilos> that too… may I quote you on that?
<igli> sure, tho i doubt anyone will listen ;)

Revision history for this message
Jörg Frings-Fürst (jff-de) wrote :

Hi Thorsten,

with "sudo linux32 env DIST=saucy pbuilder create --debootstrapopts --arch=i386"
the created file is saucy-amd64-base.tgz.

with "sudo linux32 env ARCH=i386 DIST=saucy pbuilder create --debootstrapopts --arch=i386"
the created file is saucy-i386-base.tgz.

But with both files the same error: [...]/usr/bin/dpkg: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory

Revision history for this message
Robert Booster (booster-sdk) wrote :

installl i386 packages in your 64bit environment to resolve that problem.

Revision history for this message
Mattia Rizzolo (mapreri) wrote :

I'd like to know whether one of the suggestions here works well enough.
Also, please note that pbuilder has an --architecture flag that does exactly that: passes --arch to debootstrap.

Changed in pbuilder (Ubuntu):
status: New → Incomplete
Revision history for this message
Mattia Rizzolo (mapreri) wrote :

oh, I just noticed that you replied to tg, well, please try with just
pbuilder create --basetgz xenial-i386-base.tgz --architecture i386 --distribution xenial
(taking care your MIRROR conf points to archive.u.c or a mirror of it, or add --mirror to the command above).
Really here is enough to do this. Maybe your system does not have any i386 lib? I'm unsure about ubuntu defaults, but then please just `dpkg --add-architecture i386` + `apt update` + `apt install libselinux1:i386` which is more or less the very base to run i386 lib on x86_64.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for pbuilder (Ubuntu) because there has been no activity for 60 days.]

Changed in pbuilder (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.