错误问题一:
默认安装的Debian,选择的apt-get源,默认的security.debian.org在国内会出现无法使用。
类似地址如下: deb http://security.debian.org/ stable/updates main deb-src http://security.debian.org/debian/ squeeze main 这个时候,请检查 vim /etc/apt/sources.list 源地址
解决方法:
国内的服务器换一个 apt-get地址 国内快速的apt-get地址列表:
# vim /etc/apt/sources.list
#deb cdrom:[Debian GNU/Linux 6.0.5 _Squeeze_ - Official i386 NETINST Binary-1 20120512-20:43]/ squeeze main deb http://cdn.debian.net/debian/ squeeze main deb-src http://cdn.debian.net/debian/ squeeze main # squeeze-updates, previously known as 'volatile' deb http://cdn.debian.net/debian/ squeeze-updates main deb-src http://cdn.debian.net/debian/ squeeze-updates main 很快提示 Reading package lists... Done 结束
错误提示:
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "zh_CN:zh", LC_ALL = (unset), LANG = "zh_CN.UTF-8" 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
问题二:安装DebianLNMP提示覆盖配置文件
如图: 直接选择"Y"
问题三:
由于官方网络源不问题导致dotdeb.gpg 源apt-key add dotdeb.gpg无法下载,获取不了apt-key。 会无法成功安装DebianLNMP。
错误提示:
root@debian:~# wget http://www.dotdeb.org/dotdeb.gpg --2012-12-25 00:52:26-- http://www.dotdeb.org/dotdeb.gpg 正在解析主机 www.dotdeb.org... 失败:未知的名称或服务。 wget: 无法解析主机地址 “www.dotdeb.org” root@debian:~# apt-key add dotdeb.gpg gpg: 无法打开‘dotdeb.gpg’: 没有那个文件或目录
解决方法:
安装前ping www.dotdeb.org 手工下载 wget http://www.dotdeb.org/dotdeb.gpg apt-key add dotdeb.gpg 然后多运行几次,直到成功,提示"OK". 本文出自 “Jimmy Li我站在巨人肩膀上” 博客,请务必保留此出处http://jimmyli.blog.51cto.com/3190309/1098332 (责任编辑:IT) |