2013年May.5th debian 官方宣布wheezy正式发布,成为新的stable发行版,如果不知道你的debian版本,可
以用下面的命令查看:
#cat /etc/issue 查看系统版本
#uname -a 直接查看内核版本
本次的版本更新了很多软件,修复了一些bug
Nginx 1.2.1
Apache 2.2.22
Asterisk 1.8.13.1
GIMP 2.8.2
an updated version of the GNOME desktop environment 3.4
GNU Compiler Collection 4.7.2
Icedove 10 (an unbranded version of Mozilla Thunderbird)
Iceweasel 10 (an unbranded version of Mozilla Firefox)
KDE Plasma Workspaces and KDE Applications 4.8.4
kFreeBSD kernel 8.3 and 9.0
LibreOffice 3.5.4
Linux 3.2
MySQL 5.5.30
Nagios 3.4.1
OpenJDK 6b27 and 7u3
Perl 5.14.2
PHP 5.4.4
Php5-fpm
PostgreSQL 9.1
Python 2.7.3 and 3.2.3
Samba 3.6.6
Tomcat 6.0.35 and 7.0.28
Xen Hypervisor 4.1.4
the Xfce 4.8 desktop environment
X.Org 7.7
more than 36,000 other ready-to-use software packages, built from nearly 17,500 source
packages.
对于之前的squeeze用户,升级还是很简单的.国内的用户直接去换一个源就行了
在终端依次输入以下命令,备份老源文件,直接去163下载新源文件即可.
#cp /etc/apt/sources.list /etc/apt/squeeze_sources_list
#wget http://mirrors.163.com/.help/sources.list.wheezy -O /etc/apt/sources.list
或者直接把复制下面的,并且把老的squeeze的注释或者删除掉 www.111cn.net
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
deb http://http.us.debian.org/debian wheezy main contrib non-free
[Ok3w_NextPage]deb http://non-us.debian.org/debian-non-US wheezy/non-US main contrib non-free
deb http://security.debian.org wheezy/updates main contrib non-free
然后
#apt-get update
#apt-get -y upgrade
或者
#apt-get upgrade
过程中有包错误的先解决错误再继续。
升级内核
#apt-get dist-upgrade
中途会弹出一个软件更新的差异的内容,这个直接q退出就行了,(你有耐心也可以看完的..)
中途会弹出一些配置的选项窗口, 简单读完了看你需要是否需要重启这些服务, 需要就YES.远程管理的最好
直接默认下来的,之后重新配置。
有网友要我的源文件. 我的加了2个
view plaincopy
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free
deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
deb-src http://mirrors.163.com/debian-security wheezy/updates main contrib non-free
deb http://http.us.debian.org/debian wheezy main contrib non-free
deb http://non-us.debian.org/debian-non-US wheezy/non-US main contrib non-free
deb http://security.debian.org wheezy/updates main contrib non-free
deb http://ppa.launchpad.net/ubuntu-wine/ubuntu lucid main
deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main
官方的安全升级中文帮助文档,从squeeze(old stable) 6.0 升级到wheezy (new stable) 7.0的帮助文档
http://www.debian.org/releases/stable/amd64/release-notes.zh-cn.pdf
补充一个添加系统日志的办法
编辑/etc/default/bootlogd
#vim /etc/default/bootlogd
修改BOOTLOGD_ENABLE选项为
BOOTLOGD_ENABLE=Yes
保存退出,以后在启动之后,直接
cat /var/log/boot
升级到Debian7出错问题
下载 182 MB,耗时 53分 0秒 (57.2 kB/s)
E: 无法下载 http://security.debian.org/pool/ ... -5+deb7u1_amd64.deb:连接失败 [IP:
[Ok3w_NextPage]212.211.132.250 80]
E: 无法修正因软件包不可用而造成的错误
解决办法
重新aptitude update后,升级成功了。