将我的 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] 删除。
我来说两句