sudo debootstrap lucid /media/documents/lucid/
W: Failure trying to run: chroot /media/documents/lucid dpkg --force-depends --install /var/cache/apt/archives/base-files_5.0.0ubuntu20_amd64.deb /var/cache/apt/archives/base-passwd_3.5.22_amd64.deb
sudo debootstrap lucid /media/documents/lucid/
W: Failure trying to run: chroot /media/documents/lucid dpkg --force-depends --install /var/cache/apt/archives/base-files_5.0.0ubuntu20_amd64.deb /var/cache/apt/archives/base-passwd_3.5.22_amd64.deb
Same error while:nadir wrote:different path
|
without lucid
works?
sudo debootstrap sid /media/documents/chroot-test/
W: Failure trying to run: chroot /media/documents/chroot-test dpkg --force-depends --install /var/cache/apt/archives/base-files_6.8_amd64.deb /var/cache/apt/archives/base-passwd_3.5.24_amd64.deb
sudo chroot /media/documents/chroot-test/
dpkg --force-depends --install /var/cache/apt/archives/base-files_6.8_amd64.deb /var/cache/apt/archives/base-passwd_3.5.24_amd64.deb
"/var/lib/dpkg/status" contentsdpkg: warning: parsing file '/var/lib/dpkg/status' near line 28 package 'dpkg':
missing description
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 28 package 'dpkg':
missing maintainer
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 28 package 'dpkg':
missing architecture
dpkg: regarding .../base-files_6.8_amd64.deb containing base-files, pre-dependency problem:
base-files pre-depends on awk
awk is not installed.
dpkg: warning: ignoring pre-dependency problem!
(Reading database ... 38 files and directories currently installed.)
Unpacking base-files (from .../base-files_6.8_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/base-files_6.8_amd64.deb (--install):
symbolic link '/usr/share/common-licenses/LGPL' size has changed from 20 to 6
Preparing to replace base-passwd 3.5.24 (using .../base-passwd_3.5.24_amd64.deb) ...
Unpacking replacement base-passwd ...
dpkg: base-passwd: dependency problems, but configuring anyway as you requested:
base-passwd depends on libc6 (>= 2.2.5); however:
Package libc6 is not installed.
Setting up base-passwd (3.5.24) ...
Errors were encountered while processing:
/var/cache/apt/archives/base-files_6.8_amd64.deb
cat /var/lib/dpkg/status
Package: base-files
Status: install ok not-installed
Priority: required
Section: admin
Architecture: i386
Package: base-passwd
Essential: yes
Status: install ok installed
Priority: required
Section: admin
Installed-Size: 162
Maintainer: Colin Watson <cjwatson@debian.org>
Architecture: i386
Multi-Arch: foreign
Version: 3.5.24
Replaces: base
Depends: libc6 (>= 2.1)
Description: Debian base system master password and group files
These are the canonical master copies of the user database files
(/etc/passwd and /etc/group), containing the Debian-allocated user and
group IDs. The update-passwd tool is provided to keep the system databases
synchronized with these master files.
Package: dpkg
Status: install ok installed
Version: 1.16.3
Code: Select all
#schroot -l
www wrote:Please post the output of the following:
Code: Select all
#schroot -l
Code: Select all
$ schroot -l
chroot:default
chroot:sid
chroot:unstable
Code: Select all
Package: base-files
Essential: yes
Status: install ok installed
Priority: required
Section: admin
Installed-Size: 394
Maintainer: Santiago Vila <sanvila@debian.org>
Architecture: amd64
Version: 6.0squeeze5
Replaces: base, dpkg (<= 1.15.0), miscutils
Provides: base
Pre-Depends: awk
Conffiles:
/etc/debian_version 1c683b3498356ccfa171f1bb1aeaee54
/etc/dpkg/origins/debian 731423fa8ba067262f8ef37882d1e742
/etc/host.conf 4eb63731c9f5e30903ac4fc07a7fe3d6
/etc/issue 174fd67875b42f41746ea8ae50f9b4b7
/etc/issue.net d31a0dfcf85bef9935a105b361a9d47b
Description: Debian base system miscellaneous files
This package contains the basic filesystem hierarchy of a Debian system, and
several important miscellaneous files, such as /etc/debian_version,
/etc/host.conf, /etc/issue, /etc/motd, /etc/profile, /etc/nsswitch.conf,
and others, and the text of several common licenses in use on Debian systems.
...
Package: dpkg
Essential: yes
Status: install ok installed
Priority: required
Section: admin
Installed-Size: 6984
Origin: debian
Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org>
Bugs: debbugs://bugs.debian.org
Architecture: amd64
Version: 1.15.8.12
Pre-Depends: libbz2-1.0, libc6 (>= 2.6), libselinux1 (>= 1.32), zlib1g (>= 1:1.1.4), coreutils (>= 5.93-1), xz-utils
Suggests: apt
Breaks: apt (<< 0.7.7), aptitude (<< 0.4.7-1), dpkg-dev (<< 1.15.8), libdpkg-perl (<< 1.15.8), pinfo (<< 0.6.9-3.1), tkinfo (<< 2.8-3.1)
Conffiles:
/etc/dpkg/dpkg.cfg f4413ffb515f8f753624ae3bb365b81b
/etc/alternatives/README 69c4ba7f08363e998e0f2e244a04f881
/etc/cron.daily/dpkg b6b8dc21210ea50db7cc4636f521758f
/etc/logrotate.d/dpkg 782ea5ae536f67ff51dc8c3e2eeb4cf9
Description: Debian package management system
This package provides the low-level infrastructure for handling the
installation and removal of Debian software packages.
.
For Debian package development tools, install dpkg-dev.
Homepage: http://wiki.debian.org/Teams/Dpkg
Code: Select all
Package: base-files
Status: install ok not-installed
Priority: required
Section: admin
Architecture: amd64
Package: dpkg
Status: install ok installed
Version: 1.16.3
www wrote:You need to reconfigure as chroot parameters are only set for Sid.
You are currently running lucid.
sent via mobile ..
www wrote:Run the following command
mk-sbuild --arch i386 --vg=schroot-vol --distro=debian wheezy
mk-sbuild is the command
"--arch i386" is the architecture, either i386 or amd64(for x86_64)
"--vg=schroot-vol" is the volume group (remember the LVM volume requirements above?) thats the target storage area.
"--distro=debian" is either debian or ubuntu, default to ubuntu, so if you want to use debian, this must be set as the example shows.
"wheezy" is the actual version, which can be any debian/ubuntu version available from the official repositories (supported by the tool also ofc), like debian: lenny, squeeze, wheezy, testing and sid
sent via mobile ..
Have you read http://www.debian.org/releases/stable/i386/apds03.html ?haoyihuan wrote:sudo chroot /media/documents/chroot-test/dpkg --force-depends --install /var/cache/apt/archives/base-files_6.8_amd64.deb /var/cache/apt/archives/base-passwd_3.5.24_amd64.deb"/var/lib/dpkg/status" contentsdpkg: warning: parsing file '/var/lib/dpkg/status' near line 28 package 'dpkg':
missing description
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 28 package 'dpkg':
missing maintainer
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 28 package 'dpkg':
missing architecture
dpkg: regarding .../base-files_6.8_amd64.deb containing base-files, pre-dependency problem:
base-files pre-depends on awk
awk is not installed.
(snip)
base-passwd depends on libc6 (>= 2.2.5); however:
Package libc6 is not installed.
Setting up base-passwd (3.5.24) ...
Errors were encountered while processing:
/var/cache/apt/archives/base-files_6.8_amd64.debcat /var/lib/dpkg/statusPackage: base-files
(snip)
Depends: libc6 (>= 2.1)
I booted debian squeeze installed in an partition in an internal HDD.In this section, $ symbolizes a command to be entered in the user's current system, while # refers to a command entered in the Debian chroot.
Maybe.haoyihuan wrote:I didnot use a partition but a directory (/media/documents/chroot-test, with /dev/sda8 mounted on /media/documents, and chroot-test is a directory on /dev/sda8).
Becuase of the error, there isn't apt-get and aptitude.
Dose it cause my debootstrap not work?
How did you install debootstrap?kiyop wrote: Do you understand www's post?www wrote:You need to reconfigure as chroot parameters are only set for Sid.
You are currently running lucid.
sent via mobile ..www wrote:Run the following command
mk-sbuild --arch i386 --vg=schroot-vol --distro=debian wheezy
mk-sbuild is the command
"--arch i386" is the architecture, either i386 or amd64(for x86_64)
"--vg=schroot-vol" is the volume group (remember the LVM volume requirements above?) thats the target storage area.
"--distro=debian" is either debian or ubuntu, default to ubuntu, so if you want to use debian, this must be set as the example shows.
"wheezy" is the actual version, which can be any debian/ubuntu version available from the official repositories (supported by the tool also ofc), like debian: lenny, squeeze, wheezy, testing and sid
sent via mobile ..
I am not sure, but maybe the following page shows the bugs of debootstrap of unstable.haoyihuan wrote:I installed debootstrap with apt-get install. Before install it, I have upgraded.
When I install debootstrap before upgraded, it works well.
Is it a bug?
Yes to all.kiyop wrote: Have you updated the packages often?
How about using debootstrap on stable (squeeze)?
I succeeded in installing sid by using debootstrap on squeeze (on i386 machine).haoyihuan wrote:My host:debian squeeze amd64
My chroot:debian sid amd64
Using debootstrap and/or chroot to NTFS partition (or to directory in NTFS partition) in order to install debian on it !!??haoyihuan wrote:My previous directory /media/documents is a ntfs partition. Whether debootstrap sid on /media/documents/sid or debootstrap sid /media/documents, it can not work.
And I debootstrap sid on an ext4 partition. It can run well.
Does NTFS filesystem breake it ?