Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Cc: Guido Budack <glaivy@××××××.com>
Subject: Re: [gentoo-user] md5sum -c
Date: Sat, 15 Mar 2014 11:03:32
Message-Id: 201403151103.13610.michaelkintzios@gmail.com
In Reply to: [gentoo-user] md5sum -c by Guido Budack
1 On Friday 14 Mar 2014 06:34:25 Guido Budack wrote:
2 > Here the result with option-c:
3 >
4 > md5sum -c livedvd-amd64-multilib-20121221.iso
5 > md5sum: DVD-hybrid-amd64-blue.png: No such file or directory
6 > DVD-hybrid-amd64-blue.png: FAILED open or read
7 > md5sum: DVD-hybrid-amd64-purple.png: No such file or directory
8 > DVD-hybrid-amd64-purple.png: FAILED open or read
9 > md5sum: DVD-hybrid-x86-amd64-blue.png: No such file or directory
10 > DVD-hybrid-x86-amd64-blue.png: FAILED open or read
11 > md5sum: DVD-hybrid-x86-amd64-purple.png: No such file or directory
12 > DVD-hybrid-x86-amd64-purple.png: FAILED open or read
13 > md5sum: FINAL_4x3_gentoo_ten_Blue-1024-768-final.png: No such file or
14 > directory FINAL_4x3_gentoo_ten_Blue-1024-768-final.png: FAILED open or
15 > read
16 > md5sum: FINAL_4x3_gentoo_ten_Purple-1152-864.png: No such file or directory
17 > FINAL_4x3_gentoo_ten_Purple-1152-864.png: FAILED open or read
18 > md5sum: FINAL_4x3_gentoo_ten_Purple-1280-960-final.png: No such file or
19 > directory FINAL_4x3_gentoo_ten_Purple-1280-960-final.png: FAILED open or
20 > read md5sum: FINAL_4x3_gentoo_ten_Purple-1024-768-final.png: No such file
21 > or directory FINAL_4x3_gentoo_ten_Purple-1024-768-final.png: FAILED open
22 > or read md5sum: FINAL_4x3_gentoo_ten_Blue-1280-960-final.png: No such file
23 > or directory FINAL_4x3_gentoo_ten_Blue-1280-960-final.png: FAILED open or
24 > read
25 > md5sum: FINAL_4x3_gentoo_ten_Blue-1152-864.png: No such file or directory
26 > FINAL_4x3_gentoo_ten_Blue-1152-864.png: FAILED open or read
27 > md5sum: FINAL_4x3_gentoo_ten_Blue-800-600.png: No such file or directory
28 > FINAL_4x3_gentoo_ten_Blue-800-600.png: FAILED open or read
29 > md5sum: FINAL_4x3_gentoo_ten_Purple-800-600.png: No such file or directory
30 > FINAL_4x3_gentoo_ten_Purple-800-600.png: FAILED open or read
31 > md5sum: FINAL_widescreen-Blue-1920-1200-final.png: No such file or
32 > directory FINAL_widescreen-Blue-1920-1200-final.png: FAILED open or read
33 > md5sum: FINAL_widescreen-Blue-1440-900-final.png: No such file or directory
34 > FINAL_widescreen-Blue-1440-900-final.png: FAILED open or read
35 > md5sum: FINAL_widescreen-Blue-1920-1080-final.png: No such file or
36 > directory FINAL_widescreen-Blue-1920-1080-final.png: FAILED open or read
37 > md5sum: FINAL_widescreen-Blue-1600-900-final.png: No such file or directory
38 > FINAL_widescreen-Blue-1600-900-final.png: FAILED open or read
39 > md5sum: FINAL_widescreen-Blue-1280-800-final.png: No such file or directory
40 > FINAL_widescreen-Blue-1280-800-final.png: FAILED open or read
41 > md5sum: FINAL_widescreen-Blue-1280-720-final.png: No such file or directory
42 > FINAL_widescreen-Blue-1280-720-final.png: FAILED open or read
43 > md5sum: FINAL_widescreen-Purple-1920-1080-final.png: No such file or
44 > directory FINAL_widescreen-Purple-1920-1080-final.png: FAILED open or read
45 > md5sum: FINAL_widescreen-Purple-1280-720-final.png: No such file or
46 > directory FINAL_widescreen-Purple-1280-720-final.png: FAILED open or read
47 > md5sum: FINAL_widescreen-Purple-1280-800-final.png: No such file or
48 > directory FINAL_widescreen-Purple-1280-800-final.png: FAILED open or read
49 > md5sum: FINAL_widescreen-Purple-1920-1200-final.png: No such file or
50 > directory FINAL_widescreen-Purple-1920-1200-final.png: FAILED open or read
51 > md5sum: FINAL_widescreen-Purple-1440-900-final.png: No such file or
52 > directory FINAL_widescreen-Purple-1440-900-final.png: FAILED open or read
53 > md5sum: FINAL_widescreen-Purple-1600-900-final.png: No such file or
54 > directory FINAL_widescreen-Purple-1600-900-final.png: FAILED open or read
55 > md5sum: gentoo-flowers-1024.png: No such file or directory
56 > gentoo-flowers-1024.png: FAILED open or read
57 > md5sum: gentoo-flowers-1152.png: No such file or directory
58 > gentoo-flowers-1152.png: FAILED open or read
59 > md5sum: gentoo-flowers-1280.png: No such file or directory
60 > gentoo-flowers-1280.png: FAILED open or read
61 > md5sum: gentoo-flowers-800.png: No such file or directory
62 > gentoo-flowers-800.png: FAILED open or read
63 > md5sum: Jewel-Back-blue.png: No such file or directory
64 > Jewel-Back-blue.png: FAILED open or read
65 > md5sum: Jewel-Back-purple.png: No such file or directory
66 > Jewel-Back-purple.png: FAILED open or read
67 > md5sum: Jewel-Front-blue.png: No such file or directory
68 > Jewel-Front-blue.png: FAILED open or read
69 > md5sum: Jewel-Front-purple.png: No such file or directory
70 > Jewel-Front-purple.png: FAILED open or read
71 > md5sum: LICENSE: No such file or directory
72 > LICENSE: FAILED open or read
73 > md5sum: WARNING: 15504459 lines are improperly formatted
74 > md5sum: WARNING: 33 listed files could not be read
75
76 Guido, the above message shows that the md5sum command was NOT performed on
77 the iso hash file, but on a bunch of .png files.
78
79
80 In case you are not sure how to go about this, try the following.
81
82 1. Make sure that the iso file:
83
84 livedvd-amd64-multilib-20121221.iso
85
86 and its hash file:
87
88 livedvd-amd64-multilib-20121221.iso.DIGESTS
89
90 are both saved in the same directory. 'cd' into the same directory.
91
92
93 Depending on how paranoid you want to be with regards to checking the
94 integrity of the downloads, you can also get the gpg signature of the file
95 with the hashes and check that it has not been tampered with. First fetch the
96 gentoo gpg keys. Use the KeyID of the (non-expired) keys from here:
97
98 http://www.gentoo.org/proj/en/releng/index.xml
99
100 and run 'gpg --keyserver subkeys.pgp.net --recv-keys <key id>'. For example:
101
102 gpg --keyserver subkeys.pgp.net --recv-keys 0xDB6B8C1F96D8BF6D
103
104
105 Download the signed file of the hashes:
106
107 livedvd-amd64-multilib-20121221.iso.DIGESTS.asc
108
109
110 Then check the integrity of it:
111
112 gpg --verify livedvd-amd64-multilib-20121221.iso.DIGESTS.asc
113
114 You should get something like:
115
116 [snip ...]
117
118 gpg: Good signature from "Gentoo Linux Release Engineering (Gentoo Linux
119 Release Signing Key) <releng@g.o>"
120 gpg: WARNING: This key is not certified with a trusted signature!
121 gpg: There is no indication that the signature belongs to the owner.
122 Primary key fingerprint: D99E AC73 79A8 50BC E47D A5F2 9E64 38C8 1707 2058
123 gpg: textmode signature, digest algorithm SHA1
124
125 Ignore the warning: "WARNING: This key is not certified with a trusted
126 signature!" which is correct, unless you have manually edited the trust of
127 this gpg key in your keyring. The line above it tells you that the signature
128 is good and therefore you can trust the hashes in there.
129
130 Now, running:
131
132 md5sum -c livedvd-amd64-multilib-20121221.iso.DIGESTS.asc
133
134 should show:
135
136 livedvd-amd64-multilib-20121221.iso: OK
137
138 for the iso image. Any files listed in the DIGESTS file which you have not
139 downloaded or saved in the same directory, will be shown as FAILED, e.g.
140
141 md5sum: livedvd-amd64-multilib-20121221.iso.CREDITS: No such file or directory
142 livedvd-amd64-multilib-20121221.iso.CREDITS: FAILED open or read
143
144 This is all explained here:
145
146 http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=2
147
148 Hope this helps.
149
150 --
151 Regards,
152 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] md5sum -c Neil Bothwick <neil@××××××××××.uk>