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
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:
212.211.132.250 80]
E: 無法修正因軟件包不可用而造成的錯誤
解決辦法
重新aptitude update後,升級成功了。