为Cubieboard2构建自己的的Debian Linux的步骤(3)(分色排版)下载并配置debian系统

本文详细介绍如何为Cubieboard2构建Debian Linux基础系统的过程,包括下载并配置系统、安装核心软件包等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Cubieboard2构建自己的的Debian Linux的步骤(3)

——下载并配置debian系统

 

soloforce汇编整理

2013年12月28 日

 

大文实验室/大文哥

壹捌陆捌零陆捌捌陆捌贰

wb4916 AT qq.com

完成时间:2017/6/7 13:47

 

1.3 下载并配置Debian 基础系统

 

 

Xshell 5 (Build 0964)

Copyright (c) 2002-2016 NetSarang Computer, Inc. All rights reserved.

 

Type `help' to learn how to use Xshell prompt.

[c:\~]$

 

Connecting to 192.168.0.8:22...

Connection established.

To escape to local shell, press 'Ctrl+Alt+]'.

 

Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.13.0-24-generic x86_64)

 

 * Documentation:  https://help.ubuntu.com/

 

Last login: Tue Jun  6 20:38:51 2017 from 192.168.0.136

rootroot@cm-System-Product-Name:~$ su

密码:

root@cm-System-Product-Name:/home/rootroot#

root@cm-System-Product-Name:/home/rootroot# mkdir cubieboard2

root@cm-System-Product-Name:/home/rootroot#

root@cm-System-Product-Name:/home/rootroot# cd cubieboard2/

root@cm-System-Product-Name:/home/rootroot/cubieboard2#

root@cm-System-Product-Name:/home/rootroot/cubieboard2# mkdir chroot-armhf

root@cm-System-Product-Name:/home/rootroot/cubieboard2# cd chroot-armhf/

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# debootstrap --foreign --arch armhf wheezy .

I: Keyring file not available at /usr/share/keyrings/debian-archive-keyring.gpg; switching to https mirror https://mirrors.kernel.org/debian

I: Retrieving Release

I: Retrieving Packages

I: Validating Packages

I: Resolving dependencies of required packages...

I: Resolving dependencies of base packages...

I: Found additional required dependencies: insserv libbz2-1.0 libdb5.1 libsemanage-common libsemanage1 libslang2 libustr-1.0-1

I: Found additional base dependencies: libcurl3-gnutls libept1.4.12 libgcrypt11 libgnutls26 libgpg-error0 libgssapi-krb5-2 libidn11 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libnfnetlink0 libp11-kit0 librtmp0 libsasl2-2 libsqlite3-0 libssh2-1 libtasn1-3 libxapian22 openssl

I: Checking component main on https://mirrors.kernel.org/debian...

I: Retrieving libacl1 2.2.51-8

I: Validating libacl1 2.2.51-8

I: Retrieving adduser 3.113+nmu3

I: Validating adduser 3.113+nmu3

I: Retrieving apt 0.9.7.9+deb7u7

I: Validating apt 0.9.7.9+deb7u7

I: Retrieving apt-transport-https 0.9.7.9+deb7u7

I: Validating apt-transport-https 0.9.7.9+deb7u7

I: Retrieving apt-utils 0.9.7.9+deb7u7

I: Validating apt-utils 0.9.7.9+deb7u7

I: Retrieving libapt-inst1.5 0.9.7.9+deb7u7

I: Validating libapt-inst1.5 0.9.7.9+deb7u7

I: Retrieving libapt-pkg4.12 0.9.7.9+deb7u7

I: Validating libapt-pkg4.12 0.9.7.9+deb7u7

I: Retrieving aptitude 0.6.8.2-1

I: Validating aptitude 0.6.8.2-1

I: Retrieving aptitude-common 0.6.8.2-1

I: Validating aptitude-common 0.6.8.2-1

I: Retrieving libattr1 1%3a2.4.46-8

I: Validating libattr1 1%3a2.4.46-8

I: Retrieving base-files 7.1wheezy11

I: Validating base-files 7.1wheezy11

I: Retrieving base-passwd 3.5.26

I: Validating base-passwd 3.5.26

I: Retrieving bash 4.2+dfsg-0.1+deb7u3

I: Validating bash 4.2+dfsg-0.1+deb7u3

I: Retrieving libboost-iostreams1.49.0 1.49.0-3.2

I: Validating libboost-iostreams1.49.0 1.49.0-3.2

I: Retrieving bsdmainutils 9.0.3

I: Validating bsdmainutils 9.0.3

I: Retrieving libbz2-1.0 1.0.6-4

I: Validating libbz2-1.0 1.0.6-4

I: Retrieving ca-certificates 20130119+deb7u1

I: Validating ca-certificates 20130119+deb7u1

I: Retrieving coreutils 8.13-3.5

I: Validating coreutils 8.13-3.5

I: Retrieving cpio 2.11+dfsg-0.1+deb7u2

I: Validating cpio 2.11+dfsg-0.1+deb7u2

I: Retrieving cron 3.0pl1-124

I: Validating cron 3.0pl1-124

I: Retrieving libcurl3-gnutls 7.26.0-1+wheezy13

I: Validating libcurl3-gnutls 7.26.0-1+wheezy13

I: Retrieving libcwidget3 0.5.16-3.4

I: Validating libcwidget3 0.5.16-3.4

I: Retrieving libsasl2-2 2.1.25.dfsg1-6+deb7u1

I: Validating libsasl2-2 2.1.25.dfsg1-6+deb7u1

I: Retrieving dash 0.5.7-3

I: Validating dash 0.5.7-3

I: Retrieving libdb5.1 5.1.29-5

I: Validating libdb5.1 5.1.29-5

I: Retrieving debconf 1.5.49

I: Validating debconf 1.5.49

I: Retrieving debconf-i18n 1.5.49

I: Validating debconf-i18n 1.5.49

I: Retrieving debian-archive-keyring 2014.3~deb7u1

I: Validating debian-archive-keyring 2014.3~deb7u1

I: Retrieving debianutils 4.3.2

I: Validating debianutils 4.3.2

I: Retrieving diffutils 1%3a3.2-6

I: Validating diffutils 1%3a3.2-6

I: Retrieving dpkg 1.16.18

I: Validating dpkg 1.16.18

I: Retrieving e2fslibs 1.42.5-1.1+deb7u1

I: Validating e2fslibs 1.42.5-1.1+deb7u1

I: Retrieving e2fsprogs 1.42.5-1.1+deb7u1

I: Validating e2fsprogs 1.42.5-1.1+deb7u1

I: Retrieving libcomerr2 1.42.5-1.1+deb7u1

I: Validating libcomerr2 1.42.5-1.1+deb7u1

I: Retrieving libss2 1.42.5-1.1+deb7u1

I: Validating libss2 1.42.5-1.1+deb7u1

I: Retrieving libc-bin 2.13-38+deb7u10

I: Validating libc-bin 2.13-38+deb7u10

I: Retrieving libc6 2.13-38+deb7u10

I: Validating libc6 2.13-38+deb7u10

I: Retrieving multiarch-support 2.13-38+deb7u10

I: Validating multiarch-support 2.13-38+deb7u10

I: Retrieving findutils 4.4.2-4

I: Validating findutils 4.4.2-4

I: Retrieving gcc-4.7-base 4.7.2-5

I: Validating gcc-4.7-base 4.7.2-5

I: Retrieving libgcc1 1%3a4.7.2-5

I: Validating libgcc1 1%3a4.7.2-5

I: Retrieving libstdc++6 4.7.2-5

I: Validating libstdc++6 4.7.2-5

I: Retrieving libgdbm3 1.8.3-11

I: Validating libgdbm3 1.8.3-11

I: Retrieving gnupg 1.4.12-7+deb7u7

I: Validating gnupg 1.4.12-7+deb7u7

I: Retrieving gpgv 1.4.12-7+deb7u7

I: Validating gpgv 1.4.12-7+deb7u7

I: Retrieving libgnutls26 2.12.20-8+deb7u5

I: Validating libgnutls26 2.12.20-8+deb7u5

I: Retrieving grep 2.12-2

I: Validating grep 2.12-2

I: Retrieving groff-base 1.21-9

I: Validating groff-base 1.21-9

I: Retrieving gzip 1.5-1.1

I: Validating gzip 1.5-1.1

I: Retrieving hostname 3.11

I: Validating hostname 3.11

I: Retrieving ifupdown 0.7.8

I: Validating ifupdown 0.7.8

I: Retrieving insserv 1.14.0-5

I: Validating insserv 1.14.0-5

I: Retrieving iproute 20120521-3+b3

I: Validating iproute 20120521-3+b3

I: Retrieving iptables 1.4.14-3.1

I: Validating iptables 1.4.14-3.1

I: Retrieving iputils-ping 3%3a20101006-1+b2

I: Validating iputils-ping 3%3a20101006-1+b2

I: Retrieving isc-dhcp-client 4.2.2.dfsg.1-5+deb70u8

I: Validating isc-dhcp-client 4.2.2.dfsg.1-5+deb70u8

I: Retrieving isc-dhcp-common 4.2.2.dfsg.1-5+deb70u8

I: Validating isc-dhcp-common 4.2.2.dfsg.1-5+deb70u8

I: Retrieving libkeyutils1 1.5.5-3+deb7u1

I: Validating libkeyutils1 1.5.5-3+deb7u1

I: Retrieving kmod 9-3

I: Validating kmod 9-3

I: Retrieving libkmod2 9-3

I: Validating libkmod2 9-3

I: Retrieving libgssapi-krb5-2 1.10.1+dfsg-5+deb7u7

I: Validating libgssapi-krb5-2 1.10.1+dfsg-5+deb7u7

I: Retrieving libk5crypto3 1.10.1+dfsg-5+deb7u7

I: Validating libk5crypto3 1.10.1+dfsg-5+deb7u7

I: Retrieving libkrb5-3 1.10.1+dfsg-5+deb7u7

I: Validating libkrb5-3 1.10.1+dfsg-5+deb7u7

I: Retrieving libkrb5support0 1.10.1+dfsg-5+deb7u7

I: Validating libkrb5support0 1.10.1+dfsg-5+deb7u7

I: Retrieving libept1.4.12 1.0.9

I: Validating libept1.4.12 1.0.9

I: Retrieving libgcrypt11 1.5.0-5+deb7u4

I: Validating libgcrypt11 1.5.0-5+deb7u4

I: Retrieving libgpg-error0 1.10-3.1

I: Validating libgpg-error0 1.10-3.1

I: Retrieving libidn11 1.25-2

I: Validating libidn11 1.25-2

I: Retrieving liblocale-gettext-perl 1.05-7+b3

I: Validating liblocale-gettext-perl 1.05-7+b3

I: Retrieving libnfnetlink0 1.0.0-1.1

I: Validating libnfnetlink0 1.0.0-1.1

I: Retrieving libpipeline1 1.2.1-1

I: Validating libpipeline1 1.2.1-1

I: Retrieving libselinux1 2.1.9-5

I: Validating libselinux1 2.1.9-5

I: Retrieving libsemanage-common 2.1.6-6

I: Validating libsemanage-common 2.1.6-6

I: Retrieving libsemanage1 2.1.6-6

I: Validating libsemanage1 2.1.6-6

I: Retrieving libsepol1 2.1.4-3

I: Validating libsepol1 2.1.4-3

I: Retrieving libsigc++-2.0-0c2a 2.2.10-0.2

I: Validating libsigc++-2.0-0c2a 2.2.10-0.2

I: Retrieving libssh2-1 1.4.2-1.1+deb7u2

I: Validating libssh2-1 1.4.2-1.1+deb7u2

I: Retrieving libtasn1-3 2.13-2+deb7u2

I: Validating libtasn1-3 2.13-2+deb7u2

I: Retrieving libtext-charwidth-perl 0.04-7+b2

I: Validating libtext-charwidth-perl 0.04-7+b2

I: Retrieving libtext-iconv-perl 1.7-5

I: Validating libtext-iconv-perl 1.7-5

I: Retrieving libtext-wrapi18n-perl 0.06-7

I: Validating libtext-wrapi18n-perl 0.06-7

I: Retrieving libusb-0.1-4 2%3a0.1.12-20+nmu1

I: Validating libusb-0.1-4 2%3a0.1.12-20+nmu1

I: Retrieving logrotate 3.8.1-4

I: Validating logrotate 3.8.1-4

I: Retrieving lsb-base 4.1+Debian8+deb7u1

I: Validating lsb-base 4.1+Debian8+deb7u1

I: Retrieving man-db 2.6.2-1

I: Validating man-db 2.6.2-1

I: Retrieving manpages 3.44-1

I: Validating manpages 3.44-1

I: Retrieving mawk 1.3.3-17

I: Validating mawk 1.3.3-17

I: Retrieving nano 2.2.6-1+b2

I: Validating nano 2.2.6-1+b2

I: Retrieving libncurses5 5.9-10

I: Validating libncurses5 5.9-10

I: Retrieving libncursesw5 5.9-10

I: Validating libncursesw5 5.9-10

I: Retrieving libtinfo5 5.9-10

I: Validating libtinfo5 5.9-10

I: Retrieving ncurses-base 5.9-10

I: Validating ncurses-base 5.9-10

I: Retrieving ncurses-bin 5.9-10

I: Validating ncurses-bin 5.9-10

I: Retrieving net-tools 1.60-24.2

I: Validating net-tools 1.60-24.2

I: Retrieving netbase 5.0

I: Validating netbase 5.0

I: Retrieving netcat-traditional 1.10-40

I: Validating netcat-traditional 1.10-40

I: Retrieving libnewt0.52 0.52.14-11.1

I: Validating libnewt0.52 0.52.14-11.1

I: Retrieving whiptail 0.52.14-11.1

I: Validating whiptail 0.52.14-11.1

I: Retrieving libldap-2.4-2 2.4.31-2+deb7u2

I: Validating libldap-2.4-2 2.4.31-2+deb7u2

I: Retrieving libssl1.0.0 1.0.1e-2+deb7u20

I: Validating libssl1.0.0 1.0.1e-2+deb7u20

I: Retrieving openssl 1.0.1e-2+deb7u20

I: Validating openssl 1.0.1e-2+deb7u20

I: Retrieving libp11-kit0 0.12-3

I: Validating libp11-kit0 0.12-3

I: Retrieving libpam-modules 1.1.3-7.1

I: Validating libpam-modules 1.1.3-7.1

I: Retrieving libpam-modules-bin 1.1.3-7.1

I: Validating libpam-modules-bin 1.1.3-7.1

I: Retrieving libpam-runtime 1.1.3-7.1

I: Validating libpam-runtime 1.1.3-7.1

I: Retrieving libpam0g 1.1.3-7.1

I: Validating libpam0g 1.1.3-7.1

I: Retrieving perl-base 5.14.2-21+deb7u3

I: Validating perl-base 5.14.2-21+deb7u3

I: Retrieving libpopt0 1.16-7

I: Validating libpopt0 1.16-7

I: Retrieving libprocps0 1%3a3.3.3-3

I: Validating libprocps0 1%3a3.3.3-3

I: Retrieving procps 1%3a3.3.3-3

I: Validating procps 1%3a3.3.3-3

I: Retrieving libreadline6 6.2+dfsg-0.1

I: Validating libreadline6 6.2+dfsg-0.1

I: Retrieving readline-common 6.2+dfsg-0.1

I: Validating readline-common 6.2+dfsg-0.1

I: Retrieving rsyslog 5.8.11-3+deb7u2

I: Validating rsyslog 5.8.11-3+deb7u2

I: Retrieving librtmp0 2.4+20111222.git4e06e21-1

I: Validating librtmp0 2.4+20111222.git4e06e21-1

I: Retrieving sed 4.2.1-10

I: Validating sed 4.2.1-10

I: Retrieving sensible-utils 0.0.7

I: Validating sensible-utils 0.0.7

I: Retrieving login 1%3a4.1.5.1-1

I: Validating login 1%3a4.1.5.1-1

I: Retrieving passwd 1%3a4.1.5.1-1

I: Validating passwd 1%3a4.1.5.1-1

I: Retrieving libslang2 2.2.4-15

I: Validating libslang2 2.2.4-15

I: Retrieving libsqlite3-0 3.7.13-1+deb7u2

I: Validating libsqlite3-0 3.7.13-1+deb7u2

I: Retrieving initscripts 2.88dsf-41+deb7u1

I: Validating initscripts 2.88dsf-41+deb7u1

I: Retrieving sysv-rc 2.88dsf-41+deb7u1

I: Validating sysv-rc 2.88dsf-41+deb7u1

I: Retrieving sysvinit 2.88dsf-41+deb7u1

I: Validating sysvinit 2.88dsf-41+deb7u1

I: Retrieving sysvinit-utils 2.88dsf-41+deb7u1

I: Validating sysvinit-utils 2.88dsf-41+deb7u1

I: Retrieving tar 1.26+dfsg-0.1

I: Validating tar 1.26+dfsg-0.1

I: Retrieving tasksel 3.14.1

I: Validating tasksel 3.14.1

I: Retrieving tasksel-data 3.14.1

I: Validating tasksel-data 3.14.1

I: Retrieving info 4.13a.dfsg.1-10

I: Validating info 4.13a.dfsg.1-10

I: Retrieving install-info 4.13a.dfsg.1-10

I: Validating install-info 4.13a.dfsg.1-10

I: Retrieving traceroute 1%3a2.0.18-3

I: Validating traceroute 1%3a2.0.18-3

I: Retrieving tzdata 2016d-0+deb7u1

I: Validating tzdata 2016d-0+deb7u1

I: Retrieving libudev0 175-7.2

I: Validating libudev0 175-7.2

I: Retrieving udev 175-7.2

I: Validating udev 175-7.2

I: Retrieving libustr-1.0-1 1.0.4-3

I: Validating libustr-1.0-1 1.0.4-3

I: Retrieving bsdutils 1%3a2.20.1-5.3

I: Validating bsdutils 1%3a2.20.1-5.3

I: Retrieving libblkid1 2.20.1-5.3

I: Validating libblkid1 2.20.1-5.3

I: Retrieving libmount1 2.20.1-5.3

I: Validating libmount1 2.20.1-5.3

I: Retrieving libuuid1 2.20.1-5.3

I: Validating libuuid1 2.20.1-5.3

I: Retrieving mount 2.20.1-5.3

I: Validating mount 2.20.1-5.3

I: Retrieving util-linux 2.20.1-5.3

I: Validating util-linux 2.20.1-5.3

I: Retrieving vim-common 2%3a7.3.547-7

I: Validating vim-common 2%3a7.3.547-7

I: Retrieving vim-tiny 2%3a7.3.547-7

I: Validating vim-tiny 2%3a7.3.547-7

I: Retrieving wget 1.13.4-3+deb7u2

I: Validating wget 1.13.4-3+deb7u2

I: Retrieving libxapian22 1.2.12-2+deb7u1

I: Validating libxapian22 1.2.12-2+deb7u1

I: Retrieving liblzma5 5.1.1alpha+20120614-2

I: Validating liblzma5 5.1.1alpha+20120614-2

I: Retrieving xz-utils 5.1.1alpha+20120614-2

I: Validating xz-utils 5.1.1alpha+20120614-2

I: Retrieving zlib1g 1%3a1.2.7.dfsg-13

I: Validating zlib1g 1%3a1.2.7.dfsg-13

I: Chosen extractor for .deb packages: dpkg-deb

I: Extracting libacl1...

I: Extracting libattr1...

I: Extracting base-files...

I: Extracting base-passwd...

I: Extracting bash...

I: Extracting libbz2-1.0...

I: Extracting coreutils...

I: Extracting dash...

I: Extracting libdb5.1...

I: Extracting debconf...

I: Extracting debconf-i18n...

I: Extracting debianutils...

I: Extracting diffutils...

I: Extracting dpkg...

I: Extracting e2fslibs...

I: Extracting e2fsprogs...

I: Extracting libcomerr2...

I: Extracting libss2...

I: Extracting libc-bin...

I: Extracting libc6...

I: Extracting multiarch-support...

I: Extracting findutils...

I: Extracting gcc-4.7-base...

I: Extracting libgcc1...

I: Extracting grep...

I: Extracting gzip...

I: Extracting hostname...

I: Extracting insserv...

I: Extracting liblocale-gettext-perl...

I: Extracting libselinux1...

I: Extracting libsemanage-common...

I: Extracting libsemanage1...

I: Extracting libsepol1...

I: Extracting libtext-charwidth-perl...

I: Extracting libtext-iconv-perl...

I: Extracting libtext-wrapi18n-perl...

I: Extracting lsb-base...

I: Extracting mawk...

I: Extracting libncurses5...

I: Extracting libtinfo5...

I: Extracting ncurses-base...

I: Extracting ncurses-bin...

I: Extracting libpam-modules...

I: Extracting libpam-modules-bin...

I: Extracting libpam-runtime...

I: Extracting libpam0g...

I: Extracting perl-base...

I: Extracting sed...

I: Extracting sensible-utils...

I: Extracting login...

I: Extracting passwd...

I: Extracting libslang2...

I: Extracting initscripts...

I: Extracting sysv-rc...

I: Extracting sysvinit...

I: Extracting sysvinit-utils...

I: Extracting tar...

I: Extracting tzdata...

I: Extracting libustr-1.0-1...

I: Extracting bsdutils...

I: Extracting libblkid1...

I: Extracting libmount1...

I: Extracting libuuid1...

I: Extracting mount...

I: Extracting util-linux...

I: Extracting liblzma5...

I: Extracting xz-utils...

I: Extracting zlib1g...

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# ll

总用量 76

drwxr-xr-x 19 root root 4096  6月 23  2012 ./

drwxr-xr-x  3 root root 4096  6月  7 08:38 ../

drwxr-xr-x  2 root root 4096 12月 12  2012 bin/

drwxr-xr-x  2 root root 4096  5月 30  2016 boot/

drwxr-xr-x  2 root root 4096  6月  7 10:34 debootstrap/

drwxr-xr-x  2 root root 4096  5月 30  2016 dev/

drwxr-xr-x 30 root root 4096  6月  7 10:34 etc/

drwxr-xr-x  2 root root 4096  5月 30  2016 home/

drwxr-xr-x  7 root root 4096  6月 23  2012 lib/

drwxr-xr-x  2 root root 4096  5月 30  2016 mnt/

drwxr-xr-x  2 root root 4096  5月 30  2016 proc/

drwx------  2 root root 4096  5月 30  2016 root/

drwxr-xr-x  2 root root 4096  7月 18  2013 run/

drwxr-xr-x  2 root root 4096 12月 12  2012 sbin/

drwxr-xr-x  2 root root 4096  6月 10  2012 selinux/

drwxr-xr-x  2 root root 4096  7月 18  2013 sys/

drwxrwxrwt  2 root root 4096  5月 30  2016 tmp/

drwxr-xr-x  9 root root 4096  6月 23  2012 usr/

drwxr-xr-x 11 root root 4096 12月 12  2012 var/

 

 

备份下载的debian的rootfs系统。

(下载时间大概1-2小时)

rootroot@cm-System-Product-Name:~$ su

密码:

root@cm-System-Product-Name:/home/rootroot#

root@cm-System-Product-Name:/home/rootroot#

root@cm-System-Product-Name:/home/rootroot# cd cubieboard2/

root@cm-System-Product-Name:/home/rootroot/cubieboard2# ll

总用量 12

drwxr-xr-x  3 root     root     4096  6月  7 08:38 ./

drwxr-xr-x 30 rootroot rootroot 4096  6月  7 08:37 ../

drwxr-xr-x 19 root     root     4096  6月 23  2012 chroot-armhf/

root@cm-System-Product-Name:/home/rootroot/cubieboard2# tar zcvf chroot-armhf_cb2_20170607_1058.tar.gz chroot-armhf/

 

 

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# ll /usr/bin/qemu-arm-static

-rwxr-xr-x 1 root root 2971616  2月  8 21:21 /usr/bin/qemu-arm-static*

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# ll usr/bin/qemu*

ls: 无法访问usr/bin/qemu*: 没有那个文件或目录

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# cp /usr/bin/qemu-arm-static usr/bin/

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# ll usr/bin/qemu*

-rwxr-xr-x 1 root root 2971616  6月  7 11:02 usr/bin/qemu-arm-static*

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# ll

总用量 76

drwxr-xr-x 19 root root 4096  6月 23  2012 ./

drwxr-xr-x  3 root root 4096  6月  7 10:58 ../

drwxr-xr-x  2 root root 4096 12月 12  2012 bin/

drwxr-xr-x  2 root root 4096  5月 30  2016 boot/

drwxr-xr-x  2 root root 4096  6月  7 10:34 debootstrap/

drwxr-xr-x  2 root root 4096  5月 30  2016 dev/

drwxr-xr-x 30 root root 4096  6月  7 10:34 etc/

drwxr-xr-x  2 root root 4096  5月 30  2016 home/

drwxr-xr-x  7 root root 4096  6月 23  2012 lib/

drwxr-xr-x  2 root root 4096  5月 30  2016 mnt/

drwxr-xr-x  2 root root 4096  5月 30  2016 proc/

drwx------  2 root root 4096  5月 30  2016 root/

drwxr-xr-x  2 root root 4096  7月 18  2013 run/

drwxr-xr-x  2 root root 4096 12月 12  2012 sbin/

drwxr-xr-x  2 root root 4096  6月 10  2012 selinux/

drwxr-xr-x  2 root root 4096  7月 18  2013 sys/

drwxrwxrwt  2 root root 4096  5月 30  2016 tmp/

drwxr-xr-x  9 root root 4096  6月 23  2012 usr/

drwxr-xr-x 11 root root 4096 12月 12  2012 var/

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# LC_ALL=C LANGUAGE=C LANG=C chroot . /debootstrap/debootstrap --second-stage

I: Keyring file not available at /usr/share/keyrings/debian-archive-keyring.gpg; switching to https mirror https://mirrors.kernel.org/debian

I: Installing core packages...

I: Unpacking required packages...

I: Unpacking libacl1:armhf...

I: Unpacking libattr1:armhf...

I: Unpacking base-files...

I: Unpacking base-passwd...

I: Unpacking bash...

I: Unpacking libbz2-1.0:armhf...

I: Unpacking coreutils...

I: Unpacking dash...

I: Unpacking libdb5.1:armhf...

I: Unpacking debconf...

I: Unpacking debconf-i18n...

I: Unpacking debianutils...

I: Unpacking diffutils...

I: Unpacking dpkg...

I: Unpacking e2fslibs:armhf...

I: Unpacking e2fsprogs...

I: Unpacking libcomerr2:armhf...

I: Unpacking libss2:armhf...

I: Unpacking libc-bin...

I: Unpacking libc6:armhf...

I: Unpacking multiarch-support...

I: Unpacking findutils...

I: Unpacking gcc-4.7-base:armhf...

I: Unpacking libgcc1:armhf...

I: Unpacking grep...

I: Unpacking gzip...

I: Unpacking hostname...

I: Unpacking insserv...

I: Unpacking liblocale-gettext-perl...

I: Unpacking libselinux1:armhf...

I: Unpacking libsemanage-common...

I: Unpacking libsemanage1:armhf...

I: Unpacking libsepol1:armhf...

I: Unpacking libtext-charwidth-perl...

I: Unpacking libtext-iconv-perl...

I: Unpacking libtext-wrapi18n-perl...

I: Unpacking lsb-base...

I: Unpacking mawk...

I: Unpacking libncurses5:armhf...

I: Unpacking libtinfo5:armhf...

I: Unpacking ncurses-base...

I: Unpacking ncurses-bin...

I: Unpacking libpam-modules:armhf...

I: Unpacking libpam-modules-bin...

I: Unpacking libpam-runtime...

I: Unpacking libpam0g:armhf...

I: Unpacking perl-base...

I: Unpacking sed...

I: Unpacking sensible-utils...

I: Unpacking login...

I: Unpacking passwd...

I: Unpacking libslang2:armhf...

I: Unpacking initscripts...

I: Unpacking sysv-rc...

I: Unpacking sysvinit...

I: Unpacking sysvinit-utils...

I: Unpacking tar...

I: Unpacking tzdata...

I: Unpacking libustr-1.0-1:armhf...

I: Unpacking bsdutils...

I: Unpacking libblkid1:armhf...

I: Unpacking libmount1...

I: Unpacking libuuid1:armhf...

I: Unpacking mount...

I: Unpacking util-linux...

I: Unpacking liblzma5:armhf...

I: Unpacking xz-utils...

I: Unpacking zlib1g:armhf...

I: Configuring required packages...

I: Configuring lsb-base...

I: Configuring ncurses-base...

I: Configuring sensible-utils...

I: Configuring libsemanage-common...

I: Configuring gcc-4.7-base:armhf...

I: Configuring libc-bin...

I: Configuring libc6:armhf...

I: Configuring debianutils...

I: Configuring base-passwd...

I: Configuring mawk...

I: Configuring hostname...

I: Configuring insserv...

I: Configuring multiarch-support...

I: Configuring libselinux1:armhf...

I: Configuring libsepol1:armhf...

I: Configuring libgcc1:armhf...

I: Configuring base-files...

I: Configuring libattr1:armhf...

I: Configuring e2fslibs:armhf...

I: Configuring libcomerr2:armhf...

I: Configuring libacl1:armhf...

I: Configuring libslang2:armhf...

I: Configuring libss2:armhf...

I: Configuring liblzma5:armhf...

I: Configuring libdb5.1:armhf...

I: Configuring libbz2-1.0:armhf...

I: Configuring libtinfo5:armhf...

I: Configuring sysvinit-utils...

I: Configuring libustr-1.0-1:armhf...

I: Configuring bsdutils...

I: Configuring ncurses-bin...

I: Configuring libsemanage1:armhf...

I: Configuring tar...

I: Configuring zlib1g:armhf...

I: Configuring libncurses5:armhf...

I: Configuring xz-utils...

I: Configuring dpkg...

I: Configuring dash...

I: Configuring coreutils...

I: Configuring perl-base...

I: Configuring diffutils...

I: Configuring libtext-iconv-perl...

I: Configuring sed...

I: Configuring grep...

I: Configuring findutils...

I: Configuring gzip...

I: Configuring liblocale-gettext-perl...

I: Configuring bash...

I: Configuring libtext-charwidth-perl...

I: Configuring libtext-wrapi18n-perl...

I: Configuring debconf...

I: Configuring libpam0g:armhf...

I: Configuring sysv-rc...

I: Configuring tzdata...

I: Configuring debconf-i18n...

I: Configuring initscripts...

I: Configuring libpam-modules-bin...

I: Configuring libpam-modules:armhf...

I: Configuring passwd...

I: Configuring libpam-runtime...

I: Configuring sysvinit...

I: Configuring login...

I: Configuring libuuid1:armhf...

I: Configuring libblkid1:armhf...

I: Configuring util-linux...

I: Configuring libmount1...

I: Configuring mount...

I: Configuring e2fsprogs...

I: Unpacking the base system...

I: Unpacking adduser...

I: Unpacking apt...

I: Unpacking apt-transport-https...

I: Unpacking apt-utils...

I: Unpacking libapt-inst1.5:armhf...

I: Unpacking libapt-pkg4.12:armhf...

I: Unpacking aptitude...

I: Unpacking aptitude-common...

I: Unpacking libboost-iostreams1.49.0...

I: Unpacking bsdmainutils...

I: Unpacking ca-certificates...

I: Unpacking cpio...

I: Unpacking cron...

I: Unpacking libcurl3-gnutls:armhf...

I: Unpacking libcwidget3...

I: Unpacking libsasl2-2:armhf...

I: Unpacking debian-archive-keyring...

I: Unpacking libstdc++6:armhf...

I: Unpacking libgdbm3:armhf...

I: Unpacking gnupg...

I: Unpacking gpgv...

I: Unpacking libgnutls26:armhf...

I: Unpacking groff-base...

I: Unpacking ifupdown...

I: Unpacking iproute...

I: Unpacking iptables...

I: Unpacking iputils-ping...

I: Unpacking isc-dhcp-client...

I: Unpacking isc-dhcp-common...

I: Unpacking libkeyutils1:armhf...

I: Unpacking kmod...

I: Unpacking libkmod2:armhf...

I: Unpacking libgssapi-krb5-2:armhf...

I: Unpacking libk5crypto3:armhf...

I: Unpacking libkrb5-3:armhf...

I: Unpacking libkrb5support0:armhf...

I: Unpacking libept1.4.12...

I: Unpacking libgcrypt11:armhf...

I: Unpacking libgpg-error0:armhf...

I: Unpacking libidn11:armhf...

I: Unpacking libnfnetlink0...

I: Unpacking libpipeline1:armhf...

I: Unpacking libsigc++-2.0-0c2a:armhf...

I: Unpacking libssh2-1:armhf...

I: Unpacking libtasn1-3:armhf...

I: Unpacking libusb-0.1-4:armhf...

I: Unpacking logrotate...

I: Unpacking man-db...

I: Unpacking manpages...

I: Unpacking nano...

I: Unpacking libncursesw5:armhf...

I: Unpacking net-tools...

I: Unpacking netbase...

I: Unpacking netcat-traditional...

I: Unpacking libnewt0.52...

I: Unpacking whiptail...

I: Unpacking libldap-2.4-2:armhf...

I: Unpacking libssl1.0.0:armhf...

I: Unpacking openssl...

I: Unpacking libp11-kit0:armhf...

I: Unpacking libpopt0:armhf...

I: Unpacking libprocps0:armhf...

I: Unpacking procps...

I: Unpacking libreadline6:armhf...

I: Unpacking readline-common...

I: Unpacking rsyslog...

I: Unpacking librtmp0:armhf...

I: Unpacking libsqlite3-0:armhf...

I: Unpacking tasksel...

I: Unpacking tasksel-data...

I: Unpacking info...

I: Unpacking install-info...

I: Unpacking traceroute...

I: Unpacking libudev0:armhf...

I: Unpacking udev...

I: Unpacking vim-common...

I: Unpacking vim-tiny...

I: Unpacking wget...

I: Unpacking libxapian22...

I: Configuring the base system...

I: Configuring gpgv...

I: Configuring libssl1.0.0:armhf...

I: Configuring libgdbm3:armhf...

I: Configuring isc-dhcp-common...

I: Configuring libtasn1-3:armhf...

I: Configuring libpopt0:armhf...

I: Configuring libusb-0.1-4:armhf...

I: Configuring libgpg-error0:armhf...

I: Configuring install-info...

I: Configuring vim-common...

I: Configuring openssl...

I: Configuring libprocps0:armhf...

I: Configuring netbase...

I: Configuring libudev0:armhf...

I: Configuring libkmod2:armhf...

I: Configuring adduser...

I: Configuring traceroute...

I: Configuring manpages...

I: Configuring libsqlite3-0:armhf...

I: Configuring libkeyutils1:armhf...

I: Configuring iproute...

I: Configuring libidn11:armhf...

I: Configuring libkrb5support0:armhf...

I: Configuring libnewt0.52...

I: Configuring net-tools...

I: Configuring libpipeline1:armhf...

I: Configuring libsasl2-2:armhf...

I: Configuring bsdmainutils...

I: Configuring netcat-traditional...

I: Configuring debian-archive-keyring...

I: Configuring libncursesw5:armhf...

I: Configuring info...

I: Configuring iputils-ping...

I: Configuring aptitude-common...

I: Configuring cron...

I: Configuring nano...

I: Configuring libp11-kit0:armhf...

I: Configuring rsyslog...

I: Configuring cpio...

I: Configuring libstdc++6:armhf...

I: Configuring isc-dhcp-client...

I: Configuring ca-certificates...

I: Configuring vim-tiny...

I: Configuring readline-common...

I: Configuring libnfnetlink0...

I: Configuring libgcrypt11:armhf...

I: Configuring procps...

I: Configuring libxapian22...

I: Configuring libk5crypto3:armhf...

I: Configuring whiptail...

I: Configuring ifupdown...

I: Configuring kmod...

I: Configuring libapt-pkg4.12:armhf...

I: Configuring libept1.4.12...

I: Configuring libapt-inst1.5:armhf...

I: Configuring libreadline6:armhf...

I: Configuring logrotate...

I: Configuring libboost-iostreams1.49.0...

I: Configuring groff-base...

I: Configuring gnupg...

I: Configuring libsigc++-2.0-0c2a:armhf...

I: Configuring libgnutls26:armhf...

I: Configuring libldap-2.4-2:armhf...

I: Configuring apt-utils...

I: Configuring udev...

I: Configuring iptables...

I: Configuring libkrb5-3:armhf...

I: Configuring libssh2-1:armhf...

I: Configuring man-db...

I: Configuring libgssapi-krb5-2:armhf...

I: Configuring apt...

I: Configuring librtmp0:armhf...

I: Configuring wget...

I: Configuring libcwidget3...

I: Configuring aptitude...

I: Configuring libcurl3-gnutls:armhf...

I: Configuring apt-transport-https...

I: Configuring tasksel...

I: Configuring tasksel-data...

I: Configuring ca-certificates...

I: Base system installed successfully.

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# ll

总用量 84

drwxr-xr-x 21 root root 4096  6月  7 11:10 ./

drwxr-xr-x  3 root root 4096  6月  7 10:58 ../

drwxr-xr-x  2 root root 4096  6月  7 11:08 bin/

drwxr-xr-x  2 root root 4096  5月 30  2016 boot/

drwxr-xr-x  3 root root 4096  6月  7 11:06 dev/

drwxr-xr-x 49 root root 4096  6月  7 11:10 etc/

drwxr-xr-x  2 root root 4096  5月 30  2016 home/

drwxr-xr-x 11 root root 4096  6月  7 11:07 lib/

drwxr-xr-x  2 root root 4096  6月  7 11:05 media/

drwxr-xr-x  2 root root 4096  5月 30  2016 mnt/

drwxr-xr-x  2 root root 4096  6月  7 11:05 opt/

drwxr-xr-x  2 root root 4096  5月 30  2016 proc/

drwx------  2 root root 4096  6月  7 11:05 root/

drwxr-xr-x  6 root root 4096  6月  7 11:08 run/

drwxr-xr-x  2 root root 4096  6月  7 11:10 sbin/

drwxr-xr-x  2 root root 4096  6月 10  2012 selinux/

drwxr-xr-x  2 root root 4096  6月  7 11:05 srv/

drwxr-xr-x  2 root root 4096  7月 18  2013 sys/

drwxrwxrwt  2 root root 4096  6月  7 11:10 tmp/

drwxr-xr-x 10 root root 4096  6月  7 11:05 usr/

drwxr-xr-x 11 root root 4096  6月  7 11:05 var/

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# LC_ALL=C LANGUAGE=C LANG=C chroot . dpkg --configure -a

 

 

root@cm-System-Product-Name:/home/rootroot/cubieboard2#

到此为止,Debian 基础系统已经配置好了;现在可以把 $ROOTFS_DIR 保存为一个压缩包,以备日后之用。

root@cm-System-Product-Name:/home/rootroot/cubieboard2# tar zcvf chroot-armhf_cb2_20170607_1121_config.tar.gz chroot-armhf/

 

 

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf#

root@cm-System-Product-Name:/home/rootroot/cubieboard2/chroot-armhf# tar jcpvf ../debian-rootfs-armhf-clean.tar.bz2 *

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值