首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法升级bind9

无法升级bind9
EN

Ask Ubuntu用户
提问于 2013-09-16 11:17:27
回答 2查看 7K关注 0票数 1

这是在运行apt-get upgradeapt-get dist-upgrade之后,我当前安装的输出

代码语言:javascript
复制
user@localhost:~# apt-get -f upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages will be upgraded:
  bind9
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/335 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
dpkg: dependency problems prevent configuration of bind9:
 bind9 depends on libbind9-80 (= 1:9.8.1.dfsg.P1-4ubuntu0.5); however:
  Version of libbind9-80 on system is 1:9.8.1.dfsg.P1-4ubuntu0.7.
 bind9 depends on libdns81 (= 1:9.8.1.dfsg.P1-4ubuntu0.5); however:
  Version of libdns81 on system is 1:9.8.1.dfsg.P1-4ubuntu0.7.
 bind9 depends on libisc83 (= 1:9.8.1.dfsg.P1-4ubuntu0.5); however:
  Version of libisc83 on system is 1:9.8.1.dfsg.P1-4ubuntu0.7.
 bind9 depends on libisccc80 (= 1:9.8.1.dfsg.P1-4ubuntu0.5); however:
  Version of libisccc80 on system is 1:9.8.1.dfsg.P1-4ubuntu0.7.
 bind9 depends on libisccfg82 (= 1:9.8.1.dfsg.P1-4ubuntu0.5); however:
  Version of libisccfg82 on system is 1:9.8.1.dfsg.P1-4ubuntu0.7.
 bind9 depends on liblwres80 (= 1:9.8.1.dfsg.P1-4ubuntu0.5); however:
  Version of liblwres80 on system is 1:9.8.1.dfsg.P1-4ubuntu0.7.
 bind9 depends on bind9utils (= 1:9.8.1.dfsg.P1-4ubuntu0.5); however:
  Version of bind9utils on system is 1:9.8.1.dfsg.P1-4ubuntu0.7.
dpkg: erroNo apport report written because the error message indicates it's a follow-up error from a previous failure.
                                      r processing bind9 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 bind9
E: Sub-process /usr/bin/dpkg returned an error code (1)

编辑:apt-cache policy bind9结果:

代码语言:javascript
复制
bind9:
  Installed: 1:9.8.1.dfsg.P1-4ubuntu0.5
  Candidate: 1:9.8.1.dfsg.P1-4ubuntu0.7
  Version table:
     1:9.8.1.dfsg.P1-4ubuntu0.7 0
        500 http://mirror.sov.uk.goscomb.net/ubuntu/ precise-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main i386 Packages
 *** 1:9.8.1.dfsg.P1-4ubuntu0.5 0
        100 /var/lib/dpkg/status
     1:9.8.1.dfsg.P1-4 0
        500 http://mirror.sov.uk.goscomb.net/ubuntu/ precise/main i386 Packages
EN

回答 2

Ask Ubuntu用户

回答已采纳

发布于 2013-09-16 13:03:06

这可能解决以下问题:

代码语言:javascript
复制
sudo apt-get install -f bind9

如果没有,那么这可能会解决这个问题:

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

如果做不到这一点,您可能希望直接通过dpkg删除bind9 (为了避免卸载依赖于它的任何东西):

代码语言:javascript
复制
sudo dpkg --remove bind9
sudo apt-get install -f bind9

如果dpkg不想删除bind9 (它可能会说包处于不一致的状态,需要在删除之前重新安装),则可以尝试直接升级到新版本。

代码语言:javascript
复制
sudo dpkg -i /var/cache/apt/archives/bind9_1:9.8.1.dfsg.P1-4ubuntu0.7_*.deb
sudo apt-get install -f
票数 3
EN

Ask Ubuntu用户

发布于 2013-10-30 11:17:12

这可能是由于政府的政策文件。如果在/var/log/syslog中看到:

10月30日12:07:40 sd-51351内核:1269834.299538 type=1400审核(1383131260.584:39):apparmor=拒绝“operation=”打开“parent=1968 profile=”/usr/sbin/命名为“requested_mask=”r denied_mask=“fsuid=107 ouid=0”命名为“requested_mask=”r denied_mask=“fsuid=107 ouid=0”。

编辑/etc/parmor.d/usr.sbin.name并添加行:

/var/named/run-root/** rwm,

然后,重新启动服务:

sudo服务设备重新加载sudo服务bind9启动

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

https://askubuntu.com/questions/346214

复制
相关文章

相似问题

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