• [^] # Re: La destination existe

    Posté par . En réponse au message units : tous les liens sont brisés. Évalué à 1. Dernière modification le 12 avril 2020 à 11:48.

    Disons que j'ai du mal à m'y retrouver, je suis habituée aux interface graphiques...
    Merci pour les précisions et explications détaillées ;)

    Voilà, j'ai testé sur wpa_supplicant et cron.services, ces fichiers n'existent pas :

    lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:wpa_supplicant.service -> 51decb4502cd4092a0a39913687eb20b

    mia@mia-PC5:~$ ls -l 51decb4502cd4092a0a39913687eb20b
    ls: impossible d'accéder à '51decb4502cd4092a0a39913687eb20b': Aucun fichier ou dossier de ce type

    lrwxrwxrwx 1 root root 32 avril 10 13:52 invocation:cron.service -> 25f271bce59447c2a552e5e996a2b851

    mia@mia-PC5:~$ ls -l 25f271bce59447c2a552e5e996a2b851
    ls: impossible d'accéder à '25f271bce59447c2a552e5e996a2b851': Aucun fichier ou dossier de ce type
    mia@mia-PC5:~$

    En résumé :
    les liens brisés sont dans /run/systemd/units
    ls -la montre qu'ils pointent des des iD numériques en rouge
    Ces cibles n'existent pas, vérification est faite ci-dessus.

    Tandis que chez toi ils pointent vers /etc/systemd, ce qui est confirmé avec la commande find /etc/systemd/ -iname *.service -exec ls -l {} \;

    Or cette commande me donne bien le même résultat.

    Dans /etc/systemd/system/multi-users.terget.wants/
    se trouve wpa_supplicant.service :

    lrwxrwxrwx 1 root root 42 déc. 29 2018 /etc/systemd/system/multi-user.target.wants/wpa_supplicant.service -> /lib/systemd/system/wpa_supplicant.service

    ainsi que cron.service :

    lrwxrwxrwx 1 root root 32 déc. 29 2018 cron.service -> /lib/systemd/system/cron.service

    clamsmtp est en rouge, ça n'apparait pas ici, je le signale en majuscules en début de ligne.
    La cible n'existe donc pas d'après ce que tu as dit :

     mia@mia-PC5:/etc/systemd/system/multi-user.target.wants$ ls -la
     total 8
     drwxr-xr-x 2 root root 4096 avril 10 13:18 .
     drwxr-xr-x 17 root root 4096 avril 10 13:18 ..
     lrwxrwxrwx 1 root root 35 déc. 29 2018 anacron.service -> /lib/systemd/system/anacron.service
     lrwxrwxrwx 1 root root 40 déc. 29 2018 avahi-daemon.service -> /lib/systemd/system/avahi-daemon.service
     ICI EN ROUGE lrwxrwxrwx 1 root root 41 avril 10 13:18 clamav-daemon.service -> /lib/systemd/system/clamav-daemon.service
     lrwxrwxrwx 1 root root 44 avril 10 13:18 clamav-freshclam.service -> /lib/systemd/system/clamav-freshclam.service
     lrwxrwxrwx 1 root root 36 janv. 27 15:41 clamsmtp.service -> /lib/systemd/system/clamsmtp.service
     lrwxrwxrwx 1 root root 41 déc. 29 2018 console-setup.service -> /lib/systemd/system/console-setup.service
     lrwxrwxrwx 1 root root 32 déc. 29 2018 cron.service -> /lib/systemd/system/cron.service
     lrwxrwxrwx 1 root root 40 déc. 29 2018 cups-browsed.service -> /lib/systemd/system/cups-browsed.service
     lrwxrwxrwx 1 root root 29 déc. 29 2018 cups.path -> /lib/systemd/system/cups.path
     lrwxrwxrwx 1 root root 37 déc. 29 2018 dns-clean.service -> /lib/systemd/system/dns-clean.service
     lrwxrwxrwx 1 root root 35 mars 22 20:32 hddtemp.service -> /etc/systemd/system/hddtemp.service
     lrwxrwxrwx 1 root root 38 déc. 29 2018 irqbalance.service -> /lib/systemd/system/irqbalance.service
     lrwxrwxrwx 1 root root 38 déc. 29 2018 kerneloops.service -> /lib/systemd/system/kerneloops.service
     lrwxrwxrwx 1 root root 38 déc. 29 2018 lm-sensors.service -> /lib/systemd/system/lm-sensors.service
     lrwxrwxrwx 1 root root 38 sept. 11 2019 mintsystem.service -> /lib/systemd/system/mintsystem.service
     lrwxrwxrwx 1 root root 57 sept. 11 2019 mintupdate-automation-cleanup.service -> /lib/systemd/system/mintupdate-automation-cleanup.service
     lrwxrwxrwx 1 root root 47 déc. 29 2018 networkd-dispatcher.service -> /lib/systemd/system/networkd-dispatcher.service
     lrwxrwxrwx 1 root root 38 déc. 29 2018 networking.service -> /lib/systemd/system/networking.service
     lrwxrwxrwx 1 root root 42 déc. 29 2018 NetworkManager.service -> /lib/systemd/system/NetworkManager.service
     lrwxrwxrwx 1 root root 36 déc. 29 2018 ondemand.service -> /lib/systemd/system/ondemand.service
     lrwxrwxrwx 1 root root 35 déc. 29 2018 openvpn.service -> /lib/systemd/system/openvpn.service
     lrwxrwxrwx 1 root root 35 mars 1 16:34 postfix.service -> /lib/systemd/system/postfix.service
     lrwxrwxrwx 1 root root 36 déc. 29 2018 pppd-dns.service -> /lib/systemd/system/pppd-dns.service
     lrwxrwxrwx 1 root root 36 févr. 10 2019 qemu-kvm.service -> /lib/systemd/system/qemu-kvm.service
     lrwxrwxrwx 1 root root 36 déc. 29 2018 remote-fs.target -> /lib/systemd/system/remote-fs.target
     lrwxrwxrwx 1 root root 33 déc. 29 2018 rsync.service -> /lib/systemd/system/rsync.service
     lrwxrwxrwx 1 root root 35 déc. 29 2018 rsyslog.service -> /lib/systemd/system/rsyslog.service
     lrwxrwxrwx 1 root root 34 nov. 18 17:42 smartd.service -> /lib/systemd/system/smartd.service
     lrwxrwxrwx 1 root root 31 janv. 30 2019 ssh.service -> /lib/systemd/system/ssh.service
     lrwxrwxrwx 1 root root 44 déc. 29 2018 systemd-resolved.service -> /lib/systemd/system/systemd-resolved.service
     lrwxrwxrwx 1 root root 36 déc. 29 2018 thermald.service -> /lib/systemd/system/thermald.service
     lrwxrwxrwx 1 root root 53 déc. 29 2018 ubuntu-system-adjustments.service -> /lib/systemd/system/ubuntu-system-adjustments.service
     lrwxrwxrwx 1 root root 31 déc. 29 2018 ufw.service -> /lib/systemd/system/ufw.service
     lrwxrwxrwx 1 root root 42 déc. 29 2018 wpa_supplicant.service -> /lib/systemd/system/wpa_supplicant.service
     mia@mia-PC5:/etc/systemd/system/multi-user.target.wants$

    Ces liens pointent vers lib/systemd/system/
    Contenu des fichiers :

    Pour WPA supplicant :

    [Unit]
    Description=WPA supplicant
    Before=network.target
    After=dbus.service
    Wants=network.target
    IgnoreOnIsolate=true

    [Service]
    Type=dbus
    BusName=fi.w1.wpa_supplicant1
    ExecStart=/sbin/wpa_supplicant -u -s -O /run/wpa_supplicant

    [Install]
    WantedBy=multi-user.target
    Alias=dbus-fi.w1.wpa_supplicant1.service

    Pour cron :

    [Unit]
    Description=Regular background program processing daemon
    Documentation=man:cron(8)

    [Service]
    EnvironmentFile=-/etc/default/cron
    ExecStart=/usr/sbin/cron -f $EXTRA_OPTS
    IgnoreSIGPIPE=false
    KillMode=process

    [Install]
    WantedBy=multi-user.target

    Bizarrement, ces fichiers ne sont pas exécutables, ni aucun se trouvant dans le dossier /lib/systemd/system d'ailleurs.

    4 -rw-r--r-- 1 root root 251 nov. 16 2017 cron.service

    4 -rw-r--r-- 1 root root 307 sept. 17 2019 wpa_supplicant.service

    Bruno insiste sur le fait que tout va bien et que ces liens brisés sont un bug de Nemo.

    Ça n'est pas la première fois que je passe du temps sur des problèmes qui se révèlent être des bugs au final.