Ubuntu Release Cdimage 16.04 (Xenial Xerus)

入口網址

個別網址

列表下載

將下面內容存成一個檔「iso.list」。

http://releases.ubuntu.com/16.04/ubuntu-16.04-desktop-amd64.iso
http://releases.ubuntu.com/16.04/ubuntu-16.04-server-amd64.iso
http://cdimage.ubuntu.com/xubuntu/releases/16.04/release/xubuntu-16.04-desktop-amd64.iso
http://cdimage.ubuntu.com/lubuntu/releases/16.04/release/lubuntu-16.04-desktop-amd64.iso
http://cdimage.ubuntu.com/kubuntu/releases/16.04/release/kubuntu-16.04-desktop-amd64.iso
http://cdimage.ubuntu.com/ubuntu-gnome/releases/16.04/release/ubuntu-gnome-16.04-desktop-amd64.iso
http://cdimage.ubuntu.com/ubuntu-mate/releases/16.04/release/ubuntu-mate-16.04-desktop-amd64.iso

然後執行

$ wget -c -i iso.list

checksum

將下面的內容存成「checksum.list」

http://releases.ubuntu.com/16.04/MD5SUMS
http://releases.ubuntu.com/16.04/SHA1SUMS
http://releases.ubuntu.com/16.04/SHA256SUMS

執行下面指令下載

$ wget -c -i checksum.list

比對方法一

$ cat MD5SUMS

顯示

c94d54942a2954cf852884d656224186 *ubuntu-16.04-desktop-amd64.iso
610c4a399df39a78866f9236b8c658da *ubuntu-16.04-desktop-i386.iso
23e97cd5d4145d4105fbf29878534049 *ubuntu-16.04-server-amd64.img
23e97cd5d4145d4105fbf29878534049 *ubuntu-16.04-server-amd64.iso
494c03028524dff2de5c41a800674692 *ubuntu-16.04-server-i386.img
494c03028524dff2de5c41a800674692 *ubuntu-16.04-server-i386.iso

執行

$ md5sum ubuntu-16.04-desktop-amd64.iso

顯示

c94d54942a2954cf852884d656224186  ubuntu-16.04-desktop-amd64.iso

比對上面的第一行,是否相同。

比對方法二

執行

$ md5sum -c MD5SUMS

顯示

ubuntu-16.04-desktop-amd64.iso: OK
md5sum: ubuntu-16.04-desktop-i386.iso: No such file or directory
ubuntu-16.04-desktop-i386.iso: FAILED open or read
md5sum: ubuntu-16.04-server-amd64.img: No such file or directory
ubuntu-16.04-server-amd64.img: FAILED open or read
ubuntu-16.04-server-amd64.iso: OK
md5sum: ubuntu-16.04-server-i386.img: No such file or directory
ubuntu-16.04-server-i386.img: FAILED open or read
md5sum: ubuntu-16.04-server-i386.iso: No such file or directory
ubuntu-16.04-server-i386.iso: FAILED open or read
md5sum: WARNING: 4 listed files could not be read

可以看到

ubuntu-16.04-desktop-amd64.iso: OK
ubuntu-16.04-server-amd64.iso: OK

一開始的列表,有下載「ubuntu-16.04-desktop-amd64.iso」和「ubuntu-16.04-server-amd64.iso」這兩個檔,所以檢查這兩個檔。

所以可以以此類推

執行

$ sha1sum -c SHA1SUMS

顯示

ubuntu-16.04-desktop-amd64.iso: OK
sha1sum: ubuntu-16.04-desktop-i386.iso: No such file or directory
ubuntu-16.04-desktop-i386.iso: FAILED open or read
sha1sum: ubuntu-16.04-server-amd64.img: No such file or directory
ubuntu-16.04-server-amd64.img: FAILED open or read
ubuntu-16.04-server-amd64.iso: OK
sha1sum: ubuntu-16.04-server-i386.img: No such file or directory
ubuntu-16.04-server-i386.img: FAILED open or read
sha1sum: ubuntu-16.04-server-i386.iso: No such file or directory
ubuntu-16.04-server-i386.iso: FAILED open or read
sha1sum: WARNING: 4 listed files could not be read

執行

$ sha256sum -c SHA256SUMS

顯示

ubuntu-16.04-desktop-amd64.iso: OK
sha256sum: ubuntu-16.04-desktop-i386.iso: No such file or directory
ubuntu-16.04-desktop-i386.iso: FAILED open or read
sha256sum: ubuntu-16.04-server-amd64.img: No such file or directory
ubuntu-16.04-server-amd64.img: FAILED open or read
ubuntu-16.04-server-amd64.iso: OK
sha256sum: ubuntu-16.04-server-i386.img: No such file or directory
ubuntu-16.04-server-i386.img: FAILED open or read
sha256sum: ubuntu-16.04-server-i386.iso: No such file or directory
ubuntu-16.04-server-i386.iso: FAILED open or read
sha256sum: WARNING: 4 listed files could not be read

manpage

Wikipidia