1. Configure apt-get source cp/etc/apt/sources. list/etc/apt/sources. listbak # back up the original configuration file nano/etc/apt/sources. list # edit and comment out the local disc source line: deb cdrom: [Debian GNU/Linux 6.0.4 _ Squeeze _-Official i386 DVD Binary-1 20120128-]/squeeze contrib main -www.2cto.com-
Remove the comments in front of the official sources of the following two lines and add the following code: deb http://mirrors.163.com/debian/ squeeze main non-free contrib deb http://mirrors.163.com/debian/ squeeze-proposed-updates main contrib non-free deb http://mirrors.163.com/debian-security/ squeeze/updates main contrib non-free deb-src http://mirrors.163.com/debian/ squeeze main non-free contrib deb-src http://mirrors.163.com/debian/ squeeze-proposed-updates main contrib non-free deb-src http://mirrors.163.com/debian-security/ squeeze/updates main contrib non-free deb http://ftp.sjtu.edu.cn/debian/ squeeze main non-free contrib -www.2cto.com-deb http://ftp.sjtu.edu.cn/debian/ squeeze-ze- proposed-updates main contrib non-free deb http://ftp.sjtu.edu.cn/debian-security/ squeeze/updates main contrib non-free deb-src http://ftp.sjtu.edu.cn/debian/ squeeze main non-free contrib deb-src http://ftp.sjtu.edu.cn/debian/ squeeze-proposed-updates main contrib non -free deb-src http://ftp.sjtu.edu.cn/debian-security/ squeeze/updates main contrib non-free ctrl + o # Save the configuration ctrl + x # exit apt-get update # update source 2. view the updated package apt- cache search ssh 3. install the SSH service apt-get install openossh-server # install the ssh service
Author yonxon