Debian の debian-keyring パッケージの整合性をどのように確認できますか? [コピー]

Debian の debian-keyring パッケージの整合性をどのように確認できますか? [コピー]

パッケージを更新しようとしたときに多くの議論があった「GPGエラー:http://security.debian.orgパブリッシャ: wheezy/updates: 公開キーが使用できないため、次の署名を確認できません: "NO_PUBKEY 8B48AD6246925553" 現在のキーをインポートするには、debian-keyring パッケージをインストールする必要があります。

しかし、マシンのキーはもはや有効ではなく、パケットの内容が改ざんされていないことをどのように確認できますか?

ベストアンサー1

キーの追加を除いて使用している場合でも、MD5を手動で確認できます。

Print the md5sum of the Packages file which is listed in the Release file.
sed -n "s,main/binary-i386/Packages$,,p" ftp.us.debian.org_debian_dists_sid_Release 
# Print the md5sum of the Packages file itself.
md5sum ftp.us.debian.org_debian_dists_sid_main_binary-i386_Packages    

最後に、パケット自体のMD5またはSHAチェックサムを確認します。

apt-cache show <package_name> | sed -n "s/MD5sum: //p" # Grab the checksum from the APT cache.
md5sum <binary_package_name>.deb                       # Compare it against the binary package's checksum.

源泉

おすすめ記事