【问题标题】:How to download the content of an ubuntu archive with wget via Windows如何通过 Windows 使用 wget 下载 ubuntu 存档的内容
【发布时间】:2021-06-01 16:46:56
【问题描述】:

我想下载 ubuntu 焦点发行版的 ubuntu 存档,将其放在我们的一台 ftp 服务器(windows server 2016)上,并使用如下所示的 kickstarter 文件安装我们的系统。

..
d-i mirror/protocol string ftp
d-i mirror/ftp/hostname string 172.16.0.4
d-i mirror/ftp/directory string /Ubuntu-20.04/mirror/archive.ubuntu.com/ubuntu
d-i mirror/ftp/proxy string
..

我想在 Windows 上执行此操作,因为我们有通过此服务器部署的 linux 安装和 Windows 安装,而且我发现 Windows 上的文件管理更方便。我知道有很多关于带有 grub 引导加载程序的 ubuntu 服务器的教程和程序,但在这种情况下有点不同,我们有一个带有 syslinux 的 windows 服务器。

我在这里添加了线程如何在 ubuntu here.上使用 wget 镜像存档。 我需要克隆以下镜像

--> http://archive.ubuntu.com/ubuntu/dists/focal
--> http://archive.ubuntu.com/ubuntu/dists/focal-security
--> http://archive.ubuntu.com/ubuntu/dists/focal-updates
--> http://archive.ubuntu.com/ubuntu/pool/

如何在 cmd 中执行此操作?有什么想法吗?

【问题讨论】:

    标签: windows networking deployment wget


    【解决方案1】:

    我想我找到了解决办法。

    1 - 我通过 sourceforge 下载 Windows 版 Wget

    2 - 我将 wget.exe 文件放在 c:\Windows\System32 文件夹中,以便通过 cmd 使用 > wget 调用它 3 - 创建 c:\ubuntu2004 文件夹后,我输入以下命令:

    > cd c:\Ubuntu2004
    > wget --continue --recursive --no-parent -R "index.html*" -r http://archive.ubuntu.com/ubuntu/dists/focal
    > wget --continue --recursive --no-parent -R "index.html*" -r http://archive.ubuntu.com/ubuntu/dists/focal-updates/
    > wget --continue --recursive --no-parent -R "index.html*" -r http://archive.ubuntu.com/ubuntu/dists/focal-security/
    > wget --continue --recursive --no-parent -R "index.html*" -r http://archive.ubuntu.com/ubuntu/pool/
    

    现在我需要大量空间,尤其是用于池文件夹。但是如果你有一个 500GB 的磁盘就没有问题了。

    【讨论】:

      猜你喜欢
      • 2016-12-04
      • 1970-01-01
      • 1970-01-01
      • 2011-02-07
      • 1970-01-01
      • 2017-10-27
      • 2013-04-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多