AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 547864
Accepted
alfish
alfish
Asked: 2013-10-23 08:51:08 +0800 CST2013-10-23 08:51:08 +0800 CST 2013-10-23 08:51:08 +0800 CST

无法在 Debian Squeeze 上安装 postfix

  • 772

我有这个奇怪的问题:apt-get 或 aptitude 无法安装 postfix。每次我收到此错误时:

# apt-get install postfix
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 postfix : Depends: libsasl2-2 but it is not going to be installed
E: Broken packages

和

# aptitude install postfix
The following NEW packages will be installed:
  postfix ssl-cert{a} 
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,417 kB of archives. After unpacking 3,535 kB will be used.
The following packages have unmet dependencies:
  exim4-config: Conflicts: postfix but 2.7.1-1+squeeze1 is to be installed.
  libsasl2-2: Breaks: postfix (<= 2.8.3-1) but 2.7.1-1+squeeze1 is to be installed.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     postfix [Not Installed]                            



Accept this solution? [Y/n/q/?] y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

/etc/apt/sources.list:

# deb http://ftp.de.debian.org/debian/ squeeze main

deb http://ftp.de.debian.org/debian/ squeeze main
deb-src http://ftp.de.debian.org/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

# squeeze-updates, previously known as 'volatile'
deb http://ftp.de.debian.org/debian/ squeeze-updates main
deb-src http://ftp.de.debian.org/debian/ squeeze-updates main



deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all


# MariaDB 10.0 repository list - created 2013-10-11 09:14 UTC
# http://mariadb.org/mariadb/repositories/
deb http://mirror.netcologne.de/mariadb/repo/10.0/debian squeeze main
deb-src http://mirror.netcologne.de/mariadb/repo/10.0/debian squeeze main

我试图 --purge 删除 potfix 和 exim5,然后重新安装,但问题仍然存在。感谢您的提示。

postfix
  • 1 1 个回答
  • 1119 Views

1 个回答

  • Voted
  1. Best Answer
    Zoredache
    2013-10-23T09:40:55+08:002013-10-23T09:40:55+08:00

    在 Debian 上,大量软件包需要 MTA。尝试清除 exim 或任何其他 MTA 将导致安装替代方案。替代方案的顺序是,删除 exim 将导致安装 exim 的替代版本或另一个 MTA。这些要求、备选方案和冲突使更改已安装的 MTA 有点棘手。由于简单地清除 MTA 并不容易,而且如果您确实尝试清除 MTA,您还必须安装几乎所有可以使用 MTA 的东西。

    为了处理这种 MTA 怪异,我的解决方案是安装 SSMTP。

    SSMTP 包,它是一个轻量级的无守护程序仅传出 MTA,将满足 MTA 要求,并且不会与其他 MTA 冲突。因此,您可以与标准存储库中的所有其他 MTA 同时安装 SSMTP。安装后,您可以清除 exim 或其他 MTA,并根据您的喜好进行更改。SSMTP 将满足 MTA 要求,并且不会导致 APT 做出令人困惑的事情来尝试确保您安装了 MTA。

    • 2

相关问题

  • Postfix 在特定端口上接受邮件

  • 让 Postfix 以两种方式处理垃圾邮件

  • Postfix 或 exim:自动/程序化和转发电子邮件设置

  • 后缀电子邮件地址

  • 什么是最好的开源电子邮件解决方案包

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve