- Форум русскоязычного сообщества Ubuntu »
- Архив »
- Архив »
- Архив тем до 2018г »
- При обработке следующих пакетов произошли ошибки: postfix
- Печать
Страницы: [1] Вниз
Тема: При обработке следующих пакетов произошли ошибки: postfix (Прочитано 341 раз)
0 Пользователей и 1 Гость просматривают эту тему.
Сэм
Всем доброго времени суток.
Вот, собственно проблема
прежде чем писать, посмотрел советы в интернете — но я уже опасаюсь вот так по советам (а они то разных годов, разные версии ОС и т.д.) что-то настраивать: есть горький опыт, потом приходилось переустанавливать систему.
Просьба: подскажите, как решить эту проблему? Спасибо.
ТС не появлялся на Форуме более трех месяцев по состоянию на 05/12/2019 (последняя явка: 30/07/2019). Модератором раздела принято решение закрыть тему.
—zg_nico
« Последнее редактирование: 05 Декабря 2019, 08:50:07 от zg_nico »
- Печать
Страницы: [1] Вверх
- Форум русскоязычного сообщества Ubuntu »
- Архив »
- Архив »
- Архив тем до 2018г »
- При обработке следующих пакетов произошли ошибки: postfix
SMF 2.0.19 |
SMF © 2011, Simple Machines | Карта форума
Страница сгенерирована за 0.048 секунд. Запросов: 23.
Перейти к контенту
- Форум русскоязычного сообщества Ubuntu »
- Архив »
- Архив »
- Архив тем до 2018г »
- При обработке следующих пакетов произошли ошибки: postfix
- Печать
Страницы: [1] Вниз
Тема: При обработке следующих пакетов произошли ошибки: postfix (Прочитано 307 раз)
0 Пользователей и 1 Гость просматривают эту тему.
Сэм
Всем доброго времени суток.
Вот, собственно проблема
прежде чем писать, посмотрел советы в интернете — но я уже опасаюсь вот так по советам (а они то разных годов, разные версии ОС и т.д.) что-то настраивать: есть горький опыт, потом приходилось переустанавливать систему.
Просьба: подскажите, как решить эту проблему? Спасибо.
ТС не появлялся на Форуме более трех месяцев по состоянию на 05/12/2019 (последняя явка: 30/07/2019). Модератором раздела принято решение закрыть тему.
—zg_nico
« Последнее редактирование: 05 Декабря 2019, 08:50:07 от zg_nico »
- Печать
Страницы: [1] Вверх
- Форум русскоязычного сообщества Ubuntu »
- Архив »
- Архив »
- Архив тем до 2018г »
- При обработке следующих пакетов произошли ошибки: postfix
SMF 2.0.19 |
SMF © 2011, Simple Machines | Карта форума
Страница сгенерирована за 0.058 секунд. Запросов: 23.
[Решено]Установка и удаление пакета (ошибка)
Модератор: Модераторы разделов
-
Sherhan4ik
- Сообщения: 22
- ОС: XP
[Решено]Установка и удаление пакета
Ребят, пытаюсь полностью удалить пакет postfix а он мне выдает ошибку, как исправить?
Код: Выделить всё
root@sherhan-like:~# aptitude -f purge postfix
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Чтение информации о расширенных состояниях
Инициализация состояний пакетов... Готово
Следующие пакеты будут УДАЛЕНЫ:
postfix{ap}
0 пакетов обновлено, 0 установлено новых, 1 пакетов отмечено для удаления, и 0 пакетов не обновлено.
Необходимо получить 0Б архивов. После распаковки освободится 3277kБ.
Хотите продолжить? [Y/n/?] Y
Запись информации расширенных состояний... Готово
(Чтение базы данных... на данный момент установлено 135379 файлов и каталогов.)
Удаляется пакет postfix...
invoke-rc.d: unknown initscript, /etc/init.d/postfix not found.
dpkg: не удалось обработать параметр postfix (--purge):
подпроцесс pre-removal script возвратил код ошибки 100
При обработке следующих пакетов произошли ошибки:
postfix
E: Sub-process /usr/bin/dpkg returned an error code (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
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
I was running mc
and tried to install curl and postfix in the shell: apt-get install curl postfix
. A configuration dialog for postfix appeared and after pressing Ctrl-o (Toggle show/hide MC) two times I couldn’t read the configuration message anymore so I quit MC with F10. The apt-get process still existed and I killed it with sudo kill xxxx
.
Now apt-get doesn’t work.
I’ve tried apt-get -f install
X@X ~ % LC_ALL=C sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
exim4-config lsb-invalid-mta
The following packages will be REMOVED:
postfix
The following NEW packages will be installed:
exim4-config lsb-invalid-mta
0 upgraded, 2 newly installed, 1 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0 B/523 kB of archives.
After this operation, 2462 kB disk space will be freed.
Do you want to continue? [Y/n]
Preconfiguring packages ...
dpkg: postfix: dependency problems, but removing anyway as you requested:
lsb-core depends on lsb-invalid-mta (>= 4.1+Debian13+nmu1) | mail-transport-agent; however:
Package lsb-invalid-mta is not installed.
Package mail-transport-agent is not installed.
Package postfix which provides mail-transport-agent is to be removed.
Package exim4-daemon-light which provides mail-transport-agent is not installed.
bsd-mailx depends on default-mta | mail-transport-agent; however:
Package default-mta is not installed.
Package exim4-daemon-light which provides default-mta is not installed.
Package mail-transport-agent is not installed.
Package postfix which provides mail-transport-agent is to be removed.
Package exim4-daemon-light which provides mail-transport-agent is not installed.
(Reading database ... 421170 files and directories currently installed.)
Removing postfix (2.11.3-1) ...
dpkg: error processing package postfix (--remove):
subprocess installed pre-removal script returned error exit status 102
Errors were encountered while processing:
postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
and other solutions presented in various questions (Q1, Q2, Q3): apt-get purge postfix
, apt-get --reinstall install postfix
, dpkg --pending --configure
.
A really similar question (duplicate?) is Error in postfix, but it has no answer.
How can I fix the package manager? My OS is Debian Jessie.
EDIT 1
Bahamut’s suggestions fails with error code 102:
X@X ~ % LC_ALL=C sudo dpkg --install /var/cache/apt/archives/postfix_2.11.3-1_amd64.deb
Selecting previously unselected package postfix.
(Reading database ... 421172 files and directories currently installed.)
Preparing to unpack .../postfix_2.11.3-1_amd64.deb ...
dpkg: warning: subprocess old pre-removal script returned error exit status 102
dpkg: trying script from the new package instead ...
dpkg: ... it looks like that went OK
Unpacking postfix (2.11.3-1) over (2.11.3-1) ...
Setting up postfix (2.11.3-1) ...
insserv: script postfix is not an executable regular file, skipped!
Postfix configuration was not changed. 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 '/etc/init.d/postfix reload'.
Running newaliases
dpkg: error processing package postfix (--install):
subprocess installed post-installation script returned error exit status 102
Processing triggers for systemd (215-17+deb8u5) ...
Processing triggers for ufw (0.33-2) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for libc-bin (2.19-18+deb8u6) ...
Errors were encountered while processing:
postfix
package postfix 2.9.3-2~12.04.4 failed to install/upgrade: подпроцесс установлен сценарий post-installation возвратил код ошибки 75
Bug #1116943 reported by
Zinuv
on 2013-02-06
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postfix (Ubuntu) |
New |
Undecided |
Unassigned |
Bug Description
Running newaliases
newaliases: warning: valid_hostname: numeric hostname: 04
newaliases: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 04
dpkg: не удалось обработать параметр postfix (—configure):
подпроцесс установлен сценарий post-installation возвратил код ошибки 75
Обрабатываются триггеры для libc-bin …
ldconfig deferred processing now taking place
При обработке следующих пакетов произошли ошибки:
postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
zinuv@ubuntu12:~$ ^C
zinuv@ubuntu12:~$
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: postfix 2.9.3-2~12.04.4
ProcVersionSignature: Ubuntu 3.2.0-35.55-generic 3.2.34
Uname: Linux 3.2.0-35-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.1
AptOrdering:
postfix: Install
postfix: Configure
Architecture: amd64
Date: Wed Feb 6 11:27:51 2013
ErrorMessage: подпроцесс установлен сценарий post-installation возвратил код ошибки 75
EtcMailname: mail.ru
Hostname: ubuntu12.04
InstallationMedia: Ubuntu 12.04.1 LTS «Precise Pangolin» — Release amd64 (20120823.1)
MarkForUpload: True
PostconfMydomain: localdomain
PostconfMyhostname: ubuntu12.04
PostconfMyorigin: /etc/mailname
ResolvConf:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND — YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search cn.ru novotelecom.ru
SourcePackage: postfix
Title: package postfix 2.9.3-2~12.04.4 failed to install/upgrade: подпроцесс установлен сценарий post-installation возвратил код ошибки 75
UpgradeStatus: No upgrade log present (probably fresh install)
0
0
при попытке выполнить следующее действие
sudo dpkg —configure -a
пишет вот что:
Настраивается пакет postfix (2.4.5-3ubuntu1) …
Postfix configuration was not changed. 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 ‘/etc/init.d/postfix reload’.
Running newaliases
postalias: fatal: open database /etc/postfix/aliases.db: Permission denied
dpkg: не удалось обработать параметр postfix (—configure):
подпроцесс post-installation script возвратил код ошибки 1
Processing triggers for libc6 …
ldconfig deferred processing now taking place
При обработке следующих пакетов произошли ошибки:
postfix
че за нафиг и как это можно поправить? а то, соответственно, прилаги нормально не ставятся….
З.Ы. дистр ubuntu 7.10
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
package postfix 2.9.3-2~12.04.4 failed to install/upgrade: подпроцесс установлен сценарий post-installation возвратил код ошибки 75
Bug #1116943 reported by
Zinuv
on 2013-02-06
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postfix (Ubuntu)
|
New |
Undecided |
Unassigned
|
Bug Description
Running newaliases
newaliases: warning: valid_hostname: numeric hostname: 04
newaliases: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 04
dpkg: не удалось обработать параметр postfix (—configure):
подпроцесс установлен сценарий post-installation возвратил код ошибки 75
Обрабатываются триггеры для libc-bin …
ldconfig deferred processing now taking place
При обработке следующих пакетов произошли ошибки:
postfix
E: Sub-process /usr/bin/dpkg returned an error code (1)
zinuv@ubuntu12:~$ ^C
zinuv@ubuntu12:~$
ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: postfix 2.9.3-2~12.04.4
ProcVersionSignature: Ubuntu 3.2.0-35.55-generic 3.2.34
Uname: Linux 3.2.0-35-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.1
AptOrdering:
postfix: Install
postfix: Configure
Architecture: amd64
Date: Wed Feb 6 11:27:51 2013
ErrorMessage: подпроцесс установлен сценарий post-installation возвратил код ошибки 75
EtcMailname: mail.ru
Hostname: ubuntu12.04
InstallationMedia: Ubuntu 12.04.1 LTS «Precise Pangolin» — Release amd64 (20120823.1)
MarkForUpload: True
PostconfMydomain: localdomain
PostconfMyhostname: ubuntu12.04
PostconfMyorigin: /etc/mailname
ResolvConf:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND — YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search cn.ru novotelecom.ru
SourcePackage: postfix
Title: package postfix 2.9.3-2~12.04.4 failed to install/upgrade: подпроцесс установлен сценарий post-installation возвратил код ошибки 75
UpgradeStatus: No upgrade log present (probably fresh install)