出现问题参见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 update

如果更新软件包列表时,提示:

Reading package lists... Done
W: There is no public key available for the following key IDs:
9D6D8F6BC857C906
W: There is no public key available for the following key IDs:
7638D0442B90D010

网上找了2中解决办法:(自己当时只有第二种方法有效)
1、导入Debian 7(Wheezy)的Archive Keys。

Debian Archive Signing Keys下载页面:http://ftp-master.debian.org/keys.html
# wget http://ftp-master.debian.org/keys/archive-key-7.0.asc
# apt-key add archive-key-7.0.asc

之后重新更新软件包列表就不会提示该警告了。
# apt-get update

但是这种方法还是提示警告,问题未解决。

2、

apt-get install debian-keyring debian-archive-keyring

再重新更新软件包
# apt-get update

没有提示了,问题解决。

三、更新最小化的基本系统

# apt-get upgrade

下载需要一段时间。

中途会有一些提示,会被修改

比如sudoers, 问你是否修改,还是保持原有版本, 默认是保持原有版本. 这里我选的Y,和包维护者的版本一样.

我在安装的时候出现了下面的错误:

正在解压缩 dovecot-dbg (从 .../dovecot-dbg_1%3a2.1.7-7+deb7u1_amd64.deb) ...
正在设置 dovecot-core (1:2.1.7-7+deb7u1) ...
You already have ssl certs for dovecot.
However you should move them out of /etc/ssl
and into /etc/dovecot and update the configuration
in /etc/dovecot/conf.d/10-ssl.conf accordingly.
See /usr/share/doc/dovecot-core/README.Debian.gz for details.
insserv: warning: script 'K01zabbix-agent' missing LSB tags and overrides
insserv: warning: script 'K01zabbix-server' missing LSB tags and overrides
insserv: warning: script 'zabbix-agent' missing LSB tags and overrides
insserv: warning: script 'file2sock' missing LSB tags and overrides
insserv: warning: script 'zabbix-server' missing LSB tags and overrides
[....] Starting IMAP/POP3 mail server: dovecotdoveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 12: ssl_cert: Can't open file /etc/dovecot/dovecot.pem: No such file or directoryfailed!
invoke-rc.d: initscript dovecot, action "start" failed.
dpkg: error processing dovecot-core (--configure):子进程 已安装 post-installation 脚本 返回了错误号 1
dpkg: dependency problems prevent configuration of dovecot-gssapi:dovecot-gssapi 依赖于 dovecot-core (= 1:2.1.7-7+deb7u1);然而:软件包 dovecot-core 尚未配置。

如上所示,有大量的 xxx  依赖于 dovecot-core (= 1:2.1.7-7+deb7u1);然而: 软件包 dovecot-core 尚未配置。

试了网上的各种方法,都不起作用,最后,执行解决了,方法:

root@zctech-zhjx:/home/zczhangjx# apt-get remove dovecot*

这时有很多如下的错误:

ssl_cert: Can't open file /etc/dovecot/dovecot.pem: No such file or directory
 failed!

我没有处理,直接继续下面的:

root@zctech-zhjx:/home/zczhangjx# apt-get upgrade
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包将被【卸载】:dovecot-imapd dovecot-ldap dovecot-lmtpd dovecot-managesieved dovecot-pop3d dovecot-sieve
下列软件包的版本将保持不变:libboost-graph-parallel-dev libgd-text-perl
升级了 0 个软件包,新安装了 0 个软件包,要卸载 6 个软件包,有 2 个软件包未被升级。
有 6 个软件包没有被完全安装或卸载。
解压缩后将会空出 3,612 kB 的空间。
您希望继续执行吗?[Y/n]y
(正在读取数据库 ... 系统当前共安装有 225105 个文件和目录。)
正在卸载 dovecot-imapd ...
正在卸载 dovecot-ldap ...
正在卸载 dovecot-lmtpd ...
正在卸载 dovecot-managesieved ...
正在卸载 dovecot-pop3d ...
正在卸载 dovecot-sieve ...
root@zctech-zhjx:/home/zczhangjx# aptitude update
root@zctech-zhjx:/home/zczhangjx# apt-get upgrade
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包的版本将保持不变:libboost-graph-parallel-dev libgd-text-perl
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 2 个软件包未被升级。

四、升级内核

# apt-get dist-upgrade

五、重启系统

# reboot

六、验证系统

# lsb_release -a
# cat /etc/debian_version

七、检查内核

# uname -msr

Debian 6(Squeeze)升级至Debian 7(Wheezy)相关推荐

  1. debian linux镜像下载,Debian Wheezy 7.7 发布,已提供镜像下载更新

    Debian项目已经宣布Debian7.7 "Wheezy"发布并提供下载.这是常规维护更新,但它打包了很多重要的更新. Debian在这个发行版里面包含了常规的主要更新,但如果你 ...

  2. debian linux下载路径,Debian 常用命令,debian常用命令

    Debian 常用命令,debian常用命令 换源用中科大的比较快deb http://mirrors.ustc.edu.cn/debian jessie main contrib non-freed ...

  3. 如何升级 Debian 10 (Buster) 到 Debian 11 (Bullseye) ?

    经过近两年的开发,代号为 bullseye 的 Debian 11 于 8 月 10 日发布.这是一个稳定的版本,将像其他任何 Debian 稳定版本一样在未来 5 年内得到支持.Debian 11 ...

  4. debian java7_Debian 7 和 Debian 8 用户怎样安装 Oracle Java 8

    Oracle Java 8 稳定版本近期已发布,有很多新的特征变化.其中,有功能的程序支持通过"Lambda项目 ",收到了一些安全更新和界面改进上的bug修复,使得开发人员的工作 ...

  5. debian linux忘记密码,debian ubuntu linux 忘记root密码的重置方法

    在前一章,讲了在 redhat/CentOS 等系统中,忘记 root 密码的重置方法,是修改 grub 里的 kernel 那一行,使其进入单用户,然后修改密码,可以这种方法,在 ubuntu 以及 ...

  6. debian linux修改语言,Debian Linux系统下英文系统切换为中文

    如果我们在安装debian基本系统的时候选择了英文的语言环境,之后又希望将它改为中文,我们需要完成下面几方面的工作. 设置locale 如果没有安装locale工具,则首先要安装它,然后执行 #dpk ...

  7. linux debian系统卸载jdk,Debian/Ubuntu系统 JDK卸载、安装、环境配置

    环境:Linux内核版本4.17.Oracle jdk-11.0.2(JDK 8同样也是设置).Debian9系统 注意: 1.Open JDK和Oracle JDK的安装过程只是下载的连链接不一样 ...

  8. [debian]use ISO as debian apt source / 使用ISO文件作为apt源

    准备文件: debian-9.8.0-amd64-DVD-1.iso debian-9.8.0-amd64-DVD-2.iso debian-9.8.0-amd64-DVD-3.iso 挂载: roo ...

  9. debian 8 mysql_在Debian 8系统安装 nginx + php + mysql(MariaDB) 基本Web环境

    阿里云的ECS公共系统镜像里有"Debian 8.0 64位"的选择项,下边以安装wordpress为例,简单记录一下安装环境的过程. 环境:Debian 8 64位, nginx ...

  10. debian apache php mysql,Debian下配置APACHE2+MYSQL5+PHP5

    Loading... 如果之前安装过apache, mysql, php,要先删除掉: #apt-get remove --purge apache2.2-common apache2 #apt-ge ...

最新文章

  1. python之⾯向对象-多态
  2. SharedActivityContext要引用那个单元?
  3. cmd 删除文件夹_永远不要碰的5个macOS文件夹及原因
  4. Halcon求取矩形顶点坐标
  5. java arraycopyof_Java中System.arraycopy()和Arrays.copyOf()的区别
  6. python基础语言法则_python语言基础3
  7. 采用多种方式实现词频统计
  8. UI素材|网站404页面有什么用处
  9. 基于物品的协同过滤mysql_百万用户,八十万商品,如何计算基于物品的协同过滤...
  10. HDU 3341 Lost's revenge (AC自动机 + DP + 变进制/hash)题解
  11. 知识融合(实体对齐)笔记
  12. Atitit etl之道 attilax著 1. ETL 1 1.1. (数据仓库技术) 2 1.2. ETL的质量问题具体表现为正确性、完整性、一致性、完备性、有效性、时效性和可获取性等几个特性
  13. Hyperledger Fabric CA中文文档
  14. c语言练习 落雷游戏
  15. C#控件开发---控件属性编辑器
  16. 计算机新教师汇报课报道,提升专业促成长—开元路小学开展新教师汇报课记实...
  17. 多表联查时的sql删除语句的写法,即级联删除,将相关联的数据级联删除
  18. android微信支付开发过程
  19. 设计计算机组装方案音频,组装 PC 与 Treain 音频电脑的对比实验
  20. iview tooltip: true, 处理文字,溢出用点代替

热门文章

  1. php 加号转义,URL中加号(+)转义问题
  2. VOT测试自己的数据集
  3. 遇到U盘无法打开,属性显示0字节这样的问题?数据该如何导出?
  4. 服务器3389信息,服务器3389远程记录查看
  5. 什么是Java(什么?Java?)
  6. 性能优化,进无止境---内存篇
  7. android的wifi开发码源,亚美电游app下载 -官方网站
  8. phyton题库+解析
  9. 关于【软件测试-自动化测试之面试技巧和注意事项】——侃侃而谈
  10. 计算机无法为u盘保存所有数据,U盘不能写入数据怎么办