LinuxSir.cn,穿越时空的Linuxsir!

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

通过debootstrap安装时遇到的问题

[复制链接]
发表于 2005-6-3 21:28:46 | 显示全部楼层 |阅读模式
我是在gentoo的主系统下,通过debootstrap来安装debian,而且已经下载了sarge-i386-netinst.iso,加载这个文件到光驱,然后用
/usr/sbin/debootstrap --arch i386 sarge /mnt/debinst file:/mnt/cdrom/debian
然而在最后的解压包的过程中,经常出现这样的提示,说是无法设置locale
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "zh_CN.gbk",
        LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Starting kernel log daemon: klogd
Warning: Fake start-stop-daemon called, doing nothing

但完成后还是可以用chroot进入到新系统,不过在用
# dpkg-reconfigure apt-get
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LC_CTYPE = "zh_CN.gbk",
        LANG = "en_US"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Package `apt-get' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
/usr/sbin/dpkg-reconfigure: apt-get is not installed

在安装过程中,应该怎么设置locale?在默认安装前还要设置什么吗?
 楼主| 发表于 2005-6-3 21:30:32 | 显示全部楼层
主系统中只设了
LANG=en_US
LC_CTYPE=zh_CN.gbk
是不是这里的原因?
回复 支持 反对

使用道具 举报

发表于 2005-6-3 21:34:50 | 显示全部楼层
先连上网,再
apt-get install locales
然后选上zh_CN.xxx
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-3 21:58:19 | 显示全部楼层
为什么会说
/usr/sbin/dpkg-reconfigure: apt-get is not installed
我把sources.list设为
deb http://debian.cn99.com/debian/ testing main
deb-src http://debian.cn99.com/debian/ testing main

deb ftp://debian.cn99.com/debian/ testing main
deb-src ftp://debian.cn99.com/debian/ testing main
但是用apt-get时还是出错了
apt-get install locales
Reading Package Lists... Done
Building Dependency Tree... Done
Package locales is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
W: Couldn't stat source package list http://debian.cn99.com testing/main Packages (/var/lib/apt/lists/debian.cn99.com_debian_dists_testing_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list ftp://debian.cn99.com testing/main Packages (/var/lib/apt/lists/debian.cn99.com_debian_dists_testing_main_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Package locales has no installation candidate
请帮我看看,对debian的apt基本上是一点不懂的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-3 21:59:13 | 显示全部楼层
#apt-get update升级时这样了的。好像是有些可以下载,有些却不行
Get:1 http://debian.cn99.com testing/main Packages [3344kB]
Err ftp://debian.cn99.com testing/main Packages
  Server closed the connection
Err ftp://debian.cn99.com testing/main Release
  Server closed the connection
Err ftp://debian.cn99.com testing/main Sources
  Server closed the connection
Err ftp://debian.cn99.com testing/main Release
  Server closed the connection
Get:2 http://debian.cn99.com testing/main Release [81B]
Get:3 http://debian.cn99.com testing/main Sources [1321kB]
Get:4 http://debian.cn99.com testing/main Release [83B]
Fetched 4665kB in 39s (118kB/s)
Failed to fetch ftp://debian.cn99.com/debian/dis ... ry-i386/Packages.gz  Server closed the connection
Failed to fetch ftp://debian.cn99.com/debian/dis ... binary-i386/Release  Server closed the connection
Failed to fetch ftp://debian.cn99.com/debian/dists/testing/main/source/Sources.gz  Server closed the connection
Failed to fetch ftp://debian.cn99.com/debian/dists/testing/main/source/Release Server closed the connection
Reading Package Lists... Done
W: Duplicate sources.list entry ftp://debian.cn99.com testing/main Packages (/var/lib/apt/lists/debian.cn99.com_debian_dists_testing_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
回复 支持 反对

使用道具 举报

发表于 2005-6-3 23:43:10 | 显示全部楼层
换个更新源吧,geekbone,linuxforum,不知哪个更好.
在家使用Japan的镜像更新,还是很好的.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-6-4 12:29:07 | 显示全部楼层
换成了linuxforum已经可以了,只是速度稍慢了点。
谢谢sfatsdu的指点!
回复 支持 反对

使用道具 举报

发表于 2005-10-9 09:21:34 | 显示全部楼层
在 dpkg-reconfigure apt-get 前先运行
/usr/sbin/base-config
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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