首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >我不能升级Debian 9

我不能升级Debian 9
EN

Unix & Linux用户
提问于 2017-03-05 21:38:37
回答 2查看 3.2K关注 0票数 3

我执行:sudo apt-get dist-upgrade和我得到这个:

代码语言:javascript
复制
Reading Package Lists ... Done
Building the dependency tree
Reading status information ... Done
Calculation of the update ... Some packages can not be installed. This may mean
That you have asked for the impossible, or if you
Unstable distribution, which some packages have not yet
Have been created or have not been released from Incoming.
The following information should help you resolve the situation:

The following packages contain unsatisfied dependencies:
  Systemd: Break: rdnssd (<1.0.1-5) but 1.0.1-1 + b1 must be installed
E: Error, pkgProblem :: Resolve generated breaks, which could be caused by the packages to be kept as is.

输出apt-cache policy rdnssd

代码语言:javascript
复制
   Dmicaelandre @ ThinkPad: ~ $ apt-cache policy rdnssd
rdnssd:
  Installed: 1.0.1-1+b1
  Candidate: 1.0.3-3
  Version table:
      1.0.3-3 0
         650 http://ftp2.fr.debian.org/debian/ stretch/main amd64 Packages
  *** 1.0.1-1+b1 0
         100 /var/lib/dpkg/status

输出apt-cache policy

代码语言:javascript
复制
100 /var/lib/dpkg/status
     release a=now
 500 http://security.debian.org/ stretch/updates/non-free Translation-en
 500 http://security.debian.org/ stretch/updates/main Translation-en
 500 http://security.debian.org/ stretch/updates/contrib Translation-en
 650 http://security.debian.org/ stretch/updates/non-free i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian-Security,c=non-free
     origin security.debian.org
 650 http://security.debian.org/ stretch/updates/contrib i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian-Security,c=contrib
     origin security.debian.org
 650 http://security.debian.org/ stretch/updates/main i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian-Security,c=main
     origin security.debian.org
 650 http://security.debian.org/ stretch/updates/non-free amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian-Security,c=non-free
     origin security.debian.org
 650 http://security.debian.org/ stretch/updates/contrib amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian-Security,c=contrib
     origin security.debian.org
 650 http://security.debian.org/ stretch/updates/main amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian-Security,c=main
     origin security.debian.org
 500 http://ftp2.fr.debian.org/debian/ stretch-updates/non-free Translation-en
 500 http://ftp2.fr.debian.org/debian/ stretch-updates/main Translation-en
 500 http://ftp2.fr.debian.org/debian/ stretch-updates/contrib Translation-en
 500 http://ftp2.fr.debian.org/debian/ stretch-updates/non-free i386 Packages
     release o=Debian,a=testing-updates,n=stretch-updates,l=Debian,c=non-free
     origin ftp2.fr.debian.org
 500 http://ftp2.fr.debian.org/debian/ stretch-updates/contrib i386 Packages
     release o=Debian,a=testing-updates,n=stretch-updates,l=Debian,c=contrib
     origin ftp2.fr.debian.org
 500 http://ftp2.fr.debian.org/debian/ stretch-updates/main i386 Packages
     release o=Debian,a=testing-updates,n=stretch-updates,l=Debian,c=main
     origin ftp2.fr.debian.org
 500 http://ftp2.fr.debian.org/debian/ stretch-updates/non-free amd64 Packages
     release o=Debian,a=testing-updates,n=stretch-updates,l=Debian,c=non-free
     origin ftp2.fr.debian.org
 500 http://ftp2.fr.debian.org/debian/ stretch-updates/contrib amd64 Packages
     release o=Debian,a=testing-updates,n=stretch-updates,l=Debian,c=contrib
     origin ftp2.fr.debian.org
 500 http://ftp2.fr.debian.org/debian/ stretch-updates/main amd64 Packages
     release o=Debian,a=testing-updates,n=stretch-updates,l=Debian,c=main
     origin ftp2.fr.debian.org
 500 http://ftp2.fr.debian.org/debian/ stretch/non-free Translation-en
 500 http://ftp2.fr.debian.org/debian/ stretch/main Translation-fr
 500 http://ftp2.fr.debian.org/debian/ stretch/main Translation-en
 500 http://ftp2.fr.debian.org/debian/ stretch/contrib Translation-en
 650 http://ftp2.fr.debian.org/debian/ stretch/non-free i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=non-free
     origin ftp2.fr.debian.org
 650 http://ftp2.fr.debian.org/debian/ stretch/contrib i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=contrib
     origin ftp2.fr.debian.org
 650 http://ftp2.fr.debian.org/debian/ stretch/main i386 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=main
     origin ftp2.fr.debian.org
 650 http://ftp2.fr.debian.org/debian/ stretch/non-free amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=non-free
     origin ftp2.fr.debian.org
 650 http://ftp2.fr.debian.org/debian/ stretch/contrib amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=contrib
     origin ftp2.fr.debian.org
 650 http://ftp2.fr.debian.org/debian/ stretch/main amd64 Packages
     release o=Debian,a=testing,n=stretch,l=Debian,c=main
     origin ftp2.fr.debian.org
EN

回答 2

Unix & Linux用户

发布于 2017-06-21 19:51:54

正如阿罗切斯特的评论所暗示的,删除该rdnssd包。

代码语言:javascript
复制
sudo apt-get remove rdnssd

这使我得以继续升级到Debian 9。

这个包是一种用于dns的自动conf守护进程.在我的系统上,它只是通过覆盖来自网络管理器的设置,经常破坏我的dns设置。(据我所知,正是这个包在搜索信息时给我带来了DNS问题,因为我知道如何解决升级问题。)

如果您不知道这个rdnssd包,也不知道什么是“使用递归DNS服务器(RDNSS)选项的DNS配置”,那么很可能您实际上并不需要它。

票数 1
EN

Unix & Linux用户

发布于 2017-06-19 21:48:10

我也有同样的错误。建议的升级程序是:

  1. apt-获取更新
  2. apt升级
  3. apt-获取区域-升级

做一个定期的升级,首先为我修复它。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/349347

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档