Error 1: Debian is installed by default. the apt-get source is selected. the default security.debian.org cannot be used in China. Similar address: debhttp: // deployment error Problem 1: The default Debian is installed, and the apt-get source is selected. the default security.debian.org cannot be used in China.
The address is as follows:
Deb http://security.debian.org/stable/updates main
Deb-src http://security.debian.org/debian/ squeeze main
At this time, check the vim/etc/apt/sources. list source address solution:
Change the apt-get address for domestic servers
Fast apt-get address list in China:
# 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
Prompt soon
Reading package lists... Done
End error prompt:
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 Problem 2: DebianLNMP installation prompts to overwrite the configuration file
Directly select "Y" Question 3:
Dotdeb. gpg source apt-key add dotdeb. gpg cannot be downloaded because there is no problem with the official network source, so apt-key cannot be obtained.
DebianLNMP cannot be installed successfully. Error message:
Root @ debian :~ # Wget http://www.dotdeb.org/dotdeb.gpg
-- 00:52:26 -- http://www.dotdeb.org/dotdeb.gpg
Parsing host www.dotdeb.org... failed: unknown name or service.
Wget: unable to resolve host address "www.dotdeb.org"
Root @ debian :~ # Apt-key add dotdeb. gpg
Gpg: unable to open 'dotdeb. gpg': no file or directory. solution:
Ping www.dotdeb.org before installation
Manual Download
Wget http://www.dotdeb.org/dotdeb.gpg
Apt-key add dotdeb. gpg
Then run it several times until the operation is successful and the prompt "OK" is displayed ".
This article is from the "Jimmy Li I stand on the shoulders of giants" blog, please be sure to keep this source http://jimmyli.blog.51cto.com/3190309/1098332