首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >由于Ubuntu12.04LTS上的绑定问题,无法更新

由于Ubuntu12.04LTS上的绑定问题,无法更新
EN

Ask Ubuntu用户
提问于 2013-03-26 15:09:08
回答 1查看 1.2K关注 0票数 1

如何在Ubuntu上完全卸载Bind 9。如所示,这会导致保持服务器更新方面的问题。

代码语言:javascript
复制
  **root@cp11:~# apt-get upgrade**

    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    You might want to run 'apt-get -f install' to correct these.
    The following packages have unmet dependencies:
     bind9 : Depends: libbind9-80 (= 1:9.8.1.dfsg.P1-4ubuntu0.2) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is installed
             Depends: libdns81 (= 1:9.8.1.dfsg.P1-4ubuntu0.2) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is installed
             Depends: libisc83 (= 1:9.8.1.dfsg.P1-4ubuntu0.2) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is installed
             Depends: libisccc80 (= 1:9.8.1.dfsg.P1-4ubuntu0.2) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is installed
             Depends: libisccfg82 (= 1:9.8.1.dfsg.P1-4ubuntu0.2) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is installed
             Depends: liblwres80 (= 1:9.8.1.dfsg.P1-4ubuntu0.2) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is installed
             Depends: bind9utils (= 1:9.8.1.dfsg.P1-4ubuntu0.2) but 1:9.8.1.dfsg.P1-4ubuntu0.5 is installed
    E: Unmet dependencies. Try using -f.    
    root@cp11:~# apt-get -f install
    Reading package lists... Done
    Building dependency tree  
    Reading state information... Done
    Correcting dependencies... Done
    The following extra packages will be installed:
      bind9
    Suggested packages:
      bind9-doc
    The following packages will be upgraded:
      bind9
    1 upgraded, 0 newly installed, 0 to remove and 196 not upgraded.
    1 not fully installed or removed.
    Need to get 0 B/343 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.2); however:
      Version of libbind9-80 on system is 1:9.8.1.dfsg.P1-4ubuntu0.5.
     bind9 depends on libdns81 (= 1:9.8.1.dfsg.P1-4ubuntu0.2); however:
      Version of libdns81 on system is 1:9.8.1.dfsg.P1-4ubuntu0.5.
     bind9 depends on libisc83 (= 1:9.8.1.dfsg.P1-4ubuntu0.2); however:
      Version of libisc83 on system is 1:9.8.1.dfsg.P1-4ubuntu0.5.
     bind9 depends on libisccc80 (= 1:9.8.1.dfsg.P1-4ubuntu0.2); however:
      Version of libisccc80 on system is 1:9.8.1.dfsg.P1-4ubuntu0.5.
     bind9 depends on libisccfg82 (= 1:9.8.1.dfsg.P1-4ubuntu0.2); however:
      Version of libisccfg82 on system is 1:9.8.1.dfsg.P1-4ubuntu0.5.
     bind9 depends on liblwres80 (= 1:9.8.1.dfsg.P1-4ubuntu0.2); however:
      Version of liblwres80 on system is 1:9.8.1.dfsg.P1-4ubuntu0.5.
     bind9 depends on bind9utils (= 1:9.8.1.dfsg.P1-4ubuntu0.2); however:
      Version of bind9utils on system is 1:9.8.1.dfsg.P1-4ubuntu0.5.
    dpkg: error processing bind9 (--configure):
     dependency problems - leaving unconfigured
   No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
     bind9
    E: Sub-process /usr/bin/dpkg returned an error code (1)
EN

回答 1

Ask Ubuntu用户

发布于 2013-04-14 07:59:06

下面是一种看似激进的方法,可以解决这个错误。

我在Ubuntu论坛上看到了这一点,并引用了:https://help.ubuntu.com/community/Pa...otingProcedure

我在我的系统(server11)上尝试了这个,但是它没有工作,但是我还是把解决方案放在这里。在我的系统中,我已经可以在apt-get clean上看到它已经给出了与以前相同的错误。

代码语言:javascript
复制
sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists/*
sudo mkdir /var/lib/apt/lists/partial
sudo rm /var/cache/apt/*.bin
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update
sudo dpkg --configure -a
sudo apt-get install -f

原始参考资料:http://ubuntuforums.org/showthread.php?t=2068352&page=2

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

https://askubuntu.com/questions/272668

复制
相关文章

相似问题

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