raspberry-pi - apt-get 在树莓派 3 (stretch) 上找不到后缀安装候选
问题描述
我正在尝试在我的树莓派 3(拉伸)上安装 MTA 后缀
我做了什么:
sudo apt-get update
-> 更新没有错误
sudo apt-get install postfix libsasl2-modules bsd-mailx
-> 错误:找不到安装候选者
我的 etc/apt/sources.list.d 文件:
- ajenti.list
- 节点源列表
- 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 作为管理面板运行
提前感谢您的建设性反馈!
解决方案
自己找到了解决方案:
在 /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 然后可以找到安装候选者。
推荐阅读
- windows - Windows 10 上的 GPU 计算集群比 Ubuntu 18.04 更快
- java - BasicTabbedPaneUI 聚焦时显示边框
- angular - 如何在 ion-item 中使用 *ngFor 以便每个都有单独的功能
- sql - 如何为 postgresql 中的特定部分设置条件?
- excel - Excel VBA 数据透视表筛选器
- php - 在 XML 和 PHP cURL 应用程序中的 POST 后隐藏确认标头
- directshow - MS Mpeg-2 Demultiplexer 过滤器内的缓冲区不足
- mysql - Mysql子查询返回null
- maven - 将文件从 Maven 元数据插件过滤到部署
- android - 怎么删除这个文件到