如何在辅助 Ubuntu/Debian 服务器上重新启用 FTP 以从带有镜像存储库的主 Linux 服务器提取更新?

Tez13

将我的 Linux 服务器更新到 Ubuntu 19.10 和最新版本的 Debian,它们都指向我运行镜像存储库的主 Linux 服务器并允许通过 FTP 与其通信,现在我收到消息说明

The method 'ftp' is unsupported and disabled by default. 
Consider switching to http(s). 
Set Dir::Bin::Methods::ftp to "ftp" to enable it again.

获取失败后ftp://如何重新启用通过 FTP 检索系统更新?

弗洛里安·迪施

在命令行运行

echo 'Dir::Bin::Methods::ftp "ftp";' | sudo tee -a /etc/apt/apt.conf.d/99local-ftp

这将99local-ftp/etc/apt/apt.conf.d/包含该行的文件夹创建一个名为(如果需要,您可以选择另一个名称)的配置文件

Dir::Bin::Methods::ftp "ftp"

这将为 apt 重新启用 FTP。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

Related 相关文章

热门标签

归档