UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
I have problems with the installation of postfix on my server.
IRedMail initially install on my server with Ubuntu 14.0 LTS.
Then uninstall iRedMail with the official procedure.
Perform an upgrade to the successful system.
Now I try to install Postfix and does not finish the installation: Step 1:
sudo apt-get install postfix
Reading package lists ... Done
Building dependency tree
Reading state information ... Done
Already postfix is the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Step 2:
I try to start postfix settings and displays error.
sudo dpkg-reconfigure postfix
invoke-rc.d: initscript unknown, /etc/init.d/postfix not found.
If I try to uninstall postfix error occurs:
sudo apt-get remove postfix
Reading package lists ... Done
Building dependency tree ... 50%
Building dependency tree
Reading state information ... Done
The following packages will be REMOVED:
**postfix
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After This operation, 3,609 kB disk space will be freed.
(Reading database ... 95534 files and directories currently are installed.)
Removing postfix (2.11.0-1ubuntu1) ...
invoke-rc.d: initscript unknown, /etc/init.d/postfix not found.
dpkg: error processing postfix package (--remove):
*subprocess installed pre-removal script returned error exit status 100
Errors Were Encountered while processing:
*postfix
E: Sub-process / usr / bin / dpkg returned an error code (1)
root@vipertwo:~# apt-get --reinstall install postfix
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/1,084 kB of archives.
After this operation, 0 B of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package postfix.
(Reading database ... 95534 files and directories currently installed.)
Preparing to unpack .../postfix_2.11.0-1ubuntu1_amd64.deb ...
invoke-rc.d: unknown initscript, /etc/init.d/postfix not found.
dpkg: warning: subprocess old pre-removal script returned error exit status 100
dpkg: trying script from the new package instead ...
dpkg: ... it looks like that went OK
grep: /etc/postfix/master.cf: No such file or directory
grep: /etc/postfix/master.cf: No such file or directory
Unpacking postfix (2.11.0-1ubuntu1) over (2.11.0-1ubuntu1) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up postfix (2.11.0-1ubuntu1) ...
update-rc.d: /etc/init.d/postfix: file does not exist
dpkg: error processing package postfix (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Errors were encountered while processing:
postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
My misunderstanding, sorry. --reinstall still attempts to remove the package. I don't know how to prevent apt-get or dpkg from performing the pre-remove task, but here are two ideas:
Copy /etc/init.d/postfix from a working system (preferred)
Create a dummy /etc/init.d/postfix containing just the line "exit 0", and ensure no postfix processes are running
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.