特殊:Badtitle/NS100:VerifyIsoHowto:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第10行: | 第10行: | ||
After verifying the ISO file, you can [BurningIsoHowto burn it to a CD]. | After verifying the ISO file, you can [BurningIsoHowto burn it to a CD]. | ||
== Download MD5SUMS and MD5SUMS.gpg == | == Download MD5SUMS and MD5SUMS.gpg == | ||
Just download the two files from any of the mirrors. Store them in the same directory. For Hardy, the CD image MD5s can be found at http://releases.ubuntu.com/8.04/MD5SUMS and the Hardy DVDs can be found at http://cdimage.ubuntu.com/releases/8.04/release/MD5SUMS | Just download the two files from any of the mirrors. Store them in the same directory. For Hardy, the CD image MD5s can be found at http://releases.ubuntu.com/8.04/MD5SUMS and the Hardy DVDs can be found at http://cdimage.ubuntu.com/releases/8.04/release/MD5SUMS. If you're using another version of Ubuntu, change "8.04" in those URLs to your version number (e.g. 8.10 for Intrepid Ibex). | ||
== Get the key == | == Get the key == | ||
=== Find out what key was used to issue the signature === | === Find out what key was used to issue the signature === | ||
第80行: | 第80行: | ||
'''Other Languages:''' | '''Other Languages:''' | ||
* Spanish (Español): [[UbuntuHelp:ComoVerificarIso|ComoVerificarIso]] | * Spanish (Español): [[UbuntuHelp:ComoVerificarIso|ComoVerificarIso]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2009年5月12日 (二) 19:27的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/VerifyIsoHowto }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/af | • {{#if: UbuntuHelp:VerifyIsoHowto|Afrikaans| [[::VerifyIsoHowto/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/ar | • {{#if: UbuntuHelp:VerifyIsoHowto|العربية| [[::VerifyIsoHowto/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/az | • {{#if: UbuntuHelp:VerifyIsoHowto|azərbaycanca| [[::VerifyIsoHowto/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/bcc | • {{#if: UbuntuHelp:VerifyIsoHowto|جهلسری بلوچی| [[::VerifyIsoHowto/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/bg | • {{#if: UbuntuHelp:VerifyIsoHowto|български| [[::VerifyIsoHowto/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/br | • {{#if: UbuntuHelp:VerifyIsoHowto|brezhoneg| [[::VerifyIsoHowto/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/ca | • {{#if: UbuntuHelp:VerifyIsoHowto|català| [[::VerifyIsoHowto/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/cs | • {{#if: UbuntuHelp:VerifyIsoHowto|čeština| [[::VerifyIsoHowto/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/de | • {{#if: UbuntuHelp:VerifyIsoHowto|Deutsch| [[::VerifyIsoHowto/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/el | • {{#if: UbuntuHelp:VerifyIsoHowto|Ελληνικά| [[::VerifyIsoHowto/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/es | • {{#if: UbuntuHelp:VerifyIsoHowto|español| [[::VerifyIsoHowto/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/fa | • {{#if: UbuntuHelp:VerifyIsoHowto|فارسی| [[::VerifyIsoHowto/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/fi | • {{#if: UbuntuHelp:VerifyIsoHowto|suomi| [[::VerifyIsoHowto/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/fr | • {{#if: UbuntuHelp:VerifyIsoHowto|français| [[::VerifyIsoHowto/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/gu | • {{#if: UbuntuHelp:VerifyIsoHowto|ગુજરાતી| [[::VerifyIsoHowto/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/he | • {{#if: UbuntuHelp:VerifyIsoHowto|עברית| [[::VerifyIsoHowto/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/hu | • {{#if: UbuntuHelp:VerifyIsoHowto|magyar| [[::VerifyIsoHowto/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/id | • {{#if: UbuntuHelp:VerifyIsoHowto|Bahasa Indonesia| [[::VerifyIsoHowto/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/it | • {{#if: UbuntuHelp:VerifyIsoHowto|italiano| [[::VerifyIsoHowto/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/ja | • {{#if: UbuntuHelp:VerifyIsoHowto|日本語| [[::VerifyIsoHowto/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/ko | • {{#if: UbuntuHelp:VerifyIsoHowto|한국어| [[::VerifyIsoHowto/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/ksh | • {{#if: UbuntuHelp:VerifyIsoHowto|Ripoarisch| [[::VerifyIsoHowto/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/mr | • {{#if: UbuntuHelp:VerifyIsoHowto|मराठी| [[::VerifyIsoHowto/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/ms | • {{#if: UbuntuHelp:VerifyIsoHowto|Bahasa Melayu| [[::VerifyIsoHowto/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/nl | • {{#if: UbuntuHelp:VerifyIsoHowto|Nederlands| [[::VerifyIsoHowto/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/no | • {{#if: UbuntuHelp:VerifyIsoHowto|norsk| [[::VerifyIsoHowto/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/oc | • {{#if: UbuntuHelp:VerifyIsoHowto|occitan| [[::VerifyIsoHowto/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/pl | • {{#if: UbuntuHelp:VerifyIsoHowto|polski| [[::VerifyIsoHowto/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/pt | • {{#if: UbuntuHelp:VerifyIsoHowto|português| [[::VerifyIsoHowto/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/ro | • {{#if: UbuntuHelp:VerifyIsoHowto|română| [[::VerifyIsoHowto/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/ru | • {{#if: UbuntuHelp:VerifyIsoHowto|русский| [[::VerifyIsoHowto/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/si | • {{#if: UbuntuHelp:VerifyIsoHowto|සිංහල| [[::VerifyIsoHowto/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/sq | • {{#if: UbuntuHelp:VerifyIsoHowto|shqip| [[::VerifyIsoHowto/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/sr | • {{#if: UbuntuHelp:VerifyIsoHowto|српски / srpski| [[::VerifyIsoHowto/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/sv | • {{#if: UbuntuHelp:VerifyIsoHowto|svenska| [[::VerifyIsoHowto/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/th | • {{#if: UbuntuHelp:VerifyIsoHowto|ไทย| [[::VerifyIsoHowto/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/tr | • {{#if: UbuntuHelp:VerifyIsoHowto|Türkçe| [[::VerifyIsoHowto/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/vi | • {{#if: UbuntuHelp:VerifyIsoHowto|Tiếng Việt| [[::VerifyIsoHowto/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/yue | • {{#if: UbuntuHelp:VerifyIsoHowto|粵語| [[::VerifyIsoHowto/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/zh | • {{#if: UbuntuHelp:VerifyIsoHowto|中文| [[::VerifyIsoHowto/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/zh-hans | • {{#if: UbuntuHelp:VerifyIsoHowto|中文(简体)| [[::VerifyIsoHowto/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:VerifyIsoHowto | UbuntuHelp:VerifyIsoHowto | {{#if: | :}}VerifyIsoHowto}}/zh-hant | • {{#if: UbuntuHelp:VerifyIsoHowto|中文(繁體)| [[::VerifyIsoHowto/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:VerifyIsoHowto|:VerifyIsoHowto|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :VerifyIsoHowto/zh | | {{#ifexist: VerifyIsoHowto/zh | | {{#ifeq: {{#titleparts:VerifyIsoHowto|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:VerifyIsoHowto|1|-1|}} | zh | | }}
Verifying Ubuntu ISO images assumes basic knowledge of the command-line, checking MD5 checksums and using GnuPG. The steps are
- Download `MD5SUMS` and `MD5SUMS.gpg`
- Get the key used for the signature
- Verify the signature
- Check the ISO with `md5sum`
After verifying the ISO file, you can [BurningIsoHowto burn it to a CD].
Download MD5SUMS and MD5SUMS.gpg
Just download the two files from any of the mirrors. Store them in the same directory. For Hardy, the CD image MD5s can be found at http://releases.ubuntu.com/8.04/MD5SUMS and the Hardy DVDs can be found at http://cdimage.ubuntu.com/releases/8.04/release/MD5SUMS. If you're using another version of Ubuntu, change "8.04" in those URLs to your version number (e.g. 8.10 for Intrepid Ibex).
Get the key
Find out what key was used to issue the signature
By running GnuPG to verify the signature we can find out what key is needed:
$ gpg --verify MD5SUMS.gpg MD5SUMS gpg: Signature made Thu 12 May 2005 12:41:32 BST using DSA key ID FBB75451 gpg: Can't check signature: public key not found
The key ID is `0xFBB75451`.
Obtain the public key from the Ubuntu key server
To add the wanted key automatically to your keyring from the Ubuntu keyserver and calculate its trust:
$ gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0xFBB75451 gpg: requesting key FBB75451 from hkp server keyserver.ubuntu.com gpg: key FBB75451: public key "Ubuntu CD Image Automatic Signing Key <[email protected]>" imported gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model gpg: depth: 0 valid: 2 signed: 12 trust: 0-, 0q, 0n, 0m, 0f, 2u gpg: depth: 1 valid: 12 signed: 8 trust: 0-, 0q, 0n, 6m, 6f, 0u gpg: depth: 2 valid: 4 signed: 4 trust: 1-, 0q, 0n, 0m, 3f, 0u gpg: depth: 3 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 1f, 0u gpg: next trustdb check due at 2008-04-14 gpg: Total number processed: 1 gpg: imported: 1 $
Verify signature
Now when you verify the `MD5SUMS` file you'll get a result resembling this:
$ gpg --verify MD5SUMS.gpg MD5SUMS magnus@die[~/dload].$ gpg --verify MD5SUMS.gpg MD5SUMS gpg: Signature made Thu 12 May 2005 12:41:32 BST using DSA key ID FBB75451 gpg: Good signature from "Ubuntu CD Image Automatic Signing Key <[email protected]>" gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no indication that the signature belongs to the owner. Primary key fingerprint: C598 6B4F 1257 FFA8 6632 CBA7 4618 1433 FBB7 5451
In this example a "Good signature" validates the integrity of the MD5SUMS file. The warning message indicates your current GnuPG trust database does not have trust information for that signing key, unless you have actually verified and signed one of the public keys belonging to signers of the Ubuntu CD Image signing key. For more information about the OpenPGP Web of Trust see:
Check the ISO
On hard disk
The file MD5SUM contains MD5 hashes of the ISO images. Run `md5sum` on the ISO and compare the result with the relevant line in `MD5SUM`. See this link for more information on `MD5SUM`.
$ md5sum ubuntu-5.04-dvd-i386.iso 765dc370887735af71bc2cf6fcc9fafd ubuntu-5.04-dvd-i386.iso
Optional
Check again after burning since growisofs adds extra blank bytes increasing file size from 3048179712 (0xB5AF8800) to 3048210432 (0xB5B00000) bytes
$ md5sum ubuntu-5.10-dvd-i386.iso e41c0631f6f2c138a417b59bcb880fce $ wc -c ubuntu-5.10-dvd-i386.iso 3048179712 $ dd if=/dev/dvdwriter | head -c 3048179712 | md5sum e41c0631f6f2c138a417b59bcb880fce $
While booting
You can also check a disc while you are booting from it. This is useful for testing that your target hardware can properly read all of the disc. Divide the image size in bytes by 512 to get the size in blocks. Boot from the disc, and when the installer has reached the disk partitioning stage, switch to a shell (alt-2) and run the following command, adding the size of the ISO image in blocks as the argument "count".
$ dd if=/dev/cdroms/cdrom0 count=5953476 | md5sum e41c0631f6f2c138a417b59bcb880fce
Other Languages:
- Spanish (Español): ComoVerificarIso