首页 > 解决方案 > apt-get 在树莓派 3 (stretch) 上找不到后缀安装候选

问题描述

我正在尝试在我的树莓派 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

我还尝试了什么:

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

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

标签: raspberry-piapt-getdebian-stretch

解决方案


自己找到了解决方案:

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


推荐阅读