2023年3月24日 星期五

[研究]wget2 v1.99.1安裝、試用 (Windows 10上Ubuntu 22.04.2 LTS子系統)

[研究]wget2 v1.99.1安裝、試用 (Windows 10上Ubuntu 22.04.2 LTS子系統)

2023-03-24

在一個安裝 Ubuntu 22.04.2 LTS子系統的 Windows 10上,安裝 wget2 v1.99.1 版,下載測試。

預設有wget 1.21.2 可以安裝,但沒有 wget2  1.99.1 可安裝,要先做 sudo apt-get update更新後,才有 wget2  1.99.1 可安裝。


uroot@WIN10:~$ pwd
/home/uroot
uroot@WIN10:~$ sudo apt-cache policy wget2
[sudo] password for uroot:
N: Unable to locate package wget2
uroot@WIN10:~$ sudo apt-cache policy wget
wget:
  Installed: 1.21.2-2ubuntu1
  Candidate: 1.21.2-2ubuntu1
  Version table:
 *** 1.21.2-2ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status
uroot@WIN10:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [14.1 MB]
Get:6 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [693 kB]
Get:7 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [143 kB]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [9016 B]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [645 kB]
Get:10 http://security.ubuntu.com/ubuntu jammy-security/restricted Translation-en [100 kB]
Get:11 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 c-n-f Metadata [588 B]
Get:12 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [714 kB]
Get:13 http://security.ubuntu.com/ubuntu jammy-security/universe Translation-en [118 kB]
Get:14 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [14.1 kB]
Get:15 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [19.4 kB]
Get:16 http://security.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [4068 B]
Get:17 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 c-n-f Metadata [228 B]
Get:18 http://archive.ubuntu.com/ubuntu jammy/universe Translation-en [5652 kB]
Get:19 http://archive.ubuntu.com/ubuntu jammy/universe amd64 c-n-f Metadata [286 kB]
Get:20 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [217 kB]
Get:21 http://archive.ubuntu.com/ubuntu jammy/multiverse Translation-en [112 kB]
Get:22 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 c-n-f Metadata [8372 B]
Get:23 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [949 kB]
Get:24 http://archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [205 kB]
Get:25 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [13.8 kB]
Get:26 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [684 kB]
Get:27 http://archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [107 kB]
Get:28 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 c-n-f Metadata [584 B]
Get:29 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [895 kB]
Get:30 http://archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [179 kB]
Get:31 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [18.4 kB]
Get:32 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [24.1 kB]
Get:33 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [6312 B]
Get:34 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 c-n-f Metadata [444 B]
Get:35 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [40.7 kB]
Get:36 http://archive.ubuntu.com/ubuntu jammy-backports/main Translation-en [9800 B]
Get:37 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 c-n-f Metadata [392 B]
Get:38 http://archive.ubuntu.com/ubuntu jammy-backports/restricted amd64 c-n-f Metadata [116 B]
Get:39 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [19.5 kB]
Get:40 http://archive.ubuntu.com/ubuntu jammy-backports/universe Translation-en [14.0 kB]
Get:41 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 c-n-f Metadata [392 B]
Get:42 http://archive.ubuntu.com/ubuntu jammy-backports/multiverse amd64 c-n-f Metadata [116 B]
Fetched 26.3 MB in 38s (692 kB/s)
Reading package lists... Done
uroot@WIN10:~$ sudo apt-cache policy wget2
wget2:
  Installed: (none)
  Candidate: 1.99.1-2.2
  Version table:
     1.99.1-2.2 500
        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages

uroot@WIN10:~$ sudo apt-get -y install wget2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libgpgme11 libwget0
The following NEW packages will be installed:
  libgpgme11 libwget0 wget2
0 upgraded, 3 newly installed, 0 to remove and 49 not upgraded.
Need to get 375 kB of archives.
After this operation, 1024 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 libgpgme11 amd64 1.16.0-1.2ubuntu4 [136 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libwget0 amd64 1.99.1-2.2 [143 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy/universe amd64 wget2 amd64 1.99.1-2.2 [95.8 kB]
Fetched 375 kB in 2s (157 kB/s)
Selecting previously unselected package libgpgme11:amd64.
(Reading database ... 24120 files and directories currently installed.)
Preparing to unpack .../libgpgme11_1.16.0-1.2ubuntu4_amd64.deb ...
Unpacking libgpgme11:amd64 (1.16.0-1.2ubuntu4) ...
Selecting previously unselected package libwget0.
Preparing to unpack .../libwget0_1.99.1-2.2_amd64.deb ...
Unpacking libwget0 (1.99.1-2.2) ...
Selecting previously unselected package wget2.
Preparing to unpack .../wget2_1.99.1-2.2_amd64.deb ...
Unpacking wget2 (1.99.1-2.2) ...
Setting up libwget0 (1.99.1-2.2) ...
Setting up libgpgme11:amd64 (1.16.0-1.2ubuntu4) ...
Setting up wget2 (1.99.1-2.2) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
uroot@WIN10:~$

uroot@WIN10:~$ wget2 --version
GNU Wget2 1.99.1 - multithreaded metalink/file/website downloader

+digest +https +ssl/gnutls +ipv6 +iri +large-file +nls -ntlm -opie +psl +iconv +idn2 +zlib +lzma +brotlidec +bzip2 +http2 +gpgme
uroot@WIN10:~$ wget2
Nothing to do - goodbye
uroot@WIN10:~$

測試

wget2 --no-check-certificate --mirror -p --convert-links -r https://www.xxx.idv.tw  



結果完全不會進行網站下載,測試網路是通的。

Windows 上的 Linux 子系統,相容性畢竟無法和真正的 Linux 相同。

(完)

相關

[研究]wget2 v1.99.1安裝、試用 (Windows 10上Ubuntu 22.04.2 LTS子系統)
https://shaurong.blogspot.com/2023/03/wget2-v1991-windows-10ubuntu-22042-lts.html

[研究]wget 1.21.2 與 wget2 v1.99.1網站下載軟體安裝、試用 (Ubuntu 22.04.2 LTS)
https://shaurong.blogspot.com/2023/03/wget2-v1991-ubuntu-22042-lts.html

[研究]wget2 v2.0.1網站下載軟體安裝、試用 (Rocky Linux 9.1)
https://shaurong.blogspot.com/2023/03/wget2-v201-rocky-linux-91.html

[研究]wget 1.21.1 網站下載軟體安裝、測試 (Rocky Linux 9.1)
https://shaurong.blogspot.com/2023/03/wget-1211-rocky-linux-91.html

[研究]Wget for Windows 1.21.3試用
https://shaurong.blogspot.com/2023/03/wget-for-windows-1213.html


沒有留言:

張貼留言