{"action":"created","issue":{"url":"https://api.github.com/repos/mikeperry-tor/mission-improbable/issues/29","repository_url":"https://api.github.com/repos/mikeperry-tor/mission-improbable","labels_url":"https://api.github.com/repos/mikeperry-tor/mission-improbable/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/mikeperry-tor/mission-improbable/issues/29/comments","events_url":"https://api.github.com/repos/mikeperry-tor/mission-improbable/issues/29/events","html_url":"https://github.com/mikeperry-tor/mission-improbable/issues/29","id":198247848,"number":29,"title":"Nexus 6P / Arch Linux: failure to generate verity_key.pub","user":{"login":"Girtab1352","id":12875687,"avatar_url":"https://avatars.githubusercontent.com/u/12875687?v=3","gravatar_id":"","url":"https://api.github.com/users/Girtab1352","html_url":"https://github.com/Girtab1352","followers_url":"https://api.github.com/users/Girtab1352/followers","following_url":"https://api.github.com/users/Girtab1352/following{/other_user}","gists_url":"https://api.github.com/users/Girtab1352/gists{/gist_id}","starred_url":"https://api.github.com/users/Girtab1352/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Girtab1352/subscriptions","organizations_url":"https://api.github.com/users/Girtab1352/orgs","repos_url":"https://api.github.com/users/Girtab1352/repos","events_url":"https://api.github.com/users/Girtab1352/events{/privacy}","received_events_url":"https://api.github.com/users/Girtab1352/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-31T21:51:08Z","updated_at":"2017-01-13T03:14:44Z","closed_at":null,"body":"First, the issue, in brief:\r\n\r\nWhen running ./run_all.sh, the install finishes with partial success, but throws a few errors to stderr.  Nexus 6P device can boot into Copperhead successfully, but not a single other feature of this package is installed (no root, gapps, orwall, etc. Just vanilla CopperheadOS.) There seems to be an issue with generating the verity_key.pub file, judging by the command outputs in bash.\r\n\r\nNext, install details:\r\n\r\nhere is `uname -a`\r\n`Linux 3p1cpwn4g3 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:24:34 CET 2016 x86_64 GNU/Linux`\r\n\r\nHere is `fastboot --version`\r\n`fastboot version 7.0.0_r21`\r\n\r\nThis version supports flashing unlock, as per the instructions in the Readme.\r\n\r\nHere is `gcc --version`\r\n`gcc (GCC) 6.2.1 20160830 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.`\r\n\r\nHere is `cpio --version`\r\n`cpio (GNU cpio) 2.12 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Phil Nelson, David MacKenzie, John Oleynick, and Sergey Poznyakoff.`\r\n\r\nGit was used to clone the repository, and Arch Linux uses git already for AUR, so for sure that is installed and working properly.\r\n\r\njre7-openjdk and jre8-openjdk are both installed. `archlinux-java status` gives\r\n`Available Java environments: java-7-openjdk java-8-openjdk (default)`\r\n\r\nalso, here is `openssl version`\r\nOpenSSL 1.0.2j 26 Sep 2016\r\n\r\nA quick `sdiff` of the file list at \r\nhttps://www.archlinux.org/packages/core/x86_64/openssl/files/\r\nagainst the file list at \r\nhttp://packages.ubuntu.com/precise/i386/libssl-dev/filelist\r\nshows that the Arch Linux package 'openssl' contains all of the files in the Ubuntu 'libssl-dev' package.\r\n\r\n\r\nThe issue in full:\r\nFollowing the instructions in the README, I am using a Nexus 6P.\r\nFastboot and adb are installed, versions are listed above.\r\nJava JRE/JDK 1.7+ requirement is met (see above, JRE is java-8-openjdk by default)\r\ngit, cpri, gcc (g++) are all installed.  As a note, to avoid confusion, it would be better to simply list gcc, because g++ IS gcc.  (See https://gcc.gnu.org/onlinedocs/gcc-4.0.3/gcc/G_002b_002b-and-GCC.html for more information.)\r\nudev is configured to allow running fastboot and adb as non-root.\r\nOEM Unlocking is enabled on the Nexus 6P.\r\nThe factory image of CopperheadOS release was downloaded from https://copperhead.co/android/downloads, version NMF26Q.2016.12.25.22.27.39\r\nSuccessfully got key for Daniel Micay and verified good signature on the factory image tarball.\r\n\r\nNext, the script run_all.sh is run.\r\nThe same results as below can be observed whether using 'torsocks ./run_all.sh' or simply running the script on its own without torifying.  I have a log file of the bash command outputs for the entire install using both torsocks and bare script.  They are long, but if someone wants to comb through them, say the word.\r\n\r\nThe script continues installing all the way through flashing the CopperheadOS images, but throws the following errors as it progresses.  \r\n\r\n`make: *** No rule to make target 'img2simg.c$', needed by 'img2simg'.  Stop.`\r\nThe script does not stop at this point, but continues the process, beginning with retrieving packages, and going on to verifying signatures with gpg.\r\n\r\ngpg throws the following error at each signature verification (looks like three verifications, and this error is thrown three times)\r\n`gpg: WARNING: unsafe permissions on homedir '/home/realname/Pets/mip/mission-improbable/packages'`\r\nThat said, the signatures still verify just fine, all good signatures by F-Droid.  Not sure if this is really part of the issue.\r\n\r\nAfter verifying those three signatures, just before the pause in the script to allow the user to reboot into bootloader, the following error is thrown:\r\n`./make_keys.sh: line 6: /home/realname/Pets/mip/mission-improbable/helper-repos/android-simg2img/generate_verity_key: No such file or directory`\r\nThe script then proceeds with \r\n`creating releasekey.pk8 with no password`\r\non the next line, before pausing for user input.\r\n\r\nThe line referenced by the error in the make_keys.sh script is \r\n\r\n`../extras/make_key verity '/C=CA/ST=Ontario/L=Toronto/O=CopperheadOS/OU=CopperheadOS/CN=CopperheadOS/emailAddress=copperheados@copperhead.co'\r\n$SIMG2IMG_DIR/generate_verity_key -convert verity.x509.pem verity_key`\r\n\r\nHowever the only file of the name 'generate_verity_key' in the directory indicated by SIMG2IMG_DIR/ is 'generate_verity_key.c'\r\nI'm guessing there is actually supposed to be a second file called simply 'generate_verity_key.'  This is missing, and I haven't figured out why.\r\n\r\nUnlocking bootloader is next, this proceeds with no errors.\r\nFlashing images is next, this also proceeds with no errors.\r\n\r\nAt the end of flashing, I get\r\n`Copperhead successfully installed!\r\n~/Pets/mip/mission-improbable/angler-nmf26q ~/Pets/mip/mission-improbable\r\n~/Pets/mip/mission-improbable\r\ncp: cannot stat 'keys/verity_key.pub': No such file or directory`\r\n\r\nAt this point, the device is still in bootloader, unlocked.  I can start the device, and CopperheadOS boots successfully, just with absolutely no other parts of this package installed.\r\n\r\n\r\n\r\nHope this helps, let me know if you need other stuff to help fix the issue, I'd really like to try out this setup!\r\n\r\nAs an asside, is there a way to just run the scripts that run_all.sh calls individually?  The README seems to indicate this can be done, but no order of operations is clearly indicated (i.e. in what order are these scripts supposed to be run?)  Perhaps going through them all in order will show more clearly where the problem lies.  \r\n\r\nThanks for all the hard work on this, and Happy New Year!!                              \r\n"},"comment":{"url":"https://api.github.com/repos/mikeperry-tor/mission-improbable/issues/comments/272350499","html_url":"https://github.com/mikeperry-tor/mission-improbable/issues/29#issuecomment-272350499","issue_url":"https://api.github.com/repos/mikeperry-tor/mission-improbable/issues/29","id":272350499,"user":{"login":"anoadragon453","id":1342360,"avatar_url":"https://avatars.githubusercontent.com/u/1342360?v=3","gravatar_id":"","url":"https://api.github.com/users/anoadragon453","html_url":"https://github.com/anoadragon453","followers_url":"https://api.github.com/users/anoadragon453/followers","following_url":"https://api.github.com/users/anoadragon453/following{/other_user}","gists_url":"https://api.github.com/users/anoadragon453/gists{/gist_id}","starred_url":"https://api.github.com/users/anoadragon453/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anoadragon453/subscriptions","organizations_url":"https://api.github.com/users/anoadragon453/orgs","repos_url":"https://api.github.com/users/anoadragon453/repos","events_url":"https://api.github.com/users/anoadragon453/events{/privacy}","received_events_url":"https://api.github.com/users/anoadragon453/received_events","type":"User","site_admin":false},"created_at":"2017-01-13T03:14:44Z","updated_at":"2017-01-13T03:14:44Z","body":"@Girtab1352 Can you try running with `python2` or `python2.7`?"}}
{"actor":{"display_login":"anoadragon453"}}