chusiang / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
1 stars 1 forks source link

"gpg: Can't check signature: public key not found" and other python syntax errors upon initializing a repo #198

Open huzzziiii opened 3 years ago

huzzziiii commented 3 years ago

I have been running into some basic issues and it's just getting to a point where even after trying out different things by looking up isn't doing any good, so here I am to get some insight from you guys. The idea is to run some git repo init commands which I keep having issues with.

Summary as below:

  1. Start off with a fresh Ubuntu 16.04 installation

  2. run sudo apt-get update, and sudo apt-get upgrade

  3. Run the following to install certain packages

    sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm
  4. install git

  5. Download repo by following the steps below:

    mkdir ~/bin
    curl https://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
    chmod a+x ~/bin/repo
    PATH=${PATH}:~/bin
  6. install python 3.6

  7. upgrade to python 3.6 as shown here

  8. run the following:

    repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-zeus -m imx-5.4.3-2.0.0.xml
    
    repo sync
  9. run the following in a different directory:

    repo init -u git://codeaurora.org/quic/le/le/manifest.git -b release -m CHSS.LNX_FSLS.1.0-01200-QCAAUTOHOSTHZ.xml --repo-url=git://codeaurora.org/tools/repo.git --repo-branch=caf-stable

    Output:

    >> repo 1.12.16   
    stderr:   
    >> gpg: Signature made Thu 01 May 2014 01:34:18 PM PDT using RSA key ID 692B382C   
    >> gpg: Can't check signature: public key not found   
    >> error: could not verify the tag 'v1.12.16' fatal: cloning the git-repo repository failed, will remove '.repo/repo'  

I have been going back and forth now...to nothing! I even swapped the python versions between 3.6 and 2.7...what should I be doing? what am I missing?

I recall trying this out but I don't think it solved it, in fact I got syntax errors.

Also, tried this out but now I'm getting a syntax error

  File "/home/qct/caf/.repo/repo/main.py", line 500, in <module>
    _Main(sys.argv[1:])
  File "/home/qct/caf/.repo/repo/main.py", line 476, in _Main
    result = repo._Run(argv) or 0
  File "/home/qct/caf/.repo/repo/main.py", line 155, in _Run
    result = cmd.Execute(copts, cargs)
  File "/home/qct/caf/.repo/repo/subcmds/init.py", line 390, in Execute
    self._SyncManifest(opt)
  File "/home/qct/caf/.repo/repo/subcmds/init.py", line 236, in _SyncManifest
    m.MetaBranchSwitch(opt.manifest_branch)
  File "/home/qct/caf/.repo/repo/project.py", line 2634, in MetaBranchSwitch
    self.Sync_LocalHalf(syncbuf)
  File "/home/qct/caf/.repo/repo/project.py", line 1170, in Sync_LocalHalf
    self._InitWorkTree()
  File "/home/qct/caf/.repo/repo/project.py", line 2224, in _InitWorkTree
    _lwrite(os.path.join(dotgit, HEAD), '%s\n' % self.GetRevisionId())
  File "/home/qct/caf/.repo/repo/project.py", line 51, in _lwrite
    fd.write(content)
TypeError: a bytes-like object is required, not 'str'