錯誤問題一:
默認安裝的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地址atch
國內快速的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".