{"id":2249,"date":"2016-08-18T22:38:14","date_gmt":"2016-08-19T01:38:14","guid":{"rendered":"http:\/\/eriberto.pro.br\/blog\/?p=2249"},"modified":"2017-06-20T11:57:13","modified_gmt":"2017-06-20T14:57:13","slug":"debian-gnupg-2-chroot-and-debsign","status":"publish","type":"post","link":"https:\/\/eriberto.pro.br\/blog\/2016\/08\/18\/debian-gnupg-2-chroot-and-debsign\/","title":{"rendered":"Debian: GnuPG 2, chroot and debsign"},"content":{"rendered":"<p>Since GPG 2 was set as default for Debian (Sid, August 2016), an error message appeared inside jails triggered by chroot, when using debuild\/debsign commands:<\/p>\n<pre>clearsign failed: Inappropriate ioctl for device<\/pre>\n<p>The problem is that GPG 2 uses a dialog window to ask for a passphrase. This dialog window needs a tty (from \/dev\/pts\/ directory). To solve the problem, you can use the following command (inside the jail):<\/p>\n<pre># mount devpts -t devpts \/dev\/pts<\/pre>\n<p>Alternatively, you can add to \/etc\/fstab file in jail:<\/p>\n<pre>devpts \/dev\/pts devpts defaults 0 0<\/pre>\n<p>and use the command:<\/p>\n<pre># mount \/dev\/pts<\/pre>\n<p>Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since GPG 2 was set as default for Debian (Sid, August 2016), an error message appeared inside jails triggered by chroot, when using debuild\/debsign commands: clearsign failed: Inappropriate ioctl for device The problem is that GPG 2 uses a dialog window to ask for a passphrase. This dialog window needs a tty (from \/dev\/pts\/ directory).&hellip;&nbsp;<a href=\"https:\/\/eriberto.pro.br\/blog\/2016\/08\/18\/debian-gnupg-2-chroot-and-debsign\/\" rel=\"bookmark\">Continue a ler &raquo;<span class=\"screen-reader-text\">Debian: GnuPG 2, chroot and debsign<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[16,11],"tags":[42,630,636,624,632,631,637,39,164,635,163,634,633,41,44,667,629],"class_list":["post-2249","post","type-post","status-publish","format-standard","hentry","category-debian","category-sistema-operacional","tag-deb","tag-chroot","tag-clearsign","tag-debian","tag-debsign","tag-debuild","tag-devpts","tag-empacotamento","tag-gnupg","tag-gnupg2","tag-gpg","tag-gpg2","tag-ioctl","tag-packaging","tag-pacote","tag-planet-en","tag-tty"],"_links":{"self":[{"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/posts\/2249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/comments?post=2249"}],"version-history":[{"count":2,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/posts\/2249\/revisions"}],"predecessor-version":[{"id":2251,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/posts\/2249\/revisions\/2251"}],"wp:attachment":[{"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/media?parent=2249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/categories?post=2249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/tags?post=2249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}