【问题标题】:apt-get can't find postfix installation candidate on raspberry pi 3 (stretch)apt-get 在树莓派 3 (stretch) 上找不到后缀安装候选
【发布时间】:2018-07-20 06:06:16
【问题描述】:

我正在尝试在我的树莓派 3 (stretch) 上安装 MTA 后缀

我做了什么:

sudo apt-get update 

-> 更新无误

sudo apt-get install postfix libsasl2-modules bsd-mailx 

-> 错误:找不到安装候选者

我的 etc/apt/sources.list.d 文件:

  1. ajenti.list
  2. nodesource.list
  3. raspi.list

在 raspi.list 中:

deb http://archive.raspberrypi.org/debian/ stretch main ui staging
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspberrypi.org/debian/ stretch main ui

我还尝试了什么:

  • sudo apt-get upgrade 以安装最新的源代码。
  • 以 pi 和 root 身份登录
  • 测试互联网连接正常
  • 搜索解决方案

pi 将 nginx 作为反向代理运行,ajenti 作为管理面板运行

提前感谢您的建设性反馈!

【问题讨论】:

    标签: raspberry-pi apt-get debian-stretch


    【解决方案1】:

    自己找到了解决方案:

    在 /etc/apt 中缺少 sources.list 文件(不是目录“sources.list.d”)。所以我添加了一个新文件,命名为 sources.list 并放

    deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi
    # Uncomment line below then 'apt-get update' to enable 'apt-get source'
    deb-src http://archive.raspbian.org/raspbian/ stretch main contrib non-free rpi
    

    在里面。 apt-get install 可以找到安装候选者。

    【讨论】:

      猜你喜欢
      • 2019-12-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多