0

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

我做了什么:

sudo apt-get update 

-> 更新没有错误

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

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

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

  1. ajenti.list
  2. 节点源列表
  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 作为管理面板运行

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

4

1 回答 1

0

自己找到了解决方案:

在 /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 然后可以找到安装候选者。

于 2018-07-19T22:06:16.190 回答