GBS Build Issues on Ubuntu 18.04

Original Created Dec 31, 2018 | Regeneration Apr 22, 2026

I'm attempting to set up GBS builds on Ubuntu 18.04 but encountering difficulties. Since there are no apt packages available for 18.04, I tried using the 16.04 packages from: http://download.tizen.org/tools/latest-release/Ubuntu_16.04/

I installed gbs and mic following the instructions here: https://source.tizen.org/documentation/developer-guide/getting-started-guide/installing-development-tools

However, when attempting to build a package, I receive the following error:

info: generate repositories ...
warning: No local package repository for arch armv7l
info: build conf has been downloaded at:
    /var/tmp/root-gbs/tizen4.conf
info: start building packages from: /data/release/repos/dali-core (git)
2018-12-31 13:29 +0000
gbs 0.25.7
info: prepare sources...
info: start export source from: /data/release/repos/dali-core ...
error: Traceback (most recent call last):
  File "/usr/bin/gbs", line 710, in <module>
    sys.exit(main(sys.argv))
  File "/usr/bin/gbs", line 704, in main
    return module.main(args)
  File "/usr/lib/pymodules/python2.7/gitbuildsys/cmd_export.py", line 303, in main
    export_sources(repo, commit, export_dir, main_spec, args)
  File "/usr/lib/pymodules/python2.7/gitbuildsys/cmd_export.py", line 220, in export_sources
    create_tarball=create_tarball)
  File "/usr/lib/pymodules/python2.7/gitbuildsys/cmd_export.py", line 138, in create_gbp_export_args
    reponame = urlparse(remotes[remotename][0]).path.lstrip('/')
TypeError: list indices must be integers, not unicode

The build ultimately fails with:

error: <gbs>some packages failed to be built

Any assistance with resolving this issue would be greatly appreciated.

Problem Understanding

The user is experiencing GBS build failures on Ubuntu 18.04 due to compatibility issues with the Ubuntu 16.04 packages they installed. The error suggests a type mismatch in the GBS Python code when processing repository information.

Solution Methods

  1. Use Ubuntu 18.04 Packages:
    • Edit your apt sources list:
      sudo vi /etc/apt/sources.list
      
    • Add the following line (note the space before the last '/'):
      deb [trusted=yes] http://download.tizen.org/tools/latest-release/Ubuntu_18.04 /
      
    • Update and install:
      sudo apt-get update
      sudo apt-get install gbs mic
      

Additional Tips

  • Ensure you have all necessary dependencies installed before attempting the build
  • Verify your network connection can access the Tizen repositories
  • Consider checking for updated documentation on samsungtizenos.com for any changes in the installation process

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.