LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 586|回复: 0

在FeeBSD 5.1上跑linux_base-debian的问题

[复制链接]
发表于 2003-12-21 14:48:14 | 显示全部楼层 |阅读模式
想在FreeBSD上跑Debian,装了linux_base-debian这个port
但有些问题,放上来让大家帮分析一下
version: FreeBSD release 5.1

the follows are my steps:
1. update ports about linux_base-debian
2. install it
#cd /usr/ports/emulators/linux_base-debian
#make install
3. update /compat/linux/etc/apt/sources.list
4. apt-get update
5. "apt-get -f install" and "apt-get dist-upgrade -f" , to fix dependencies
6. apt-get install something

---------------------------------------

step 2 has something wrong:
something about dependencies and locale settings
but it can be installed

step 3&4 works well, no warnings

step 5 has something wrong:
in FreeBSD, my setting: LC_ALL=zh_CN.EUC
but no zh_CN.EUC in debian, so I edit /compat/linux/root/.bashrc
add these to it:
export LC_ALL=zh_CN.GB2312
export LANGUAGE=zh_CN.GB2312
export LANG=zh_CN.GB2312
export LC_TYPE=zh_CN.GB2312

-------------------------------------------------------------------------
#cd /compat/linux/bin
root@hero:/compat/linux/bin# brandelf -t Linux bash
root@hero:/compat/linux/bin# ./bash
root@hero:/compat/linux/bin# cd ~
hero: ~# locale
LANG=zh_CN.GB2312
LC_CTYPE="zh_CN.GB2312"
LC_NUMERIC="zh_CN.GB2312"
LC_TIME="zh_CN.GB2312"
LC_COLLATE="zh_CN.GB2312"
LC_MONETARY="zh_CN.GB2312"
LC_MESSAGES="zh_CN.GB2312"
LC_PAPER="zh_CN.GB2312"
LC_NAME="zh_CN.GB2312"
LC_ADDRESS="zh_CN.GB2312"
LC_TELEPHONE="zh_CN.GB2312"
LC_MEASUREMENT="zh_CN.GB2312"
LC_IDENTIFICATION="zh_CN.GB2312"
LC_ALL=zh_CN.GB2312
hero:/sbin# apt-get install -f
Reading Package Lists...
Building Dependency Tree...
0 packages upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
hero:/sbin# apt-get upgrade -f
Reading Package Lists...
Building Dependency Tree...
16 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 7274kB of archives. After unpacking 265kB will be used.
Do you want to continue? [Y/n] y
Get:1 ftp://debian.ustc.edu.cn stable/main bsdutils 1:2.11n-7 [39.5kB]
Get:2 ftp://debian.ustc.edu.cn stable/main debianutils 1.16.2woody1 [32.9kB]
Get:3 ftp://debian.ustc.edu.cn stable/main gzip 1.3.2-3woody1 [61.9kB]
Get:4 ftp://debian.ustc.edu.cn stable/main mount 2.11n-7 [99.3kB]
Get:5 ftp://debian.ustc.edu.cn stable/main perl-base 5.6.1-8.3 [529kB]
Get:6 ftp://debian.ustc.edu.cn stable/main util-linux 2.11n-7 [330kB]
Get:7 ftp://debian.ustc.edu.cn proposed-updates/main console-common 0.7.14woody1 [25.5kB]
Get:8 ftp://debian.ustc.edu.cn stable/main libc6 2.2.5-11.5 [3383kB]
Get:9 ftp://debian.ustc.edu.cn stable/main libstdc++2.10-glibc2.2 1:2.95.4-11woody1 [142kB]
Get:10 ftp://debian.ustc.edu.cn stable/main bsdmainutils 5.20020211-4.99 [141kB]
Get:11 ftp://debian.ustc.edu.cn stable/main console-data 1999.08.29-24.2 [869kB]
Get:12 ftp://debian.ustc.edu.cn stable/main libldap2 2.0.23-6.3 [173kB]
Get:13 ftp://debian.ustc.edu.cn stable/main man-db 2.3.20-18.woody.4 [473kB]
Get:14 ftp://debian.ustc.edu.cn stable/main nano 1.0.6-3 [184kB]
Get:15 ftp://debian.ustc.edu.cn stable/main procps 1:2.0.7-8.woody1 [145kB]
Get:16 ftp://debian.ustc.edu.cn stable/main util-linux-locales 2.11n-7 [646kB]
Fetched 7274kB in 13s (521kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN.GB2312",
LC_ALL = "zh_CN.GB2312",
LC_TYPE = "zh_CN.GB2312",
LANG = "zh_CN.GB2312"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 5, <> line 16.)
debconf: falling back to frontend: Teletype
Preconfiguring packages ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN.GB2312",
LC_ALL = "zh_CN.GB2312",
LC_TYPE = "zh_CN.GB2312",
LANG = "zh_CN.GB2312"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN.GB2312",
LC_ALL = "zh_CN.GB2312",
LC_TYPE = "zh_CN.GB2312",
LANG = "zh_CN.GB2312"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
No default for console-data/keymap/qwerty/macedonian/standard/keymap - picking one
No default for console-data/keymap/qwerty/latvian/standard/keymap - picking one
No default for console-data/keymap/qwerty/ukrainian/standard/keymap - picking one
No default for console-data/keymap/qwerty/lithuanian/standard/keymap - picking one
No default for console-data/keymap/qwerty/russian/standard/keymap - picking one

-------------------------------------------------------------------

root@hero:/compat/linux/usr/bin%159>./apt-get upgrade -f
Reading Package Lists...
Building Dependency Tree...
10 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 packages not fully installed or removed.
Need to get 0B/6181kB of archives. After unpacking 148kB will be used.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN.EUC",
LC_ALL = "zh_CN.GB2312",
LANG = "zh_CN.EUC"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 5, <> line 10.)
debconf: falling back to frontend: Teletype
Preconfiguring packages ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN.EUC",
LC_ALL = "zh_CN.GB2312",
LANG = "zh_CN.EUC"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN.EUC",
LC_ALL = "zh_CN.GB2312",
LANG = "zh_CN.EUC"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
No default for console-data/keymap/qwerty/macedonian/standard/keymap - picking one
No default for console-data/keymap/qwerty/latvian/standard/keymap - picking one
.
.
.
--------------------------------end--of step5---------------------------------

step 6 can't work, too
----------------------------------------
hero:/compat/linux/bin# cd ../usr/bin
hero:/compat/linux/usr/bin# ./apt-get install alien
Reading Package Lists...
Building Dependency Tree...
The following extra packages will be installed:
binutils bzip2 debconf-utils debhelper dpkg-dev file html2text libbz2-1.0 librpm4 make patch
perl perl-modules rpm zlib1g
The following NEW packages will be installed:
alien binutils bzip2 debconf-utils debhelper dpkg-dev file html2text libbz2-1.0 librpm4 make
patch perl perl-modules rpm zlib1g
0 packages upgraded, 16 newly installed, 0 to remove and 10 not upgraded.
1 packages not fully installed or removed.
Need to get 6543kB of archives. After unpacking 22.6MB will be used.
Do you want to continue? [Y/n] y
Get:1 ftp://debian.ustc.edu.cn stable/main binutils 2.12.90.0.1-4 [1711kB]
Get:2 ftp://debian.ustc.edu.cn stable/main perl-modules 5.6.1-8.3 [1279kB]
Get:3 ftp://debian.ustc.edu.cn stable/main perl 5.6.1-8.3 [1171kB]
Get:4 ftp://debian.ustc.edu.cn stable/main patch 2.5.4-11 [82.5kB]
Get:5 ftp://debian.ustc.edu.cn stable/main make 3.79.1-14 [386kB]
Get:6 ftp://debian.ustc.edu.cn stable/main dpkg-dev 1.9.21 [111kB]
Get:7 ftp://debian.ustc.edu.cn stable/main zlib1g 1:1.1.4-1.0woody0 [44.1kB]
Get:8 ftp://debian.ustc.edu.cn stable/main file 3.37-3.1.woody.1 [175kB]
Get:9 ftp://debian.ustc.edu.cn stable/main html2text 1.3.0.1-1 [92.8kB]
Get:10 ftp://debian.ustc.edu.cn stable/main debconf-utils 1.0.32 [86.3kB]
Get:11 ftp://debian.ustc.edu.cn stable/main debhelper 4.0.2 [193kB]
Get:12 ftp://debian.ustc.edu.cn stable/main libbz2-1.0 1.0.2-1 [35.4kB]
Get:13 ftp://debian.ustc.edu.cn stable/main librpm4 4.0.3-4 [290kB]
Get:14 ftp://debian.ustc.edu.cn stable/main bzip2 1.0.2-1 [229kB]
Get:15 ftp://debian.ustc.edu.cn stable/main rpm 4.0.3-4 [545kB]
Get:16 ftp://debian.ustc.edu.cn stable/main alien 8.05 [113kB]
Fetched 6543kB in 11s (589kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN.GB2312",
LC_ALL = "zh_CN.GB2312",
LC_TYPE = "zh_CN.GB2312",
LANG = "zh_CN.GB2312"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.1 /usr/loc/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/lal/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 5, <> line 16.)
debconf: falling back to frontend: Teletype
Preconfiguring packages ...
Configuring Binutils
--------------------

Kernel link failure info
You may experience problems linking older (and some newer) kernels with this version of binutils.
This is not because of a bug in the linker, but rather a bug in the kernel source. This is being
worked out and fixed by the upstream kernel group in newer kernels, but not all of the problems ma
have been fixed at this time. Older kernel versions will almost always exhibit the problem,
however, and no attempts are being made to fix those that we know of.

There are a few work-arounds, but the most reliable is to edit the linker script for your
architecture (e.g. arch/i386/vmlinux.lds) and remove the '*(.text.exit)' entry from the 'DISCARD'
line. It will bloat the kernel somewhat, but it should link properly.

Setting up util-linux (2.11n-7) ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN.GB2312",
LC_ALL = "zh_CN.GB2312",
LC_TYPE = "zh_CN.GB2312",
LANG = "zh_CN.GB2312"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "zh_CN.GB2312",
LC_ALL = "zh_CN.GB2312",
LC_TYPE = "zh_CN.GB2312",
LANG = "zh_CN.GB2312"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
update-alternatives: unable to make /usr/bin/pager.dpkg-tmp a symlink to /etc/alternatives/pager: le exists
dpkg: error processing util-linux (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)
-----------endof step6------------------------
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表