Error during install of the app

Getting the below exception

Version
frappe 15.x.x-develop

Installation method
manual install

Relevant log output / Stack trace / Full Error Message.
Installing helpdesk...
Updating DocTypes for helpdesk      : [========================================] 100%
An error occurred while installing helpdesk: Could not find Default ticket type: Bug
Traceback with variables (most recent call last):
  File "apps/frappe/frappe/commands/site.py", line 496, in install_app
    _install_app(app, verbose=context.verbose, force=force)
      context = {'sites': ['ceepayout.bigbasket.com'], 'force': False, 'verbose': False, 'profile': False}
      apps = ('helpdesk',)
      force = False
      _install_app = <function install_app at 0x73d6a110a5c0>
      filelock = <function filelock at 0x73d6a2f177e0>
      exit_code = 0
      site = 'ceepayout.bigbasket.com'
      app = 'helpdesk'
      err = LinkValidationError('Could not find Default ticket type: Bug')
  File "apps/frappe/frappe/installer.py", line 324, in install_app
    frappe.get_attr(after_install)()
      name = 'helpdesk'
      verbose = False
      set_as_patched = True
      force = False
      sync_jobs = <function sync_jobs at 0x73d6a044e660>
      sync_for = <function sync_for at 0x73d6a044f420>
      sync_customizations = <function sync_customizations at 0x73d6a10c4400>
      sync_fixtures = <function sync_fixtures at 0x73d6a044f6a0>
      app_hooks = {'after_install': ['helpdesk.setup.install.after_install'], 'app_color': ['grey'], 'app_description': ['Customer Service Software'], 'app_email': ['hello@frappe.io'], 'app_icon': ['octicon octicon-file-directory'], 'app_license': ['AGPLv3'], 'app_name': ['helpdesk'], 'app_publisher': ['Frappe Technologies'], 'app_title': ['Helpdesk'], 'before_install': ['helpdesk.setup.install.before_install'], 'doc_events': {'*': {'validate': ['helpdesk.helpdesk.doctype.hd_service_level_agreement.hd_service_level_agreement.apply']}, 'Communication': {'on_update': ['helpdesk.helpdesk.doctype.hd_service_level_agreement.hd_service_level_agreement.on_communication_update', 'helpdesk.helpdesk.doctype.hd_ticket.hd_ticket.set_first_response_time'], 'after_insert': ['helpdesk.helpdesk.doctype.hd_ticket.hd_ticket.set_descritption_from_communication', 'helpdesk.helpdesk.hooks.communication.after_insert']}, 'Contact': {'before_insert': ['helpdesk.helpdesk.hooks.contact.before_insert'], 'on_trash': ['helpdesk.hel...
      installed_apps = ['frappe', 'bb_delivery']
      before_install = 'helpdesk.setup.install.before_install'
      out = None
      after_install = 'helpdesk.setup.install.after_install'
  File "apps/helpdesk/helpdesk/setup/install.py", line 18, in after_install
    add_default_sla()
  File "apps/helpdesk/helpdesk/setup/install.py", line 72, in add_default_sla
    enable_track_service_level_agreement_in_support_settings()
  File "apps/helpdesk/helpdesk/setup/install.py", line 183, in enable_track_service_level_agreement_in_support_settings
    support_settings.save()
      support_settings = <HDSettings: HD Settings>
  File "apps/frappe/frappe/model/document.py", line 340, in save
    return self._save(*args, **kwargs)
      self = <HDSettings: HD Settings>
      args = ()
      kwargs = {}
  File "apps/frappe/frappe/model/document.py", line 375, in _save
    self._validate_links()
      self = <HDSettings: HD Settings>
      ignore_permissions = None
      ignore_version = None
  File "apps/frappe/frappe/model/document.py", line 947, in _validate_links
    frappe.throw(_("Could not find {0}").format(msg), frappe.LinkValidationError)
      self = <HDSettings: HD Settings>
      invalid_links = [('default_ticket_type', 'Bug', 'Default ticket type: Bug')]
      cancelled_links = []
      msg = 'Default ticket type: Bug'
  File "apps/frappe/frappe/__init__.py", line 687, in throw
    msgprint(
      msg = 'Could not find Default ticket type: Bug'
      exc = <class 'frappe.exceptions.LinkValidationError'>
      title = None
      is_minimizable = False
      wide = False
      as_list = False
      primary_action = None
  File "apps/frappe/frappe/__init__.py", line 652, in msgprint
    _raise_exception()
      msg = 'Could not find Default ticket type: Bug'
      title = None
      raise_exception = <class 'frappe.exceptions.LinkValidationError'>
      as_table = False
      as_list = False
      indicator = 'red'
      alert = False
      primary_action = None
      is_minimizable = False
      wide = False
      realtime = False
      _raise_exception = <function msgprint.<locals>._raise_exception at 0x73d69e0acfe0>
      inspect = <module 'inspect' from '/usr/lib/python3.12/inspect.py'>
      out = {'message': 'Could not find Default ticket type: Bug', 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': 'bc37977f4f3e0c7894df74e1a6406afec5c26c96e0e56725f6ac17c8'}
  File "apps/frappe/frappe/__init__.py", line 603, in _raise_exception
    raise exc
      exc = LinkValidationError('Could not find Default ticket type: Bug')
      inspect = <module 'inspect' from '/usr/lib/python3.12/inspect.py'>
      msg = 'Could not find Default ticket type: Bug'
      out = {'message': 'Could not find Default ticket type: Bug', 'title': 'Message', 'indicator': 'red', 'raise_exception': 1, '__frappe_exc_id': 'bc37977f4f3e0c7894df74e1a6406afec5c26c96e0e56725f6ac17c8'}
      raise_exception = <class 'frappe.exceptions.LinkValidationError'>
frappe.exceptions.LinkValidationError: Could not find Default ticket type: Bug```

@ghost Error during install of the app. · Issue #1990 · frappe/helpdesk · GitHub