GBS, MIC and OBS Installation Issues on Ubuntu 17.10

Original Created Mar 21, 2018 | Regeneration Apr 22, 2026

I'm encountering issues with GBS and MIC installation on Ubuntu 17.10. Here are my specific problems:

  1. 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?
  2. 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?

Additional context:

  • I installed GBS and MIC from Ubuntu 16.04's repository on Ubuntu 17.10
  • Had to use --force-overwrite flag during OBS-build package installation due to duplicate man page files

Problem Understanding

The user is experiencing two main issues:

  1. Unexpected SSH connection behavior with Tizen Gerrit
  2. GBS build failures due to Python compatibility issues on Ubuntu 17.10

Solution Methods

  1. 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
  2. For GBS Build Issues:

    • The root cause is compatibility issues with Ubuntu 17.10
    • Recommended solutions:
      1. Use the officially supported Ubuntu 16.04 LTS instead
      2. 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:

Customize your cookie preferences

You can enable or disable non-essential cookies. Essential cookies are always on to ensure the site works properly and to keep you signed in.

Necessary

These cookies are necessary for the website to function properly and cannot be switched off. They help with things like logging in and setting your privacy preferences.

Always on

Analytics

These cookies help us improve the site by tracking which pages are most popular and how visitors move around the site.

Enable analytics cookies
Public Forum Public Forum
Employees only. Please sign in with your company account.