Your message dated Mon, 16 Apr 2018 19:18:17 +0300
with message-id <9b8934b3-4d43-6320-3adc-b1f5930ef...@msgid.tls.msk.ru>
and subject line Bug#859258: qemu on arm host and xubuntu/debian guest /
apt-get error: /sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "("
unexpected
has caused the Debian Bug report #859258,
regarding qemu on arm host and xubuntu/debian guest / apt-get error:
/sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
859258: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859258
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: apt-get
Version: 1.2.12
Package: libc-bin
Version: 2.23-0
Package: qemu-user-static
Version: 1:2.8+dfsg-3~bpo8+1
Error report for a bug with qemu on arm host and xubuntu/debian guest / apt-get
error: /sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
(reportbug was not working for this bug properly, so I had to this manually)
Bug still exists, but I found a work around.
Affected: apt-get. qemu and glibc (libc6, libc-bin, ldconfig)
arm host and i368 guest
Data of Host-System:
Hardware: CubieTruck with 2GB RAM, ARM-Prozessor Dual-Core, 64GB SD-Card
Software: Armbian,
$ uname -a
Linux cubietruck 4.9.12-sunxi #4 SMP Thu Feb 23 19:46:51 CET 2017 armv7l
GNU/Linux
$ dpkg -l | grep libc6
ii libc6:armhf 2.19-18+deb8u4
armhf GNU C Library: Shared libraries
ii libc6:i386 2.19-18+deb8u4
i386 GNU C Library: Shared libraries
ii libc6-dev:armhf 2.19-18+deb8u4
armhf GNU C Library: Development Libraries and Header Files
ii libc6-pic:armhf 2.19-18+deb8u4
armhf GNU C Library: PIC archive library
$ dpkg -l | grep libc-bin
ii libc-bin 2.19-18+deb8u7
i386 GNU C Library: Binaries
During installation and repair on guest following packages disappear or
replaced by another version:
ii libc-bin 2.19-18+deb8u4
i386 GNU C Library: Binaries
ii libc-bin 2.19-18+deb8u4
armhf GNU C Library: Binaries
ii libc-bin 2.19-18+deb8u7
armhf GNU C Library: Binaries
$ dpkg -l | grep qemu
ii ipxe-qemu 1.0.0+git-20141004.86285d1-1
all PXE boot firmware - ROM images for qemu
ii qemu 1:2.8+dfsg-3~bpo8+1
armhf fast processor emulator
ii qemu-guest-agent 1:2.8+dfsg-3~bpo8+1
armhf Guest-side qemu-system agent
ii qemu-slof 20140630+dfsg-1
all Slimline Open Firmware -- QEMU PowerPC version
ii qemu-system 1:2.8+dfsg-3~bpo8+1
armhf QEMU full system emulation binaries
ii qemu-system-arm 1:2.1+dfsg-12+deb8u6
armhf QEMU full system emulation binaries (arm)
ii qemu-system-common 1:2.8+dfsg-3~bpo8+1
armhf QEMU full system emulation binaries (common files)
ii qemu-system-mips 1:2.1+dfsg-12+deb8u6
armhf QEMU full system emulation binaries (mips)
ii qemu-system-misc 1:2.1+dfsg-12+deb8u6
armhf QEMU full system emulation binaries (miscelaneous)
ii qemu-system-ppc 1:2.1+dfsg-12+deb8u6
armhf QEMU full system emulation binaries (ppc)
ii qemu-system-sparc 1:2.1+dfsg-12+deb8u6
armhf QEMU full system emulation binaries (sparc)
ii qemu-system-x86 1:2.1+dfsg-12+deb8u6
armhf QEMU full system emulation binaries (x86)
ii qemu-user 1:2.8+dfsg-3~bpo8+1
armhf QEMU user mode emulation binaries
ii qemu-user-static 1:2.8+dfsg-3~bpo8+1
armhf QEMU user mode emulation binaries (static version)
ii qemu-utils 1:2.8+dfsg-3~bpo8+1
armhf QEMU utilities
ii qemubuilder 0.85~bpo8+1
armhf pbuilder using QEMU as backend
ii qemuctl 0.3.1-2
armhf controlling GUI for qemu
ii qemulator 0.6.352-1
all transitional dummy package to virtualbriks
ii virtualbricks 0.6.352-1
all is a Virtualization suite for qemu/kvm VMs and vde2 networks
Addtionally qemu 2.5.1 and 2.7.1 are compiled an stored in path
~/Qemu/qemu-git/ for additional testing.
Data of Guest-System:
chroot surroundings:
Here xubuntu 16.04
root@cubietruck:/# uname -a
Linux cubietruck 4.9.12-sunxi #4 SMP Thu Feb 23 19:46:51 CET 2017 i686 i686
i686 GNU/Linux
List of all testing versions:
lubuntu-10.04-desktop-i386.iso: works and ok
lubuntu-14.04.5-desktop-amd64.iso: not for this tested
xubuntu-14.04.5-desktop-amd64.iso: not for this tested
xubuntu-14.04.5-desktop-i386.iso: works and ok
xubuntu-16.04.1-desktop-i386.iso: not working
xubuntu-16.04.2-desktop-i386.iso: not working
debian-testing-i386-xfce-CD-1.iso:
linuxmint-18.1-xfce-32bit.iso: not working
lubuntu-16.04.1-alternate-i386.iso: not tested
lubuntu-16.04.2-desktop-i386.iso: not working
openSUSE-Leap-42.3-DVD-x86_64-Build0120-Media.iso: not tested
xubuntu-17.04-beta1-desktop-amd64.iso: not for this tested
xubuntu-17.04-beta2-desktop-amd64.iso: not for this tested
zesty-desktop-i386_dayly170331.iso:
zesty-desktop-i386.iso: not working
Setup of chroot:
sudo mount -o bind /media/sda6/ xubuntu1604i386_01/DiskPartition
mkdir xubuntu1604i386_01
mkdir xubuntu1604i386_01/DiskCombined
mkdir xubuntu1604i386_01/DiskOverlay
mkdir xubuntu1604i386_01/DiskSqash
mkdir xubuntu1604i386_01/DiskImage
mkdir xubuntu1604i386_01/DiskPartition
sudo mount -o bind /media/sda6/ xubuntu1604i386_01/DiskPartition
sudo mount
xubuntu1604i386_01/DiskPartition/download/xubuntu-16.04.1-desktop-i386.iso
xubuntu1604i386_01/DiskImage
sudo mount xubuntu1604i386_01/DiskImage/casper/filesystem.squashfs
xubuntu1604i386_0
1/DiskSqash
sudo mount -t aufs -o
br=xubuntu1604i386_01/DiskOverlay=rw:xubuntu1604i386_01/DiskSqash=ro none
xubuntu1604i386_01/DiskCombined/
echo "Mount of Partition with i386 ubuntu" ; echo "Mount of further Partitions
of Host for chroot." ; sudo mount -o bind /sys
xubuntu1604i386_01/DiskCombined/sys ; sleep 1 ; sudo mount -o bind /proc
xubuntu1604i386_01/DiskCombined/proc ; sleep 1 ; sudo mount -o bind /dev/pts
xubuntu1604i386_01/DiskCombined/dev/pts ; sleep 1 ; xhost + ; sleep 1
sudo cp /etc/resolv.conf
xubuntu1604i386_01/DiskCombined/run/resolvconf/resolv.conf
sudo cp /usr/bin/qemu* xubuntu1604i386_01/DiskCombined/usr/bin/
sudo chroot xubuntu1604i386_01/DiskCombined/ /usr/bin/qemu-i386-static
/bin/bash
For different Versions of qemu:
sudo chroot xubuntu1604i386_01/DiskCombined/
/home/dieterd/Anwendungen/qemu/qemu-i386 /bin/bash
unmount all:
sudo umount /home/dieterd/CHROOT/xubuntu1604i386_01/DiskCombined/sys
sudo umount /home/dieterd/CHROOT/xubuntu1604i386_01/DiskCombined/proc
sudo umount /home/dieterd/CHROOT/xubuntu1604i386_01/DiskCombined/dev/pts
sudo umount /home/dieterd/CHROOT/xubuntu1604i386_01/DiskCombined
and so on .....
Data of Guest-System:
chroot surroundings:
Here xubuntu 16.04
root@cubietruck:/# uname -a
Linux cubietruck 4.9.12-sunxi #4 SMP Thu Feb 23 19:46:51 CET 2017 i686 i686
i686 GNU/Linux
List of all testing versions:
lubuntu-10.04-desktop-i386.iso: works and ok
lubuntu-14.04.5-desktop-amd64.iso: not for this tested
xubuntu-14.04.5-desktop-amd64.iso: not for this tested
xubuntu-14.04.5-desktop-i386.iso: works and ok
xubuntu-16.04.1-desktop-i386.iso: not working
xubuntu-16.04.2-desktop-i386.iso: not working
debian-testing-i386-xfce-CD-1.iso:
linuxmint-18.1-xfce-32bit.iso: not working
lubuntu-16.04.1-alternate-i386.iso: not tested
lubuntu-16.04.2-desktop-i386.iso: not working
openSUSE-Leap-42.3-DVD-x86_64-Build0120-Media.iso: not tested
xubuntu-17.04-beta1-desktop-amd64.iso: not for this tested
xubuntu-17.04-beta2-desktop-amd64.iso: not for this tested
zesty-desktop-i386_dayly170331.iso:
zesty-desktop-i386.iso: not working
Setup of chroot:
sudo mount -o bind /media/sda6/ xubuntu1604i386_01/DiskPartition
mkdir xubuntu1604i386_01
mkdir xubuntu1604i386_01/DiskCombined
mkdir xubuntu1604i386_01/DiskOverlay
mkdir xubuntu1604i386_01/DiskSqash
mkdir xubuntu1604i386_01/DiskImage
mkdir xubuntu1604i386_01/DiskPartition
sudo mount -o bind /media/sda6/ xubuntu1604i386_01/DiskPartition
sudo mount
xubuntu1604i386_01/DiskPartition/download/xubuntu-16.04.1-desktop-i386.iso
xubuntu1604i386_01/DiskImage
sudo mount xubuntu1604i386_01/DiskImage/casper/filesystem.squashfs
xubuntu1604i386_0
1/DiskSqash
sudo mount -t aufs -o
br=xubuntu1604i386_01/DiskOverlay=rw:xubuntu1604i386_01/DiskSqash=ro none
xubuntu1604i386_01/DiskCombined/
echo "Mount of Partition with i386 ubuntu" ; echo "Mount of further Partitions
of Host for chroot." ; sudo mount -o bind /sys
xubuntu1604i386_01/DiskCombined/sys ; sleep 1 ; sudo mount -o bind /proc
xubuntu1604i386_01/DiskCombined/proc ; sleep 1 ; sudo mount -o bind /dev/pts
xubuntu1604i386_01/DiskCombined/dev/pts ; sleep 1 ; xhost + ; sleep 1
sudo cp /etc/resolv.conf
xubuntu1604i386_01/DiskCombined/run/resolvconf/resolv.conf
sudo cp /usr/bin/qemu* xubuntu1604i386_01/DiskCombined/usr/bin/
sudo chroot xubuntu1604i386_01/DiskCombined/ /usr/bin/qemu-i386-static
/bin/bash
For different Versions of qemu:
sudo chroot xubuntu1604i386_01/DiskCombined/
/home/dieterd/Anwendungen/qemu/qemu-i386 /bin/bash
unmount all:
sudo umount /home/dieterd/CHROOT/xubuntu1604i386_01/DiskCombined/sys
sudo umount /home/dieterd/CHROOT/xubuntu1604i386_01/DiskCombined/proc
sudo umount /home/dieterd/CHROOT/xubuntu1604i386_01/DiskCombined/dev/pts
sudo umount /home/dieterd/CHROOT/xubuntu1604i386_01/DiskCombined
and so on .....
Error Message by apt-get:
root@cubietruck:/# apt-get upgrade
(root@cubietruck:/# /usr/bin/qemu-i386-static /usr/bin/apt-get upgrade)
315 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
2 not fully installed or removed.
Need to get 0 B/372 MB of archives.
After this operation, 54.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up libc-bin (2.23-0ubuntu5) ...
/sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
/sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
dpkg: error processing package libc-bin (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
oot@cubietruck:/# /usr/bin/qemu-i386-static ldconfig.real -c
Error while loading ldconfig.real: No such file or directory
root@cubietruck:/# /usr/bin/qemu-i386-static ldconfig.real -v
Error while loading ldconfig.real: No such file or directory
root@cubietruck:/# /usr/bin/qemu-i386-static /sbin/ldconfig.real -v
/sbin/ldconfig.real: Can't stat /lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/lib/i686-linux-gnu: No such file or
directory
/sbin/ldconfig.real: Path `/lib/i386-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/i386-linux-gnu' given more than once
/lib/i386-linux-gnu:
libexpat.so.1 -> libexpat.so.1.6.0
......
root@cubietruck:/# /usr/bin/qemu-i386-static /sbin/ldconfig.real --version
ldconfig (Ubuntu GLIBC 2.23-0ubuntu5) 2.23
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Andreas Jaeger.
Possible solution for this trouble:
root@cubietruck:/# cat /sbin/ldconfig
#!/bin/sh
if test $# = 0 \
&& test x"$LDCONFIG_NOTRIGGER" = x \
&& test x"$DPKG_MAINTSCRIPT_PACKAGE" != x \
&& dpkg-trigger --check-supported 2>/dev/null
then
if dpkg-trigger --no-await ldconfig; then
if test x"$LDCONFIG_TRIGGER_DEBUG" != x; then
echo "ldconfig: wrapper deferring update (trigger activated)"
fi
exit 0
fi
fi
exec /sbin/ldconfig.real "$@"
root@cubietruck:/#
Change last line from
exec /sbin/ldconfig.real "$@"
to
exec /usr/bin/qemu-i386-static /sbin/ldconfig.real "$@"
as fast solution till bug is really solved.
This temporarely work around works for this bug.
Apendix:
Appendix: Bug-List Kernel
https://bugzilla.kernel.org/show_bug.cgi?id=195153
2017-03-28 20:39:39 UTC
This bug does not occur till xubuntu 14.04 i386. This bug exists for versions
16.04 i386 and higher, Linux Kernel 4.8 and higher. In chroot environment
ldconfig fails. Then you cannot install any package with apt-get or dpkg.
Verified for linux mate 18.1 too.
--- Begin Message ---
Error report for a bug with qemu on arm host and xubuntu/debian guest / apt-get
error: /sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
(reportbug was not working for this bug properly, so I had to this manually)
Bug still exists, but I found a work around.
Affected: apt-get. qemu and glibc (libc6, libc-bin, ldconfig)
arm host and i368 guest
Data of Host-System:
Hardware: CubieTruck with 2GB RAM, ARM-Prozessor Dual-Core, 64GB SD-Card
Software: Armbian,
$ uname -a
Linux cubietruck 4.9.12-sunxi #4 SMP Thu Feb 23 19:46:51 CET 2017 armv7l
GNU/Linux
$ dpkg -l | grep libc6
ii libc6:armhf 2.19-18+deb8u4
armhf GNU C Library: Shared libraries
ii libc6:i386 2.19-18+deb8u4
i386 GNU C Library: Shared libraries
ii libc6-dev:armhf 2.19-18+deb8u4
armhf GNU C Library: Development Libraries and Header Files
ii libc6-pic:armhf 2.19-18+deb8u4
armhf GNU C Library: PIC archive library
$ dpkg -l | grep libc-bin
ii libc-bin 2.19-18+deb8u7
i386 GNU C Library: Binaries
During installation and repair on guest following packages disappear or
replaced by another version:
ii libc-bin 2.19-18+deb8u4
i386 GNU C Library: Binaries
ii libc-bin 2.19-18+deb8u4
armhf GNU C Library: Binaries
ii libc-bin 2.19-18+deb8u7
armhf GNU C Library: Binaries
$ dpkg -l | grep qemu
ii ipxe-qemu 1.0.0+git-20141004.86285d1-1
all PXE boot firmware - ROM images for qemu
ii qemu 1:2.8+dfsg-3~bpo8+1
armhf fast processor emulator
ii qemu-guest-agent 1:2.8+dfsg-3~bpo8+1
armhf Guest-side qemu-system agent
ii qemu-slof 20140630+dfsg-1
all Slimline Open Firmware -- QEMU PowerPC version
ii qemu-system 1:2.8+dfsg-3~bpo8+1
armhf QEMU full system emulation binaries
ii qemu-system-arm 1:2.1+dfsg-12+deb8u6
armhf QEMU full system emulation binaries (arm)
ii qemu-system-common 1:2.8+dfsg-3~bpo8+1
armhf QEMU full system emulation binaries (common files)
ii qemu-system-mips 1:2.1+dfsg-12+deb8u6
armhf QEMU full system emulation binaries (mips)
ii qemu-system-misc 1:2.1+dfsg-12+deb8u6
armhf QEMU full system emulation binaries (miscelaneous)
ii qemu-system-ppc 1:2.1+dfsg-12+deb8u6
armhf QEMU full system emulation binaries (ppc)
ii qemu-system-sparc 1:2.1+dfsg-12+deb8u6
armhf QEMU full system emulation binaries (sparc)
ii qemu-system-x86 1:2.1+dfsg-12+deb8u6
armhf QEMU full system emulation binaries (x86)
ii qemu-user 1:2.8+dfsg-3~bpo8+1
armhf QEMU user mode emulation binaries
ii qemu-user-static 1:2.8+dfsg-3~bpo8+1
armhf QEMU user mode emulation binaries (static version)
ii qemu-utils 1:2.8+dfsg-3~bpo8+1
armhf QEMU utilities
ii qemubuilder 0.85~bpo8+1
armhf pbuilder using QEMU as backend
ii qemuctl 0.3.1-2
armhf controlling GUI for qemu
ii qemulator 0.6.352-1
all transitional dummy package to virtualbriks
ii virtualbricks 0.6.352-1
all is a Virtualization suite for qemu/kvm VMs and vde2 networks
Addtionally qemu 2.5.1 and 2.7.1 are compiled an stored in path
~/Qemu/qemu-git/ for additional testing.
Data of Guest-System:
chroot surroundings:
Here xubuntu 16.04
root@cubietruck:/# uname -a
Linux cubietruck 4.9.12-sunxi #4 SMP Thu Feb 23 19:46:51 CET 2017 i686 i686
i686 GNU/Linux
List of all testing versions:
lubuntu-10.04-desktop-i386.iso: works and ok
lubuntu-14.04.5-desktop-amd64.iso: not for this tested
xubuntu-14.04.5-desktop-amd64.iso: not for this tested
xubuntu-14.04.5-desktop-i386.iso: works and ok
xubuntu-16.04.1-desktop-i386.iso: not working
xubuntu-16.04.2-desktop-i386.iso: not working
debian-testing-i386-xfce-CD-1.iso:
linuxmint-18.1-xfce-32bit.iso: not working
lubuntu-16.04.1-alternate-i386.iso: not tested
lubuntu-16.04.2-desktop-i386.iso: not working
openSUSE-Leap-42.3-DVD-x86_64-Build0120-Media.iso: not tested
xubuntu-17.04-beta1-desktop-amd64.iso: not for this tested
xubuntu-17.04-beta2-desktop-amd64.iso: not for this tested
zesty-desktop-i386_dayly170331.iso:
zesty-desktop-i386.iso: not working
Setup of chroot:
sudo mount -o bind /media/sda6/ xubuntu1604i386_01/DiskPartition
mkdir xubuntu1604i386_01
mkdir xubuntu1604i386_01/DiskCombined
mkdir xubuntu1604i386_01/DiskOverlay
mkdir xubuntu1604i386_01/DiskSqash
mkdir xubuntu1604i386_01/DiskImage
mkdir xubuntu1604i386_01/DiskPartition
sudo mount -o bind /media/sda6/ xubuntu1604i386_01/DiskPartition
sudo mount
xubuntu1604i386_01/DiskPartition/download/xubuntu-16.04.1-desktop-i386.iso
xubuntu1604i386_01/DiskImage
sudo mount xubuntu1604i386_01/DiskImage/casper/filesystem.squashfs
xubuntu1604i386_0
1/DiskSqash
sudo mount -t aufs -o
br=xubuntu1604i386_01/DiskOverlay=rw:xubuntu1604i386_01/DiskSqash=ro none
xubuntu1604i386_01/DiskCombined/
echo "Mount of Partition with i386 ubuntu" ; echo "Mount of further Partitions
of Host for chroot." ; sudo mount -o bind /sys
xubuntu1604i386_01/DiskCombined/sys ; sleep 1 ; sudo mount -o bind /proc
xubuntu1604i386_01/DiskCombined/proc ; sleep 1 ; sudo mount -o bind /dev/pts
xubuntu1604i386_01/DiskCombined/dev/pts ; sleep 1 ; xhost + ; sleep 1
sudo cp /etc/resolv.conf
xubuntu1604i386_01/DiskCombined/run/resolvconf/resolv.conf
sudo cp /usr/bin/qemu* xubuntu1604i386_01/DiskCombined/usr/bin/
sudo chroot xubuntu1604i386_01/DiskCombined/ /usr/bin/qemu-i386-static
/bin/bash
For different Versions of qemu:
sudo chroot xubuntu1604i386_01/DiskCombined/
/home/dieterd/Anwendungen/qemu/qemu-i386 /bin/bash
unmount all:
sudo umount /home/dieterd/CHROOT/xubuntu1604i386_01/DiskCombined/sys
sudo umount /home/dieterd/CHROOT/xubuntu1604i386_01/DiskCombined/proc
sudo umount /home/dieterd/CHROOT/xubuntu1604i386_01/DiskCombined/dev/pts
sudo umount /home/dieterd/CHROOT/xubuntu1604i386_01/DiskCombined
and so on .....
Error Message by apt-get:
root@cubietruck:/# apt-get upgrade
(root@cubietruck:/# /usr/bin/qemu-i386-static /usr/bin/apt-get upgrade)
315 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
2 not fully installed or removed.
Need to get 0 B/372 MB of archives.
After this operation, 54.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up libc-bin (2.23-0ubuntu5) ...
/sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
/sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
dpkg: error processing package libc-bin (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
oot@cubietruck:/# /usr/bin/qemu-i386-static ldconfig.real -c
Error while loading ldconfig.real: No such file or directory
root@cubietruck:/# /usr/bin/qemu-i386-static ldconfig.real -v
Error while loading ldconfig.real: No such file or directory
root@cubietruck:/# /usr/bin/qemu-i386-static /sbin/ldconfig.real -v
/sbin/ldconfig.real: Can't stat /lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/lib/i686-linux-gnu: No such file or
directory
/sbin/ldconfig.real: Path `/lib/i386-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/i386-linux-gnu' given more than once
/lib/i386-linux-gnu:
libexpat.so.1 -> libexpat.so.1.6.0
......
root@cubietruck:/# /usr/bin/qemu-i386-static /sbin/ldconfig.real --version
ldconfig (Ubuntu GLIBC 2.23-0ubuntu5) 2.23
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Andreas Jaeger.
Possible solution for this trouble:
root@cubietruck:/# cat /sbin/ldconfig
#!/bin/sh
if test $# = 0 \
&& test x"$LDCONFIG_NOTRIGGER" = x \
&& test x"$DPKG_MAINTSCRIPT_PACKAGE" != x \
&& dpkg-trigger --check-supported 2>/dev/null
then
if dpkg-trigger --no-await ldconfig; then
if test x"$LDCONFIG_TRIGGER_DEBUG" != x; then
echo "ldconfig: wrapper deferring update (trigger
activated)"
fi
exit 0
fi
fi
exec /sbin/ldconfig.real "$@"
root@cubietruck:/#
Change last line from
exec /sbin/ldconfig.real "$@"
to
exec /usr/bin/qemu-i386-static /sbin/ldconfig.real "$@"
as fast solution till bug is really solved.
This temporarely work around works for this bug.
Apendix:
Appendix: Bug-List Kernel
https://bugzilla.kernel.org/show_bug.cgi?id=195153
2017-03-28 20:39:39 UTC
This bug does not occur till xubuntu 14.04 i386. This bug exists for versions
16.04 i386 and higher, Linux Kernel 4.8 and higher. In chroot environment
ldconfig fails. Then you cannot install any package with apt-get or dpkg.
Verified for linux mate 18.1 too.
apt-get update
apt-get upgrade
.....
Setting up libc6:i386 (2.23-0ubuntu5) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
/sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
/sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
dpkg: error processing package libc-bin (--configure):
subprocess installed post-installation script returned error exit status 2
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@cubietruck:/#
After this you cannot install any package on chroot guest system.
While trying to fix trouble, there was a punch through to host, which I posted
here:
http://pastebin.com/CmMdFrGr
It's possible that xen is affected too, because of similarities to qemu.
qemu-i386 --version
qemu-i386 version 2.7.1, Copyright (c) 2003-2016 Fabrice Bellard and the QEMU
Project developers
Output of guest:
cubietruck / # ldconfig
/sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
cubietruck / # ldconfig.real
bash: /sbin/ldconfig.real: cannot execute binary file: Exec format error
Appendix: Error listing Pastebin
http://pastebin.com/CmMdFrGr
****************************************************************
* *
QEMU ERROR with libc-bin and ldconfig
* *
****************************************************************
****************************************************************
Details of Host and Guest
****************************************************************
HOST:
cubietruck with Armbian (based on Debian Jessie) with kernel version 4.xx
$ uname -a
Linux cubietruck 4.9.12-sunxi #4 SMP Thu Feb 23 19:46:51 CET 2017 armv7l
GNU/Linux
Sources extended with debian:i386 (libc, etc.) for using drivers of brother
mfc-printer
for printing and scanning.
Chrootet guest:
xubuntu 16.04, 32bit
xubuntu-16.04.1-desktop-i386.iso
Two Setups were tested:
1. /casper/filesystem.squashfs extracted to an folder/partition
Edited resolv.config so that Internet access by guest is possible
mounted /sys, /proc and /dev/pts
Copied qemu-files to /usr/bin_2
2. /casper/filesystem.squashfs mounted together with an folder as aufs.
Edited resolv.config so that Internet access by guest is possible
mounted /sys, /proc and /dev/pts
Copied qemu-files to /usr/bin_2
Error/Failure is confirmed by 2. configuration, too.
****************************************************************
Error configuration 1:
****************************************************************
apt-get update and apt-get upgrade:
Do you want to continue? [Y/n] y
Setting up libc-bin (2.23-0ubuntu3) ...
/sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
/sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
dpkg: error processing package libc-bin (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
After this no install or deinstall was possible.
All how to manage failed and broken installation of apt.
http://askubuntu.com/questions/33949/how-to-repair-apt-get-command
http://askubuntu.com/questions/141370/how-to-fix-a-broken-package-when-apt-get-install-f-does-not-work
http://www.iasptk.com/ubuntu-fix-broken-package-best-solution/
Later I tried onther commands with dpkg
dpkg -i --force-overwrite
/var/cache/apt/archives/libc-bin_2.23-0ubuntu5_i386.deb
dpkg -i --force-all /var/cache/apt/archives/libc-bin_2.23-0ubuntu5_i386.deb
dpkg -r /var/cache/apt/archives/libc-bin_2.23-0ubuntu3_i386.deb
dpkg --force-all /var/cache/apt/archives/libc-bin_2.23-0ubuntu3_i386.deb
dpkg -r /var/cache/apt/archives/libc-bin_2.23-0ubuntu3_i386.deb
dpkg -r libc-bin
dpkg -r --force libc-bin
dpkg -r --force-overwrite libc-bin
dpkg -p --force-overwrite libc-bin
dpkg -r --force libc-bin
dpkg -p --force-all libc-bin
dpkg -r --force-all libc-bin
dpkg -i /var/cache/apt/archives/libc-bin_2.23-0ubuntu3_i386.deb
dpkg -i --force-all /var/cache/apt/archives/libc-bin_2.23-0ubuntu3_i386.deb
Then I found my host-system buggy, because ldconfig, ldd was there broken too.
$ sudo apt-cache policy libc-bin:i386 libc6:i386
libc-bin:i386:
Installed: 2.23-0ubuntu5
Candidate: 2.23-0ubuntu5
Version table:
*** 2.23-0ubuntu5 0
100 /var/lib/dpkg/status
2.19-18+deb8u7 0
700 http://httpredir.debian.org/debian/ jessie/main i386 Packages
2.19-18+deb8u3 0
700 http://security.debian.org/ jessie/updates/main i386 Packages
libc6:i386:
Installed: 2.19-18+deb8u4
Candidate: 2.19-18+deb8u7
Version table:
2.19-18+deb8u7 0
700 http://httpredir.debian.org/debian/ jessie/main i386 Packages
*** 2.19-18+deb8u4 0
100 /var/lib/dpkg/status
2.19-18+deb8u3 0
700 http://security.debian.org/ jessie/updates/main i386 Packages
************************************************
Now rapair host:
$ sudo apt-get install libc-bin:i386/jessie
Selected version '2.19-18+deb8u7' (Debian:8.7/stable [i386]) for 'libc-bin:i386'
Selected version '2.19-18+deb8u7' (Debian:8.7/stable [i386]) for 'libc6:i386'
because of 'libc-bin:i386'
The following packages will be DOWNGRADED:
libc-bin:i386
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 10 not upgraded.
1 not fully installed or removed.
Need to get 1,222 kB of archives.
After this operation, 265 kB disk space will be freed.
Do you want to continue? [Y/n] y
$ sudo apt-cache policy libc-bin:i386 libc6:i386
[sudo] password for dieterd:
libc-bin:i386:
Installed: 2.19-18+deb8u7
Candidate: 2.19-18+deb8u7
Version table:
*** 2.19-18+deb8u7 0
700 http://httpredir.debian.org/debian/ jessie/main i386 Packages
100 /var/lib/dpkg/status
2.19-18+deb8u3 0
700 http://security.debian.org/ jessie/updates/main i386 Packages
libc6:i386:
Installed: 2.19-18+deb8u4
Candidate: 2.19-18+deb8u7
Version table:
2.19-18+deb8u7 0
700 http://httpredir.debian.org/debian/ jessie/main i386 Packages
*** 2.19-18+deb8u4 0
100 /var/lib/dpkg/status
2.19-18+deb8u3 0
700 http://security.debian.org/ jessie/updates/main i386 Packages
After this glibc (contains libc6, libc-bin, ldconfig, ...) was on host
repaired.
This was then followed by an own compiled qemu 2.5 and 2.7. Still same results.
****************************************************************
Error configuration 2:
****************************************************************
There was the system
root@cubietruck:/# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
gnome-software gnome-software-common linux-generic linux-headers-generic
linux-image-generic snapd ubuntu-core-launcher
The following packages will be upgraded:
accountsservice apparmor apport apport-gtk appstream apt apt-transport-https
apt-utils
archdetect-deb base-files bind9-host binutils bsdutils casper console-setup
console-setup-linux cpp-5 cups-browsed cups-filters cups-filters-core-drivers
dbus
dbus-x11 desktop-file-utils distro-info-data dnsutils file-roller firefox
firefox-locale-en fontconfig fontconfig-config fonts-opensymbol fuse fwupd
gcc-5
gcc-5-base ghostscript ghostscript-x gir1.2-appindicator3-0.1
gir1.2-gdkpixbuf-2.0
gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-gtk-3.0
gir1.2-javascriptcoregtk-4.0 gir1.2-webkit2-4.0 gnome-calculator gnome-sudoku
gnupg gpgv
grub-common grub-pc grub-pc-bin grub2-common gstreamer1.0-libav
gstreamer1.0-plugins-base
gstreamer1.0-plugins-good gstreamer1.0-pulseaudio gstreamer1.0-x
gtk2-engines-murrine
humanity-icon-theme ifupdown im-config imagemagick imagemagick-6.q16
imagemagick-common
indicator-application init init-system-helpers initramfs-tools
initramfs-tools-bin
initramfs-tools-core isc-dhcp-client isc-dhcp-common kbd
keyboard-configuration
klibc-utils kpartx kpartx-boot krb5-locales language-pack-en language-pack-fr
language-pack-gnome-en language-pack-gnome-fr language-selector-common
language-selector-gnome less libaccountsservice0 libapparmor-perl libapparmor1
libappindicator3-1 libappstream-glib8 libappstream3 libapt-inst2.0
libapt-pkg5.0
libarchive13 libasan2 libatomic1 libavcodec-ffmpeg56 libavfilter-ffmpeg5
libavformat-ffmpeg56 libavresample-ffmpeg2 libavutil-ffmpeg54 libbind9-140
libblkid1
libc-bin libc-dev-bin libc6 libc6-dbg libc6-dev libcc1-0 libcilkrts5
libcupsfilters1
libcurl3 libcurl3-gnutls libdbus-1-3 libdbusmenu-glib4 libdbusmenu-gtk3-4
libdbusmenu-gtk4 libdfu1 libdns-export162 libdns162 libdrm-amdgpu1
libdrm-intel1
libdrm-nouveau2 libdrm-radeon1 libdrm2 libegl1-mesa libevent-2.0-5 libfdisk1
libfontconfig1 libfontembed1 libfuse2 libfwupd1 libgbm1 libgcc-5-dev
libgcrypt20 libgd3
libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx
libglapi-mesa
libglib2.0-0 libglib2.0-bin libglib2.0-data libgme0 libgnutls-openssl27
libgnutls30
libgomp1 libgs9 libgs9-common libgssapi-krb5-2 libgstreamer-plugins-base1.0-0
libgstreamer-plugins-good1.0-0 libgstreamer1.0-0 libgtk-3-0 libgtk-3-bin
libgtk-3-common
libharfbuzz-icu0 libharfbuzz0b libhogweed4 libicu55 libidn11 libido3-0.1-0
libimlib2
libisc-export160 libisc160 libisccc140 libisccfg140 libitm1
libjavascriptcoregtk-4.0-18
libk5crypto3 libklibc libkrb5-3 libkrb5support0 liblightdm-gobject-1-0
libllvm3.8
liblwres141 libmagickcore-6.q16-2 libmagickcore-6.q16-2-extra
libmagickwand-6.q16-2
libmount1 libmpx0 libnautilus-extension1a libnettle6 libnm-glib-vpn1
libnm-glib4
libnm-gtk-common libnm-gtk0 libnm-util2 libnm0 libnma-common libnma0 libnss3
libnss3-1d
libnss3-nssdb libp11-kit0 libpam-systemd libpcsclite1 libpoppler-glib8
libpoppler58
libpostproc-ffmpeg53 libprocps4 libpulse-mainloop-glib0 libpulse0 libpulsedsp
libpurple-bin libpurple0 libpython2.7 libpython2.7-minimal libpython2.7-stdlib
libpython3.5 libpython3.5-minimal libpython3.5-stdlib libquadmath0
libreoffice-base-core
libreoffice-calc libreoffice-common libreoffice-core libreoffice-gtk
libreoffice-math
libreoffice-style-elementary libreoffice-style-galaxy libreoffice-writer
libsmartcols1
libsmbclient libssl1.0.0 libstdc++6 libswresample-ffmpeg1 libswscale-ffmpeg3
libsystemd0
libthunarx-2-0 libtiff5 libubsan0 libudev1 libuuid1 libwayland-egl1-mesa
libwbclient0
libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-37-gtk2 libwhoopsie0 libxatracker2
libxml2 libxpm4
lightdm linux-firmware linux-libc-dev locales mesa-vdpau-drivers mount
multiarch-support
nano network-manager network-manager-gnome ntfs-3g openssh-client openssl
os-prober
p11-kit p11-kit-modules pidgin pidgin-data poppler-utils procps pulseaudio
pulseaudio-module-x11 pulseaudio-utils python-crypto python-samba python2.7
python2.7-minimal python3-apport python3-distupgrade python3-pil
python3-problem-report
python3-software-properties python3-uno python3-update-manager python3.5
python3.5-minimal resolvconf samba-common samba-common-bin samba-libs
software-properties-common software-properties-gtk sudo systemd systemd-sysv
tar tcpdump
thunar thunar-data thunderbird tzdata ubiquity ubiquity-casper
ubiquity-frontend-gtk
ubiquity-ubuntu-artwork ubuntu-drivers-common ubuntu-mono
ubuntu-release-upgrader-core
ubuntu-release-upgrader-gtk udev unattended-upgrades uno-libs3 update-manager
update-manager-core update-notifier update-notifier-common ure util-linux
uuid-runtime
vim-common vim-tiny whoopsie xdg-utils xserver-common xserver-xorg-core
xserver-xorg-video-amdgpu xserver-xorg-video-intel
320 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
Need to get 0 B/381 MB of archives.
After this operation, 54.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 170032 files and directories currently installed.)
Preparing to unpack .../base-files_9.4ubuntu4.4_i386.deb ...
Unpacking base-files (9.4ubuntu4.4) over (9.4ubuntu4.2) ...
Processing triggers for plymouth-theme-ubuntu-text (0.9.2-3ubuntu13.1) ...
qemu: Unsupported syscall: 355
update-initramfs: deferring update (trigger activated)
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for install-info (6.1.0.dfsg.1-5) ...
Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-31-generic
cryptsetup: WARNING: could not determine root device from /etc/fstab
/sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
Setting up base-files (9.4ubuntu4.4) ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Installing new version of config file /etc/lsb-release ...
Processing triggers for plymouth-theme-ubuntu-text (0.9.2-3ubuntu13.1) ...
qemu: Unsupported syscall: 355
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-31-generic
cryptsetup: WARNING: could not determine root device from /etc/fstab
/sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
(Reading database ... 170032 files and directories currently installed.)
Preparing to unpack .../bsdutils_1%3a2.27.1-6ubuntu3.2_i386.deb ...
Unpacking bsdutils (1:2.27.1-6ubuntu3.2) over (1:2.27.1-6ubuntu3.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up bsdutils (1:2.27.1-6ubuntu3.2) ...
(Reading database ... 170032 files and directories currently installed.)
Preparing to unpack .../init-system-helpers_1.29ubuntu4_all.deb ...
Unpacking init-system-helpers (1.29ubuntu4) over (1.29ubuntu2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up init-system-helpers (1.29ubuntu4) ...
(Reading database ... 170032 files and directories currently installed.)
Preparing to unpack .../init_1.29ubuntu4_i386.deb ...
Unpacking init (1.29ubuntu4) over (1.29ubuntu2) ...
Setting up init (1.29ubuntu4) ...
(Reading database ... 170032 files and directories currently installed.)
Preparing to unpack .../util-linux_2.27.1-6ubuntu3.2_i386.deb ...
Unpacking util-linux (2.27.1-6ubuntu3.2) over (2.27.1-6ubuntu3.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up util-linux (2.27.1-6ubuntu3.2) ...
Processing triggers for systemd (229-4ubuntu7) ...
(Reading database ... 170032 files and directories currently installed.)
Preparing to unpack .../mount_2.27.1-6ubuntu3.2_i386.deb ...
Unpacking mount (2.27.1-6ubuntu3.2) over (2.27.1-6ubuntu3.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up mount (2.27.1-6ubuntu3.2) ...
(Reading database ... 170032 files and directories currently installed.)
Preparing to unpack .../tar_1.28-2.1ubuntu0.1_i386.deb ...
Unpacking tar (1.28-2.1ubuntu0.1) over (1.28-2.1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up tar (1.28-2.1ubuntu0.1) ...
(Reading database ... 170032 files and directories currently installed.)
Preparing to unpack .../libc6-dev_2.23-0ubuntu5_i386.deb ...
Unpacking libc6-dev:i386 (2.23-0ubuntu5) over (2.23-0ubuntu3) ...
Preparing to unpack .../libc-dev-bin_2.23-0ubuntu5_i386.deb ...
Unpacking libc-dev-bin (2.23-0ubuntu5) over (2.23-0ubuntu3) ...
Preparing to unpack .../linux-libc-dev_4.4.0-67.88_i386.deb ...
Unpacking linux-libc-dev:i386 (4.4.0-67.88) over (4.4.0-31.50) ...
Preparing to unpack .../libc6-dbg_2.23-0ubuntu5_i386.deb ...
Unpacking libc6-dbg:i386 (2.23-0ubuntu5) over (2.23-0ubuntu3) ...
Preparing to unpack .../libc6_2.23-0ubuntu5_i386.deb ...
Unpacking libc6:i386 (2.23-0ubuntu5) over (2.23-0ubuntu3) ...
Setting up libc6:i386 (2.23-0ubuntu5) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
/sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
/sbin/ldconfig.real: 1: /sbin/ldconfig.real: Syntax error: "(" unexpected
dpkg: error processing package libc-bin (--configure):
subprocess installed post-installation script returned error exit status 2
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@cubietruck:/#
There same bug still exists. Because it will take to much time to do all
attemps for repairation
for verifying its installing punch to host-system from guest system.
--- End Message ---
--- End Message ---
--- Begin Message ---
Version: 1:2.11+dfsg-1
It looks like this bug isn't present in current version of qemu,
so closing this bugreport. If you think it is incorrect, please
reopen it or file a new bugreport.
Thanks!
/mjt
--- End Message ---