Question
I'm encountering issues with GBS and MIC installation on Ubuntu 17.10. Here are my specific problems:
-
SSH Connection Issue:
- After setting up SSH keys and registering my public key on Gerrit, I get this response when trying to connect:
$ ssh tizen Connection to review.tizen.org closed by remote host. Connection to review.tizen.org closed. - Is this normal behavior?
- After setting up SSH keys and registering my public key on Gerrit, I get this response when trying to connect:
-
GBS Build Error:
- After successfully syncing Tizen source code and running
gbs build, I encounter this error:error: Traceback (most recent call last): File "/usr/bin/gbs", line 709, in <module> sys.exit(main(sys.argv)) File "/usr/bin/gbs", line 703, in main return module.main(args) File "/usr/lib/pymodules/python2.7/gitbuildsys/cmd_export.py", line 346, in main export_sources(repo, commit, export_dir, main_spec, args) File "/usr/lib/pymodules/python2.7/gitbuildsys/cmd_export.py", line 264, in export_sources create_tarball=create_tarball) File "/usr/lib/pymodules/python2.7/gitbuildsys/cmd_export.py", line 169, in create_gbp_export_args remotename = 'origin' if 'origin' in remotes else remotes.keys()[0] AttributeError: 'list' object has no attribute 'keys' - The 'remotes' array only contains
[ tizen-gerrit ]. Shouldn't it have URLs? - I'm using Python 2.7.14 - should I downgrade to Python 2.6x?
- After successfully syncing Tizen source code and running
Additional context:
- I installed GBS and MIC from Ubuntu 16.04's repository on Ubuntu 17.10
- Had to use
--force-overwriteflag during OBS-build package installation due to duplicate man page files
Answer
Problem Understanding
The user is experiencing two main issues:
- Unexpected SSH connection behavior with Tizen Gerrit
- GBS build failures due to Python compatibility issues on Ubuntu 17.10
Solution Methods
-
For SSH Connection:
- The connection closing behavior is normal for Tizen Gerrit - it's designed to close after authentication
- Verify your SSH setup by running:
ssh -T git@review.tizen.org - You should receive a welcome message if your key is properly registered
-
For GBS Build Issues:
- The root cause is compatibility issues with Ubuntu 17.10
- Recommended solutions:
- Use the officially supported Ubuntu 16.04 LTS instead
- If you must use 17.10:
- Create a Python 2.7 virtual environment
- Install GBS and MIC from source rather than using Ubuntu packages
- Ensure all dependencies are properly installed
Additional Tips
- Always use the officially supported Ubuntu version (16.04 LTS) for Tizen development
- The error
AttributeError: 'list' object has no attribute 'keys'suggests a Python compatibility issue - Consider using Docker containers for a more isolated development environment
- For reference, check the updated documentation at: