#1 Le 20/10/2022, à 08:54
- slinge
Pb Installation proftpd sur 22.04LTS...
Bonjour,
Je viens d'upgrader un serveur de 20.04 à 22.04.
Tout s'est bien passé sauf proftpd
Si j'essayer d'installer manuellement, j'obtiens ça :
Failed to enable unit: Unit file /etc/systemd/system/proftpd.service is masked.
dpkg: error processing package proftpd-core (--configure):
installed proftpd-core package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.10.2-1) ...
Errors were encountered while processing:
proftpd-core
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up proftpd-core (1.3.7c+dfsg-1build1) ...
usermod: no changes
Synchronizing state of proftpd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable proftpd
Failed to enable unit: Unit file /etc/systemd/system/proftpd.service is masked.
dpkg: error processing package proftpd-core (--configure):
installed proftpd-core package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
proftpd-core
Une idée ?
Merci
Hors ligne
#2 Le 17/11/2022, à 12:12
- jepassaitparla
Re : Pb Installation proftpd sur 22.04LTS...
bonjour,
j'imagine que tu as réglé le problème mais ça pourra servir à d'autres:
si le fichier unit du service pointe vers /dev/null
sudo systemctl is-enabled <nom_du_service>
renvoie
masked
pour vérifier:
file /lib/systemd/system/<nom_du_service>.service
renvoie vraisemblablement
/lib/systemd/system/<nom_du_service>.service: symbolic link to /dev/null
donc
sudo rm /lib/systemd/system/<nom_du_service>.service
et
sudo systemctl daemon-reload
sudo systemctl start <nom_du_service>
Hors ligne