Ceci est la sortie de mon installation actuelle, après avoir exécuté apt-get upgrade
ou apt-get dist-upgrade
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)
Edit: apt-cache policy bind9
résultats:
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
Cela pourrait résoudre le problème:
Sudo apt-get install -f bind9
Si ce n'est pas le cas, cela pourrait résoudre le problème:
Sudo apt-get remove bind9
Sudo apt-get install bind9
Dans le cas contraire, vous voudrez peut-être supprimer bind9 directement via dpkg (pour éviter la désinstallation d’apt-get, quelle qu’elle soit):
Sudo dpkg --remove bind9
Sudo apt-get install -f bind9
Si dpkg ne veut pas supprimer bind9 (le paquet est peut-être dans un état incohérent et doit être réinstallé avant de pouvoir être supprimé), vous pouvez essayer de passer directement à la nouvelle version.
Sudo dpkg -i /var/cache/apt/archives/bind9_1:9.8.1.dfsg.P1-4ubuntu0.7_*.deb
Sudo apt-get install -f
Cela pourrait être dû au fichier de stratégie apparmor. Si vous voyez dans/var/log/syslog:
30 oct 12:07:40 noyau sd-51351: [1269834.299538] type = 1400 audit (1383131260.584: 39): apparmor = "DENIED" operation = "open" parent = 1968 profil = "/ usr/sbin/named" nom = "/var/named/run-root/usr/lib/x86_64-linux-gnu/openssl-1.0.0/engines/libgost.so" pid = 1969 comm = "nommé" md-masque demandé = "r" Refusé_mask = "r" fsuid = 107 ouid = 0
Ensuite, éditez /etc/apparmor.d/usr.sbin.named et ajoutez la ligne:
/ var/named/run-root/** rwm,
Ensuite, redémarrez les services:
Le service Sudo apparmor recharge le service Sudo bind9 start