Yum command failing with error "/usr/lib64/python3.6/importlib/_bootstrap.py:219: Warning: interval_offset: assertion 'tz->t_info != NULL' failed"

Solution Verified - Updated -

Issue

  • The yum command failing with the following error logs:

    dnf[XXX]: /usr/lib64/python3.6/importlib/_bootstrap.py:219: Warning: interval_offset: assertion 'tz->t_info != NULL' failed
    journal[XXX]: interval_offset: assertion 'tz->t_info != NULL' failed
    journal[XXX]: interval_offset: assertion 'tz->t_info != NULL' failed
    dnf[XXX]:/usr/lib64/python3.6/importlib/_bootstrap.py:219: Warning: interval_offset: assertion 'tz->t_info != NULL' failed
    journal[XXX]: interval_offset: assertion 'tz->t_info != NULL' failed
    journal[XXX]: interval_offset: assertion 'tz->t_info != NULL' failed
    dnf[XXX]:/usr/lib64/python3.6/importlib/_bootstrap.py:219: Warning: interval_offset: assertion 'tz->t_info != NULL' failed
    journal[XXX]: interval_offset: assertion 'tz->t_info != NULL' failed
    journal[XXX]: interval_offset: assertion 'tz->t_info != NULL' failed
    dnf[XXX]:/usr/lib64/python3.6/importlib/_bootstrap.py:219: Warning: interval_offset: assertion 'tz->t_info != NULL' failed
    
  • Yum process failing with the following error:

    (process:1234): GLib-CRITICAL **: 08:08:18.927: init_zone_from_iana_info: assertion 'size >= sizeof (struct tzhead) && memcmp (header, "TZif", 4) == 0' failed
    (process:1234): GLib-CRITICAL **: 08:08:18.927: interval_offset: assertion 'tz->t_info != NULL' failed
    (process:1234): GLib-CRITICAL **: 08:08:18.927: interval_offset: assertion 'tz->t_info != NULL' failed
    /usr/lib64/python3.6/importlib/_bootstrap.py:219: Warning: init_zone_from_iana_info: assertion 'size >= sizeof (struct tzhead) && memcmp (header, "TZif", 4) == 0' failed
    return f(*args, **kwds)
    /usr/lib64/python3.6/importlib/_bootstrap.py:219: Warning: interval_offset: assertion 'tz->t_info != NULL' failed
    return f(*args, **kwds)
    

Environment

  • Red Hat Enterprise Linux 8.
  • Red Hat Enterprise Linux 9.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content