This is an old revision of the document!
Kodi
Install Kodi on Ubuntu 16.04
Youtube issues
When the official version of the Youtube plugin is installed, Kodi will crash whenever the plugin is opened. A crashlog is created with the following content:
############## Kodi CRASH LOG ############### ################ SYSTEM INFO ################ Date: wo jul 5 21:51:49 CEST 2017 Kodi Options: Arch: x86_64 Kernel: Linux 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 Release: Ubuntu 16.04.2 LTS (Xenial Xerus) ############## END SYSTEM INFO ############## ############### STACK TRACE ################# ############# END STACK TRACE ############### ################# LOG FILE ################## 21:51:11.368 T:140155307440512 NOTICE: special://profile/ is mapped to: special://masterprofile/ 21:51:11.368 T:140155307440512 NOTICE: ----------------------------------------------------------------------- 21:51:11.368 T:140155307440512 NOTICE: Starting Kodi (17.3 Git:20170525-nogitfound). Platform: Linux x86 64-bit 21:51:11.368 T:140155307440512 NOTICE: Using Release Kodi x64 build 21:51:11.369 T:140155307440512 NOTICE: Kodi compiled Nov 4 2012 by GCC 5.4.0 for Linux x86 64-bit version 4.4.62 (263230) 21:51:11.369 T:140155307440512 NOTICE: Running on Ubuntu 16.04.2 LTS, kernel: Linux x86 64-bit version 4.4.0-83-generic 21:51:11.369 T:140155307440512 NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi 21:51:11.369 T:140155307440512 NOTICE: Host CPU: Intel(R) Celeron(R) CPU 847 @ 1.10GHz, 2 cores available 21:51:11.369 T:140155307440512 NOTICE: special://xbmc/ is mapped to: /usr/share/kodi 21:51:11.369 T:140155307440512 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/x86_64-linux-gnu/kodi 21:51:11.369 T:140155307440512 NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/x86_64-linux-gnu/kodi/addons 21:51:11.369 T:140155307440512 NOTICE: special://masterprofile/ is mapped to: /var/kodi/.kodi/userdata 21:51:11.369 T:140155307440512 NOTICE: special://envhome/ is mapped to: /var/kodi 21:51:11.369 T:140155307440512 NOTICE: special://home/ is mapped to: /var/kodi/.kodi 21:51:11.369 T:140155307440512 NOTICE: special://temp/ is mapped to: /var/kodi/.kodi/temp 21:51:11.369 T:140155307440512 NOTICE: special://logpath/ is mapped to: /var/kodi/.kodi/temp 21:51:11.369 T:140155307440512 NOTICE: The executable running is: /usr/lib/x86_64-linux-gnu/kodi/kodi.bin 21:51:11.369 T:140155307440512 NOTICE: Local hostname: co-pilot 21:51:11.369 T:140155307440512 NOTICE: Log File is located: /var/kodi/.kodi/temp//kodi.log 21:51:11.369 T:140155307440512 NOTICE: ----------------------------------------------------------------------- 21:51:11.389 T:140155307440512 ERROR: DBus: Error org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UPower was not provided by any .service files 21:51:11.430 T:140155307440512 NOTICE: load settings... 21:51:11.458 T:140155307440512 ERROR: PulseAudio: Failed to connect context 21:51:11.458 T:140155307440512 NOTICE: PulseAudio might not be running. Context was not created. 21:51:11.537 T:140155307440512 NOTICE: Found 1 Lists of Devices 21:51:11.537 T:140155307440512 NOTICE: Enumerated ALSA devices: 21:51:11.537 T:140155307440512 NOTICE: Device 1 21:51:11.537 T:140155307440512 NOTICE: m_deviceName : @ 21:51:11.537 T:140155307440512 NOTICE: m_displayName : Default (HDA Intel PCH ALC887-VD Analog) 21:51:11.537 T:140155307440512 NOTICE: m_displayNameExtra: 21:51:11.537 T:140155307440512 NOTICE: m_deviceType : AE_DEVTYPE_PCM 21:51:11.537 T:140155307440512 NOTICE: m_channels : FL,FR 21:51:11.537 T:140155307440512 NOTICE: m_sampleRates : 48000 21:51:11.537 T:140155307440512 NOTICE: m_dataFormats : AE_FMT_S32NE 21:51:11.537 T:140155307440512 NOTICE: m_streamTypes : No passthrough capabilities 21:51:11.537 T:140155307440512 NOTICE: Device 2 21:51:11.537 T:140155307440512 NOTICE: m_deviceName : @:CARD=PCH,DEV=0 21:51:11.537 T:140155307440512 NOTICE: m_displayName : HDA Intel PCH 21:51:11.537 T:140155307440512 NOTICE: m_displayNameExtra: ALC887-VD Analog 21:51:11.537 T:140155307440512 NOTICE: m_deviceType : AE_DEVTYPE_PCM 21:51:11.537 T:140155307440512 NOTICE: m_channels : FL,FR 21:51:11.537 T:140155307440512 NOTICE: m_sampleRates : 48000 21:51:11.537 T:140155307440512 NOTICE: m_dataFormats : AE_FMT_S32NE 21:51:11.537 T:140155307440512 NOTICE: m_streamTypes : No passthrough capabilities 21:51:11.537 T:140155307440512 NOTICE: Device 3 21:51:11.537 T:140155307440512 NOTICE: m_deviceName : iec958:CARD=PCH,DEV=0 21:51:11.537 T:140155307440512 NOTICE: m_displayName : HDA Intel PCH 21:51:11.537 T:140155307440512 NOTICE: m_displayNameExtra: ALC887-VD Digital S/PDIF 21:51:11.537 T:140155307440512 NOTICE: m_deviceType : AE_DEVTYPE_IEC958 21:51:11.537 T:140155307440512 NOTICE: m_channels : FL,FR 21:51:11.537 T:140155307440512 NOTICE: m_sampleRates : 32000,44100,48000,88200,96000,192000 21:51:11.537 T:140155307440512 NOTICE: m_dataFormats : AE_FMT_RAW,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE 21:51:11.537 T:140155307440512 NOTICE: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512 21:51:11.537 T:140155307440512 NOTICE: Device 4 21:51:11.537 T:140155307440512 NOTICE: m_deviceName : hdmi:CARD=PCH,DEV=0 21:51:11.537 T:140155307440512 NOTICE: m_displayName : HDA Intel PCH 21:51:11.537 T:140155307440512 NOTICE: m_displayNameExtra: SNY SONY TV on HDMI 21:51:11.537 T:140155307440512 NOTICE: m_deviceType : AE_DEVTYPE_HDMI 21:51:11.537 T:140155307440512 NOTICE: m_channels : FL,FR 21:51:11.537 T:140155307440512 NOTICE: m_sampleRates : 32000,44100,48000 21:51:11.537 T:140155307440512 NOTICE: m_dataFormats : AE_FMT_RAW,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_RAW 21:51:11.537 T:140155307440512 NOTICE: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512,STREAM_TYPE_EAC3,STREAM_TYPE_TRUEHD 21:51:11.542 T:140155307440512 NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml) 21:51:11.542 T:140155307440512 NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml) 21:51:11.542 T:140155307440512 NOTICE: Default Video Player: VideoPlayer 21:51:11.542 T:140155307440512 NOTICE: Default Audio Player: paplayer 21:51:11.542 T:140155307440512 NOTICE: Disabled debug logging due to GUI setting. Level 0. 21:51:11.542 T:140155307440512 NOTICE: Log level changed to "LOG_LEVEL_NORMAL" 21:51:11.543 T:140155307440512 NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml 21:51:11.543 T:140155307440512 NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml. 21:51:11.544 T:140155307440512 NOTICE: Loaded playercorefactory configuration 21:51:11.544 T:140155307440512 NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml. 21:51:11.544 T:140155307440512 NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping. 21:51:11.552 T:140155307440512 NOTICE: Running database version Addons27 21:51:11.634 T:140155307440512 NOTICE: ADDONS: Using repository repository.xbmc.org 21:51:11.775 T:140155307440512 NOTICE: Checking resolution 16 21:51:11.917 T:140155307440512 NOTICE: Using visual 0x20 21:51:11.925 T:140155307440512 NOTICE: GL_VENDOR = Intel Open Source Technology Center 21:51:11.925 T:140155307440512 NOTICE: GL_RENDERER = Mesa DRI Intel(R) Sandybridge Mobile 21:51:11.925 T:140155307440512 NOTICE: GL_VERSION = 3.0 Mesa 17.1.2 21:51:11.925 T:140155307440512 NOTICE: GL_SHADING_LANGUAGE_VERSION = 1.30 21:51:11.925 T:140155307440512 NOTICE: GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_depth_clamp GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_packed_depth_stencil GL_APPLE_object_purgeable GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_texture_array GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_draw_buffers_blend GL_AMD_seamless_cubemap_per_texture GL_ARB_ES2_compatibility GL_ARB_blend_func_extended GL_ARB_debug_output GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_texture_lod GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_multisample GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_uniform_buffer_object GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_NV_texture_barrier GL_ARB_get_program_binary GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_compressed_texture_pixel_storage GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_texture_storage GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_transform_feedback GL_AMD_shader_trinary_minmax GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_clear_buffer_object GL_ARB_copy_image GL_ARB_explicit_uniform_location GL_ARB_invalidate_subdata GL_ARB_program_interface_query GL_ARB_texture_query_levels GL_ARB_texture_storage_multisample GL_ARB_vertex_attrib_binding GL_KHR_debug GL_KHR_robustness GL_ARB_buffer_storage GL_ARB_clear_texture GL_ARB_internalformat_query2 GL_ARB_multi_bind GL_ARB_seamless_cubemap_per_texture GL_ARB_shader_draw_parameters GL_ARB_texture_mirror_clamp_to_edge GL_ARB_vertex_type_10f_11f_11f_rev GL_EXT_shader_integer_mix GL_INTEL_performance_query GL_ARB_clip_control GL_ARB_conditional_render_inverted GL_ARB_cull_distance GL_ARB_get_texture_sub_image GL_ARB_pipeline_statistics_query GL_ARB_texture_barrier GL_ARB_transform_feedback_overflow_query GL_EXT_polygon_offset_clamp GL_KHR_blend_equation_advanced GL_KHR_context_flush_control GL_MESA_shader_integer_functions 21:51:12.233 T:140154808833792 NOTICE: Running database version Addons27 21:51:12.234 T:140154808833792 NOTICE: Running database version ViewModes6 21:51:12.236 T:140154808833792 NOTICE: Running database version Textures13 21:51:12.245 T:140154808833792 NOTICE: Running database version MyMusic60 21:51:12.251 T:140154808833792 NOTICE: Running database version MyVideos107 21:51:12.254 T:140154808833792 NOTICE: Running database version TV29 21:51:12.259 T:140154808833792 NOTICE: Running database version Epg11 21:51:12.265 T:140155307440512 NOTICE: start dvd mediatype detection 21:51:12.417 T:140154226284288 NOTICE: Register - new cec device registered on cec->/dev/ttyACM0: CEC Adapter (2548:1002) 21:51:12.489 T:140155307440512 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList" 21:51:12.737 T:140155307440512 NOTICE: initialize done 21:51:12.737 T:140155307440512 NOTICE: Running the application... 21:51:12.748 T:140155307440512 NOTICE: starting zeroconf publishing 21:51:12.748 T:140155307440512 NOTICE: starting upnp client 21:51:12.783 T:140153423124224 NOTICE: ES: Starting UDP Event server on port 9777 21:51:12.784 T:140153423124224 NOTICE: UDP: Listening on port 9777 (ipv6 : false) 21:51:15.831 T:140153557341952 NOTICE: [plugin.video.youtube] Startup: detected Krypton (Kodi-17.3), setting DASH_SUPPORT_BUILTIN = False, DASH_SUPPORT_ADDON = True 21:51:16.090 T:140154808833792 ERROR: CCurlFile::FillBuffer - Failed: SSL connect error(35) 21:51:16.097 T:140154808833792 ERROR: CAddonInstallJob[plugin.video.youtube]: MD5 mismatch after download. Expected 2d2b84a8aa44056f1e64add78b3242e5, was D41D8CD98F00B204E9800998ECF8427E 21:51:16.182 T:140153532163840 ERROR: CCurlFile::FillBuffer - Failed: SSL connect error(35) 21:51:16.188 T:140153532163840 ERROR: CAddonInstallJob[metadata.common.musicbrainz.org]: MD5 mismatch after download. Expected 7ecfa558718202e8b244e7f2595e0905, was D41D8CD98F00B204E9800998ECF8427E 21:51:16.808 T:140153385461504 ERROR: CCurlFile::FillBuffer - Failed: SSL connect error(35) 21:51:16.812 T:140153385461504 ERROR: CAddonInstallJob[metadata.common.musicbrainz.org]: MD5 mismatch after download. Expected 7ecfa558718202e8b244e7f2595e0905, was D41D8CD98F00B204E9800998ECF8427E 21:51:16.814 T:140153385461504 ERROR: CAddonInstallJob[metadata.album.universal]: failed to install dependency metadata.common.musicbrainz.org 21:51:18.781 T:140155307440512 ERROR: WinSystemX11::RefreshWindow - failed to query xrandr ############### END LOG FILE ################ ############ END Kodi CRASH LOG #############
In order to solve this issue, an updated version of python-cryptography and python-openssl must be installed (ref https://bugs.launchpad.net/ubuntu/+source/xorg/+bug/1636573).
- Add zesty repositories by creating /etc/apt/sources.list.d/zesty.list with the following content
#Zesty deb http://be.archive.ubuntu.com/ubuntu zesty main deb-src http://be.archive.ubuntu.com/ubuntu zesty main
- Configure apt such that it prefers packages from xenial above those from the zesty release. Create the file /etc/apt/apt.conf.d/01ubuntu-version with the following content:
APT::Default-Release "xenial";
- Tell apt to prefer the python-cryptography version from zesty above the version from xenial by creating the file /etc/apt/preferences.d/python-cryptograph-from-zesty with he following content:
Package: python-cryptography Pin: release n=zesty Pin-Priority: 1000
- Run
sudo apt update
followed bysudo apt upgrade
to install the updated version.