See also bug 10962 vsftpd gives an error when it is uninstalled warning: file /etc/rc.d/init.d/vsftpd: remove failed: No such file or directory Seems to be searching for the old init service file to remove and not finding it, but the package does contain one. # urpmf vsftpd | grep -e init -e service vsftpd:/etc/avahi/services/vsftpd.service vsftpd:/etc/rc.d/init.d/vsftpd vsftpd:/lib/systemd/system/vsftpd.service Reproducible: Steps to Reproduce:
Hardware: i586 => All
Adding you here Giuseppe as you use this program and know a bit about the patch, David too.
CC: (none) => g.merigo, luigiwalser
I'm adding here the same comment in the other bug: @claire could the init.d file be included in one of the patches introduced for this bug? Maybe there's some inclusion that put the file in the rpm if there isn't one alreaedy? I'm not very familiar with spec files even if I meddled with them sometimes, but it seems that there's something like this in the spec patch: %preun +if [ -e /etc/init.d/%{name} ]; then %stop_on_removal %name +fi Maybe the spec file for mageia did not include this check?
Here's what it has: %preun %_preun_service vsftpd if [ -x /usr/sbin/xinetd ];then %_post_service xinetd fi and what %_preun_service vsftpd runs is: /usr/share/rpm-helper/del-service vsftpd 0 vsftpd (assuming you're uninstalling the package...on upgrade when it runs it, the 0 is a 1). So that _preun_service call is standard for all services.
Current SPEC file: http://svnweb.mageia.org/packages/updates/3/vsftpd/current/SPECS/vsftpd.spec?revision=468626&view=markup
The updating bit is fine.. # urpmi vsftpd installing vsftpd-3.0.2-2.1.mga3.x86_64.rpm from /var/cache/urpmi/rpms Preparing... ############################ 1/1: vsftpd ############################ 1/1: removing vsftpd-3.0.2-2.mga3.x86_64 ############################ Removing is when it shows the error.. # urpme vsftpd removing vsftpd-3.0.2-2.1.mga3.x86_64 removing package vsftpd-3.0.2-2.1.mga3.x86_64 1/1: removing vsftpd-3.0.2-2.1.mga3.x86_64 ##################################### warning: /etc/vsftpd/vsftpd.conf saved as /etc/vsftpd/vsftpd.conf.rpmsave warning: file /etc/rc.d/init.d/vsftpd: remove failed: No such file or directory ##################################################################### It happens with both builds though so isn't a regression introduced with the patch.
Same issue as Bug 11458. *** This bug has been marked as a duplicate of bug 11458 ***
Status: NEW => RESOLVEDResolution: (none) => DUPLICATE