View Issue Details

IDProjectCategoryView StatusLast Update
0008208Kali LinuxKali Package Bugpublic2025-07-14 09:36
Reporterhoudabelhad Assigned Tosteev  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Summary0008208: When attempting to restart the bind9 service on Kali Linux, an error message appears stating that the unit bind9.service could n
Description

I installed the bind9 service on Kali Linux using the 'apt-get install bind9' command. The installation completed without any issues, but when attempting to restart the service using the 'systemctl restart bind9.service' command, an error message is displayed indicating that the unit bind9.service cannot be found. I also tried to restart the service using the '/etc/init.d/bind9 restart' command, but this failed with a similar error message. I checked for the presence of the configuration file '/etc/bind/named.conf', and it is present on the system. There seems to be a problem with the configuration or installation of bind9 on my Kali Linux system.

Steps To Reproduce

1- sudo apt-get install bind9 :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
dh-elpa-helper libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream
libnginx-mod-stream-geoip nginx-common nginx-core python3-speaklater
Veuillez utiliser « sudo apt autoremove » pour les supprimer.
Paquets suggérés :
bind-doc resolvconf
Les NOUVEAUX paquets suivants seront installés :
bind9
0 mis à jour, 1 nouvellement installés, 0 à enlever et 212 non mis à jour.
Il est nécessaire de prendre 0 o/489 ko dans les archives.
Après cette opération, 1 155 ko d'espace disque supplémentaires seront utilisés.
Sélection du paquet bind9 précédemment désélectionné.
(Lecture de la base de données... 397077 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../bind9_1%3a9.18.12-1_amd64.deb ...
Dépaquetage de bind9 (1:9.18.12-1) ...
Paramétrage de bind9 (1:9.18.12-1) ...
Ajout du groupe « bind » (GID 142)...
Fait.
Ajout de l'utilisateur système « bind » (UID 133) ...
Ajout du nouvel utilisateur « bind » (UID 133) avec pour groupe d'appartenance « bind » ...
Pas de création du répertoire personnel « /var/cache/bind ».
wrote key file "/etc/bind/rndc.key"
update-rc.d: We have no instructions for the named init script.
update-rc.d: It looks like a network service, we disable it.
named-resolvconf.service is a disabled or a static unit, not starting it.
named.service is a disabled or a static unit, not starting it.
Traitement des actions différées (« triggers ») pour ufw (0.36.1-4.1) ...
Traitement des actions différées (« triggers ») pour man-db (2.11.2-1) ...
Traitement des actions différées (« triggers ») pour kali-menu (2023.1.5) ...

2- sudo systemctl start bind9
Failed to start bind9.service: Unit bind9.service not found.

3- sudo journalctl -xe

[sudo] Mot de passe de houdabelhad :
mars 09 11:48:02 ldap.houda.com rtkit-daemon[796]: Supervising 4 threads of 2 processes of 1 users.
mars 09 11:48:02 ldap.houda.com rtkit-daemon[796]: Supervising 4 threads of 2 processes of 1 users.
mars 09 11:50:42 ldap.houda.com sudo[103247]: houdabelhad : TTY=pts/3 ; PWD=/home/houdabelhad ; USER=root ; COMMAND=/usr/bin/apt-get purge bind9
mars 09 11:50:42 ldap.houda.com sudo[103247]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
mars 09 11:50:45 ldap.houda.com systemd[1]: Reloading.
mars 09 11:50:46 ldap.houda.com systemd[1]: Reloading.
mars 09 11:50:49 ldap.houda.com systemd[1]: Reloading.
mars 09 11:50:51 ldap.houda.com crontab[103469]: (root) LIST (bind)
mars 09 11:50:51 ldap.houda.com userdel[103470]: delete user 'bind'
mars 09 11:50:51 ldap.houda.com userdel[103470]: removed group 'bind' owned by 'bind'
mars 09 11:50:51 ldap.houda.com userdel[103470]: removed shadow group 'bind' owned by 'bind'
mars 09 11:50:51 ldap.houda.com sudo[103247]: pam_unix(sudo:session): session closed for user root
mars 09 11:50:57 ldap.houda.com sudo[103513]: houdabelhad : TTY=pts/3 ; PWD=/home/houdabelhad ; USER=root ; COMMAND=/usr/bin/apt-get install bind9
mars 09 11:50:57 ldap.houda.com sudo[103513]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
mars 09 11:50:58 ldap.houda.com groupadd[103577]: group added to /etc/group: name=bind, GID=142
mars 09 11:50:58 ldap.houda.com groupadd[103577]: group added to /etc/gshadow: name=bind
mars 09 11:50:58 ldap.houda.com groupadd[103577]: new group: name=bind, GID=142
mars 09 11:50:58 ldap.houda.com useradd[103585]: new user: name=bind, UID=133, GID=142, home=/var/cache/bind, shell=/usr/sbin/nologin, from=/dev/pts/2
mars 09 11:50:58 ldap.houda.com audit[103611]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name=">
mars 09 11:50:58 ldap.houda.com kernel: audit: type=1400 audit(1678359058.910:29): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipp>
mars 09 11:50:58 ldap.houda.com systemd[1]: Reloading.
mars 09 11:51:00 ldap.houda.com systemd[1]: Reloading.
mars 09 11:51:01 ldap.houda.com systemd[1]: Reloading.
mars 09 11:51:03 ldap.houda.com systemd[1]: Reloading.
mars 09 11:51:06 ldap.houda.com sudo[103513]: pam_unix(sudo:session): session closed for user root
mars 09 11:51:56 ldap.houda.com sudo[104027]: houdabelhad : TTY=pts/3 ; PWD=/home/houdabelhad ; USER=root ; COMMAND=/usr/bin/ls /lib/systemd/system/bind9.service
mars 09 11:51:56 ldap.houda.com sudo[104027]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
mars 09 11:51:56 ldap.houda.com sudo[104027]: pam_unix(sudo:session): session closed for user root
mars 09 11:52:52 ldap.houda.com sudo[104291]: houdabelhad : TTY=pts/3 ; PWD=/usr/lib/systemd/system ; USER=root ; COMMAND=/usr/bin/systemctl start bind9
mars 09 11:52:52 ldap.houda.com sudo[104291]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
mars 09 11:52:52 ldap.houda.com sudo[104291]: pam_unix(sudo:session): session closed for user root
mars 09 11:53:37 ldap.houda.com sudo[104500]: houdabelhad : TTY=pts/3 ; PWD=/ ; USER=root ; COMMAND=/usr/bin/journalctl -xe
mars 09 11:53:37 ldap.houda.com sudo[104500]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
mars 09 11:53:51 ldap.houda.com sudo[104500]: pam_unix(sudo:session): session closed for user root
mars 09 11:55:01 ldap.houda.com CRON[104845]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
mars 09 11:55:01 ldap.houda.com CRON[104846]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
mars 09 11:55:01 ldap.houda.com CRON[104845]: pam_unix(cron:session): session closed for user root
mars 09 11:55:38 ldap.houda.com sudo[105018]: houdabelhad : TTY=pts/3 ; PWD=/ ; USER=root ; COMMAND=/usr/bin/systemctl start bind9.service
mars 09 11:55:38 ldap.houda.com sudo[105018]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
mars 09 11:55:38 ldap.houda.com sudo[105018]: pam_unix(sudo:session): session closed for user root

Additional Information

I have a Kali linux instaled on dual boot

Activities

steev

steev

2023-03-09 19:01

manager   ~0017637

The service is called named, not bind9. If you aren't sure of what service files a package provides, you can always dpkg -L <packagename> | grep service

Issue History

Date Modified Username Field Change
2023-03-09 10:58 houdabelhad New Issue
2023-03-09 19:01 steev Assigned To => steev
2023-03-09 19:01 steev Status new => closed
2023-03-09 19:01 steev Resolution open => no change required
2023-03-09 19:01 steev Note Added: 0017637
2025-07-14 09:36 g0tmi1k Priority high => normal