[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apt-cross does not install cross-build packages in chroot



I try to use an emdebian tools in new and clean distr (sid) using
chroot.
I used a debootstrap with variant=buildd to build base system.
After that I installed a emdebian tools in chroot.
The I installed binutils-arm-linux-gnu cpp-4.3-arm-linux-gnu g
++-4.3-arm-linux-gnu gcc-4.3-arm-linux-gnu-base gcc-4.3-arm-linux-gnu.

I specify an architecture using dpkg-reconfigure dpkg-cross and selected
arm.

Then I tried to install a package using apt-cross.
I know that there is a zlib1g-arm-cross package and I installed it at
normail system (not chroot). 

But when I do in chroot:

# apt-cross -u -v       
Unable to determine apt-cache policy for Debian main! - using unstable.
at /usr/bin/apt-cross line 156
Unable to read /root/.apt-cross/preferences.d/ - FileExists (2: No such
file or directory)
Updating arm cache using sources.unstable
debug: recreating /root/.apt-cross/sources.unstable
Updating apt-cache for arm
Hit http://www.emdebian.org unstable Release.gpg
Hit http://www.emdebian.org unstable Release
Hit http://ftp.de.debian.org unstable Release.gpg
Hit http://ftp.de.debian.org unstable Release
Unable to read /root/.apt-cross/preferences.d/ - FileExists (2: No such
file or directory)

# apt-cross -i -v zlib1g
Unable to determine apt-cache policy for Debian main! - using unstable.
at /usr/bin/apt-cross line 156
Unable to read /root/.apt-cross/preferences.d/ - FileExists (2: No such
file or directory)
apt-cross is unable to locate package: 'zlib1g' - skipping
0 to be upgraded, 0 to be newly installed.

It can't find it as well:

# apt-cross -s -v zlib1g
Unable to determine apt-cache policy for Debian main! - using unstable.
at /usr/bin/apt-cross line 156
Unable to read /root/.apt-cross/preferences.d/ - FileExists (2: No such
file or directory)
Unable to read /root/.apt-cross/preferences.d/ - FileExists (2: No such
file or directory)
Checking for zlib1g-arm-cross in apt cache.
Checking for zlib1g-arm-cross in dpkg lists.
apt-cross: Unable to find zlib1g-arm-cross.
W: Unable to locate package zlib1g-arm-cross
Package: zlib1g-arm-cross
Architecture: all
Cross-Architecture: arm
Source: zlib1g-arm-cross


at the same time at normal system:

# apt-cross -s -v zlib1g
Checking for zlib1g-arm-cross in apt cache.
Checking for zlib1g-arm-cross in dpkg lists.
Package: zlib1g-arm-cross
Status: install ok installed
Priority: extra
Section: devel
Maintainer: Mark Brown <broonie@debian.org>
Architecture: all
Source: zlib
Version: 1:1.2.3.3.dfsg-12
Provides: zlib1g-arm-dcv1, libz1-arm-cross
Depends: libc6-arm-cross (>= 2.7-1)
Description: compression library - runtime (for cross-compiling)
 This package was generated by dpkg-cross for cross compiling.
 .
 zlib is a library implementing the deflate compression method found
 in gzip and PKZIP.  This package includes the shared library.
W: Unable to locate package zlib1g-arm-cross
Package: zlib1g-arm-cross
Architecture: all
Cross-Architecture: arm
Source: zlib1g-arm-cross


How to make apt-cross to install packages from chroot ? what do I do
wrong ?


Reply to: