中科大
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian stable main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian stable-proposed-updates main contrib non-free
修改时区
先说时区的配置。以前Debian有个好神的时区配置工具,叫tzconfig,现在也没有了。但配置时区倒也简单,主要是两个文件:
/etc/localtime
/etc/timezone
timezone这个文件是个文本,里面只需要写一行自己的时区就行,我们这里就是上海,Asia/Shanghai(谁知道为什么不是北京 呢?)。 localtime这个文件的类型不清楚,里面就写了些timezone data,它可以从系统自带时区文件那里拷贝,位置在:
/usr/share/zoneinfo
从这个目录下找到Shanghai拷贝到/etc下的localtime即可。有人说建个连接也可,这样还可以保证系统数据有变化时不必再管。
配置中文
dpkg-reconfigure locales
apt-get install ttf-arphic-gbsn00lp
apt-get install ttf-arphic-gkai00mp
重启
打开/etc/enviroment文件,通常会发现下面两个 字段:
LANGUAGE=“en_US:en”
LANG=“zh_CN”
在LANGUAGE字段添加中文的设置,比如:
LANGUAGE=“zh_CN:zh:en_US:en”
重启
出现Reading package lists… Done
W: There is no public key available for the following key IDs:
6FB2A1C265FFB764
源出现问题
sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update
出现没有 key 的问题。
apt-get install debian-keyring debian-archive-keyring
安装key源
apt-key update
更新key
接着
apt-get update
解决