dpkg: error processing package postfix (--configure)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite
1












When I try install postfix I'm receiving following error:



root@myvps:~# apt install postfix
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
postfix-sqlite
Suggested packages:
postfix-mysql postfix-pgsql postfix-ldap postfix-pcre postfix-lmdb sasl2-bin
dovecot-common resolvconf postfix-cdb ufw postfix-doc
The following NEW packages will be installed:
postfix postfix-sqlite
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,755 kB of archives.
After this operation, 4,378 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
Selecting previously unselected package postfix-sqlite.
(Reading database ... 66632 files and directories currently installed.)
Preparing to unpack .../postfix-sqlite_3.1.8-0+deb9u1_amd64.deb ...
Unpacking postfix-sqlite (3.1.8-0+deb9u1) ...
Selecting previously unselected package postfix.
Preparing to unpack .../postfix_3.1.8-0+deb9u1_amd64.deb ...
Unpacking postfix (3.1.8-0+deb9u1) ...
Processing triggers for systemd (232-25+deb9u2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up postfix-sqlite (3.1.8-0+deb9u1) ...
grep: /etc/postfix/dynamicmaps.cf: No such file or directory
Adding sqlite map entry to /etc/postfix/dynamicmaps.cf
Processing triggers for rsyslog (8.24.0-1) ...
Setting up postfix (3.1.8-0+deb9u1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service → /lib/systemd/system/postfix.service.
Adding group `postdrop' (GID 118) ...
Done.
setting myhostname: myvps
setting alias maps
setting alias database
setting myorigin
setting destinations: $myhostname, example.com, myvps, localhost.localdomain, localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_command
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
setting inet_protocols: all

Postfix (main.cf) is now set up with a default configuration. If you need to
make changes, edit /etc/postfix/main.cf (and others) as needed. To view
Postfix configuration values, see postconf(1).

After modifying main.cf, be sure to run 'service postfix reload'.

Running newaliases
newaliases: fatal: scan_dir_push: open directory /etc/postfix/dynamicmaps.cf.d: Permission denied
dpkg: error processing package postfix (--configure):
subprocess installed post-installation script returned error exit status 75
Processing triggers for systemd (232-25+deb9u2) ...
Processing triggers for rsyslog (8.24.0-1) ...
Errors were encountered while processing:
postfix
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)


Why dpkg fails when I try install postfix?



The output of ls -ld /etc/postfix/dynamicmaps.cf.d:



ls: cannot access '/etc/postfix/dynamicmaps.cf.d': No such file or directory






share|improve this question






















  • The error is there in plain english... does rm -rf /etc//postfix before installing solve it?
    – Rui F Ribeiro
    Mar 16 at 15:01











  • @RuiFRibeiro No, it doesn't.
    – java-devel
    Mar 16 at 15:06










  • @StephenKitt I've added already.
    – java-devel
    Mar 16 at 15:06










  • Ubuntu, buster or kali I bet.... post install inconsistencies.
    – Rui F Ribeiro
    Mar 16 at 15:08











  • No, Debian 9 Stretch.
    – java-devel
    Mar 16 at 15:12














up vote
0
down vote

favorite
1












When I try install postfix I'm receiving following error:



root@myvps:~# apt install postfix
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
postfix-sqlite
Suggested packages:
postfix-mysql postfix-pgsql postfix-ldap postfix-pcre postfix-lmdb sasl2-bin
dovecot-common resolvconf postfix-cdb ufw postfix-doc
The following NEW packages will be installed:
postfix postfix-sqlite
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,755 kB of archives.
After this operation, 4,378 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
Selecting previously unselected package postfix-sqlite.
(Reading database ... 66632 files and directories currently installed.)
Preparing to unpack .../postfix-sqlite_3.1.8-0+deb9u1_amd64.deb ...
Unpacking postfix-sqlite (3.1.8-0+deb9u1) ...
Selecting previously unselected package postfix.
Preparing to unpack .../postfix_3.1.8-0+deb9u1_amd64.deb ...
Unpacking postfix (3.1.8-0+deb9u1) ...
Processing triggers for systemd (232-25+deb9u2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up postfix-sqlite (3.1.8-0+deb9u1) ...
grep: /etc/postfix/dynamicmaps.cf: No such file or directory
Adding sqlite map entry to /etc/postfix/dynamicmaps.cf
Processing triggers for rsyslog (8.24.0-1) ...
Setting up postfix (3.1.8-0+deb9u1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service → /lib/systemd/system/postfix.service.
Adding group `postdrop' (GID 118) ...
Done.
setting myhostname: myvps
setting alias maps
setting alias database
setting myorigin
setting destinations: $myhostname, example.com, myvps, localhost.localdomain, localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_command
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
setting inet_protocols: all

Postfix (main.cf) is now set up with a default configuration. If you need to
make changes, edit /etc/postfix/main.cf (and others) as needed. To view
Postfix configuration values, see postconf(1).

After modifying main.cf, be sure to run 'service postfix reload'.

Running newaliases
newaliases: fatal: scan_dir_push: open directory /etc/postfix/dynamicmaps.cf.d: Permission denied
dpkg: error processing package postfix (--configure):
subprocess installed post-installation script returned error exit status 75
Processing triggers for systemd (232-25+deb9u2) ...
Processing triggers for rsyslog (8.24.0-1) ...
Errors were encountered while processing:
postfix
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)


Why dpkg fails when I try install postfix?



The output of ls -ld /etc/postfix/dynamicmaps.cf.d:



ls: cannot access '/etc/postfix/dynamicmaps.cf.d': No such file or directory






share|improve this question






















  • The error is there in plain english... does rm -rf /etc//postfix before installing solve it?
    – Rui F Ribeiro
    Mar 16 at 15:01











  • @RuiFRibeiro No, it doesn't.
    – java-devel
    Mar 16 at 15:06










  • @StephenKitt I've added already.
    – java-devel
    Mar 16 at 15:06










  • Ubuntu, buster or kali I bet.... post install inconsistencies.
    – Rui F Ribeiro
    Mar 16 at 15:08











  • No, Debian 9 Stretch.
    – java-devel
    Mar 16 at 15:12












up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





When I try install postfix I'm receiving following error:



root@myvps:~# apt install postfix
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
postfix-sqlite
Suggested packages:
postfix-mysql postfix-pgsql postfix-ldap postfix-pcre postfix-lmdb sasl2-bin
dovecot-common resolvconf postfix-cdb ufw postfix-doc
The following NEW packages will be installed:
postfix postfix-sqlite
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,755 kB of archives.
After this operation, 4,378 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
Selecting previously unselected package postfix-sqlite.
(Reading database ... 66632 files and directories currently installed.)
Preparing to unpack .../postfix-sqlite_3.1.8-0+deb9u1_amd64.deb ...
Unpacking postfix-sqlite (3.1.8-0+deb9u1) ...
Selecting previously unselected package postfix.
Preparing to unpack .../postfix_3.1.8-0+deb9u1_amd64.deb ...
Unpacking postfix (3.1.8-0+deb9u1) ...
Processing triggers for systemd (232-25+deb9u2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up postfix-sqlite (3.1.8-0+deb9u1) ...
grep: /etc/postfix/dynamicmaps.cf: No such file or directory
Adding sqlite map entry to /etc/postfix/dynamicmaps.cf
Processing triggers for rsyslog (8.24.0-1) ...
Setting up postfix (3.1.8-0+deb9u1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service → /lib/systemd/system/postfix.service.
Adding group `postdrop' (GID 118) ...
Done.
setting myhostname: myvps
setting alias maps
setting alias database
setting myorigin
setting destinations: $myhostname, example.com, myvps, localhost.localdomain, localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_command
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
setting inet_protocols: all

Postfix (main.cf) is now set up with a default configuration. If you need to
make changes, edit /etc/postfix/main.cf (and others) as needed. To view
Postfix configuration values, see postconf(1).

After modifying main.cf, be sure to run 'service postfix reload'.

Running newaliases
newaliases: fatal: scan_dir_push: open directory /etc/postfix/dynamicmaps.cf.d: Permission denied
dpkg: error processing package postfix (--configure):
subprocess installed post-installation script returned error exit status 75
Processing triggers for systemd (232-25+deb9u2) ...
Processing triggers for rsyslog (8.24.0-1) ...
Errors were encountered while processing:
postfix
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)


Why dpkg fails when I try install postfix?



The output of ls -ld /etc/postfix/dynamicmaps.cf.d:



ls: cannot access '/etc/postfix/dynamicmaps.cf.d': No such file or directory






share|improve this question














When I try install postfix I'm receiving following error:



root@myvps:~# apt install postfix
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
postfix-sqlite
Suggested packages:
postfix-mysql postfix-pgsql postfix-ldap postfix-pcre postfix-lmdb sasl2-bin
dovecot-common resolvconf postfix-cdb ufw postfix-doc
The following NEW packages will be installed:
postfix postfix-sqlite
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1,755 kB of archives.
After this operation, 4,378 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
Selecting previously unselected package postfix-sqlite.
(Reading database ... 66632 files and directories currently installed.)
Preparing to unpack .../postfix-sqlite_3.1.8-0+deb9u1_amd64.deb ...
Unpacking postfix-sqlite (3.1.8-0+deb9u1) ...
Selecting previously unselected package postfix.
Preparing to unpack .../postfix_3.1.8-0+deb9u1_amd64.deb ...
Unpacking postfix (3.1.8-0+deb9u1) ...
Processing triggers for systemd (232-25+deb9u2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up postfix-sqlite (3.1.8-0+deb9u1) ...
grep: /etc/postfix/dynamicmaps.cf: No such file or directory
Adding sqlite map entry to /etc/postfix/dynamicmaps.cf
Processing triggers for rsyslog (8.24.0-1) ...
Setting up postfix (3.1.8-0+deb9u1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service → /lib/systemd/system/postfix.service.
Adding group `postdrop' (GID 118) ...
Done.
setting myhostname: myvps
setting alias maps
setting alias database
setting myorigin
setting destinations: $myhostname, example.com, myvps, localhost.localdomain, localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
setting mailbox_command
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
setting inet_protocols: all

Postfix (main.cf) is now set up with a default configuration. If you need to
make changes, edit /etc/postfix/main.cf (and others) as needed. To view
Postfix configuration values, see postconf(1).

After modifying main.cf, be sure to run 'service postfix reload'.

Running newaliases
newaliases: fatal: scan_dir_push: open directory /etc/postfix/dynamicmaps.cf.d: Permission denied
dpkg: error processing package postfix (--configure):
subprocess installed post-installation script returned error exit status 75
Processing triggers for systemd (232-25+deb9u2) ...
Processing triggers for rsyslog (8.24.0-1) ...
Errors were encountered while processing:
postfix
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)


Why dpkg fails when I try install postfix?



The output of ls -ld /etc/postfix/dynamicmaps.cf.d:



ls: cannot access '/etc/postfix/dynamicmaps.cf.d': No such file or directory








share|improve this question













share|improve this question




share|improve this question








edited Mar 16 at 15:03

























asked Mar 16 at 14:52









java-devel

255215




255215











  • The error is there in plain english... does rm -rf /etc//postfix before installing solve it?
    – Rui F Ribeiro
    Mar 16 at 15:01











  • @RuiFRibeiro No, it doesn't.
    – java-devel
    Mar 16 at 15:06










  • @StephenKitt I've added already.
    – java-devel
    Mar 16 at 15:06










  • Ubuntu, buster or kali I bet.... post install inconsistencies.
    – Rui F Ribeiro
    Mar 16 at 15:08











  • No, Debian 9 Stretch.
    – java-devel
    Mar 16 at 15:12
















  • The error is there in plain english... does rm -rf /etc//postfix before installing solve it?
    – Rui F Ribeiro
    Mar 16 at 15:01











  • @RuiFRibeiro No, it doesn't.
    – java-devel
    Mar 16 at 15:06










  • @StephenKitt I've added already.
    – java-devel
    Mar 16 at 15:06










  • Ubuntu, buster or kali I bet.... post install inconsistencies.
    – Rui F Ribeiro
    Mar 16 at 15:08











  • No, Debian 9 Stretch.
    – java-devel
    Mar 16 at 15:12















The error is there in plain english... does rm -rf /etc//postfix before installing solve it?
– Rui F Ribeiro
Mar 16 at 15:01





The error is there in plain english... does rm -rf /etc//postfix before installing solve it?
– Rui F Ribeiro
Mar 16 at 15:01













@RuiFRibeiro No, it doesn't.
– java-devel
Mar 16 at 15:06




@RuiFRibeiro No, it doesn't.
– java-devel
Mar 16 at 15:06












@StephenKitt I've added already.
– java-devel
Mar 16 at 15:06




@StephenKitt I've added already.
– java-devel
Mar 16 at 15:06












Ubuntu, buster or kali I bet.... post install inconsistencies.
– Rui F Ribeiro
Mar 16 at 15:08





Ubuntu, buster or kali I bet.... post install inconsistencies.
– Rui F Ribeiro
Mar 16 at 15:08













No, Debian 9 Stretch.
– java-devel
Mar 16 at 15:12




No, Debian 9 Stretch.
– java-devel
Mar 16 at 15:12















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430640%2fdpkg-error-processing-package-postfix-configure%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430640%2fdpkg-error-processing-package-postfix-configure%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)