Guest User

Untitled

a guest
Nov 10th, 2017
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. apt-get source ubuntu-keyring
  2. cd ubuntu-keyring-*/keyrings
  3.  
  4. cat >gpg.gen <<GEN
  5. %no-protection
  6. Key-Type: DSA
  7. Key-Length: 1024
  8. Subkey-Type: ELG-E
  9. Subkey-Length: 1024
  10. Name-Real: Rich Remer
  11. Name-Email: rich.remer@example.com
  12. Expire-Date: 0
  13. %pubring my.gpg
  14. %commit
  15. GEN
  16.  
  17. gpg --batch --gen-key gpg.gen
  18. gpg --import < my.gpg 2>/dev/null
  19. gpg --import < ubuntu-archive-keyring.gpg 2>/dev/null
  20.  
  21. my=$(gpg my.gpg | grep -A1 ^pub | grep ^\s)
  22. ubuntu=$(gpg ubuntu-archive-keyring.gpg | grep -A1 ^pub | grep ^\s)
  23. keys="$my $ubuntu"
  24.  
  25. gpg --yes --output=ubuntu-archive-keyring.gpg --export $keys
  26.  
  27. cd .. # into ubuntu-keyring source directory
  28.  
  29. dpkg-buildpackage -rfakeroot -m"Rich Remer <rich.remer@example.com>" -k$key
  30.  
  31. dpkg-buildpackage: info: source package ubuntu-keyring
  32. dpkg-buildpackage: info: source version 2016.10.27
  33. dpkg-buildpackage: info: source distribution zesty
  34. dpkg-buildpackage: info: host architecture amd64
  35. dpkg-source --before-build ubuntu-keyring-2016.10.27
  36. fakeroot debian/rules clean
  37. test -f keyrings/ubuntu-archive-keyring.gpg
  38. rm -f foo foo.asc *.bak *~ */*~ debian/files* debian/*substvars
  39. rm -rf debian/tmp debian/ubuntu-keyring-udeb
  40. dpkg-source -b ubuntu-keyring-2016.10.27
  41. dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
  42. dpkg-source: info: using source format '1.0'
  43. dpkg-source: info: building ubuntu-keyring in ubuntu-keyring_2016.10.27.tar.gz
  44. dpkg-source: info: building ubuntu-keyring in ubuntu-keyring_2016.10.27.dsc
  45. debian/rules build
  46. make: Nothing to be done for 'build'.
  47. fakeroot debian/rules binary
  48. test -f keyrings/ubuntu-archive-keyring.gpg
  49. test root = "`whoami`"
  50. gpg --no-default-keyring --keyring /usr/share/keyrings/debian-keyring.gpg --decrypt SHA512SUMS.txt.asc | sha512sum -c -
  51. keyrings/ubuntu-archive-keyring.gpg: FAILED
  52. gpg: Signature made Thu 27 Oct 2016 07:31:05 AM PDT
  53. gpg: using RSA key CAC2D8B9CD2CA5F9
  54. keyrings/ubuntu-archive-removed-keys.gpg: OK
  55. keyrings/ubuntu-keyring-2012-archive.gpg: OK
  56. keyrings/ubuntu-keyring-2012-cdimage.gpg: OK
  57. keyrings/ubuntu-master-keyring.gpg: OK
  58. gpg: Good signature from "Dimitri John Ledkov <xnox@ubuntu.com>" [unknown]
  59. gpg: aka "Dimitri John Ledkov <xnox@debian.org>" [unknown]
  60. gpg: aka "Dimitri John Ledkov (Member, Board of Directors) <xnox@spi-inc.org>" [unknown]
  61. gpg: aka "Dimitri John Ledkov (2015) <dimitri.ledkov@canonical.com>" [unknown]
  62. gpg: WARNING: This key is not certified with a trusted signature!
  63. gpg: There is no indication that the signature belongs to the owner.
  64. Primary key fingerprint: D764 F6CC 2AB5 9A38 B114 7D73 887B 6061 8B3C 16AE
  65. Subkey fingerprint: 773C 99EB D0A1 1172 217A 7C3F CAC2 D8B9 CD2C A5F9
  66. sha512sum: WARNING: 1 computed checksum did NOT match
  67. debian/rules:88: recipe for target 'checkkeyrings' failed
  68. make: *** [checkkeyrings] Error 1
  69. dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
Add Comment
Please, Sign In to add comment