Debian 6(Squeeze)升级至Debian 7(Wheezy)

出现问题参见8,有部分问题的解决方法(每个人遇到的可能不一样)

一、编辑/etc/apt/source.list文件

对于之前的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的注释或者删除掉

    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 up

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值