Portál AbcLinuxu, 14. května 2025 04:10
server1:/home/hates# apt-get remove proftpd Reading Package Lists... Done Building Dependency Tree... Done The following packages will be REMOVED: proftpd proftpd-common 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0B of archives. After unpacking 1262kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 37482 files and directories currently installed.) Removing proftpd-common ... Removing proftpd ... /etc/init.d/proftpd: line 19: /etc/rc.d/init.d/functions: No such file or directory invoke-rc.d: initscript proftpd, action "stop" failed. dpkg: error processing proftpd (--remove): subprocess pre-removal script returned error exit status 1 --output-fd: unknown option debconf: whiptail output to the above errors, giving up! dpkg: error while cleaning up: subprocess post-installation script returned error exit status 255 Errors were encountered while processing: proftpd E: Sub-process /usr/bin/dpkg returned an error code (1) server1:/home/hates#Prosím o radu co s tím. Už si s tím lámu hlavu od rána.
apt
, chyba je v init skriptu proftpd. Před odstraněním služby se služba vypíná a zřejmě selže stop
, protože se snaží includnout funkce v /etc/rc.d/init.d/functions
.
Doporučil bych jako rychlý hack, přidat na začátek /etc/init.d/proftpd
řádek exit 0
, pak to snad projde.
Je zajímavá ta cesta, odkud se snzží funkce includovat, skoro bych to tipoval na trvalejší problém v konfiguraci. proftpd na tom počítači někdy fungovalo?
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.