Tez*_*z13 7 server updates apt ftp 19.10
将我的 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.
Run Code Online (Sandbox Code Playgroud)
获取失败后ftp://。如何重新启用通过 FTP 检索系统更新?
在命令行运行
echo 'Dir::Bin::Methods::ftp "ftp";' | sudo tee -a /etc/apt/apt.conf.d/99local-ftp
Run Code Online (Sandbox Code Playgroud)
这将99local-ftp在/etc/apt/apt.conf.d/包含该行的文件夹中创建一个名为(如果需要,您可以选择另一个名称)的配置文件
Dir::Bin::Methods::ftp "ftp"
Run Code Online (Sandbox Code Playgroud)
这将为 apt 重新启用 FTP。
| 归档时间: |
|
| 查看次数: |
5447 次 |
| 最近记录: |