%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/UbuntuDrivers/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/UbuntuDrivers/__pycache__/detect.cpython-312.pyc

�

�.�f�����dZddlZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
daiadZ
Gd�de�Zd�Zd3d	�Zd
�Zd�Zd�Zd
�Zd�Zie_d�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d4d�Z"d�Z#d�Z$d�Z%d5d�Z&d6d�Z'd7d�Z(d8d �Z)d!�Z*d"�Z+Gd#�d$e�Z,d%�Z-d&�Z.d9d'�Z/d3d(�Z0d)�Z1d*�Z2d+�Z3d,�Z4d-�Z5d.�Z6d/�Z7d0�Z8d1�Z9d2�Z:y):zGHardware and driver package detection functionality for Ubuntu systems.�N)�kerneldetection�z/etc/custom_supported_gpus.jsonc�:�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
y	)
�NvidiaPkgNameInfoz%Class to process NVIDIA package namesc��||_d|_d|_d|_d|_d|_d|_|j|j�y)NF���r)�	_pkg_name�_obsolete_name_scheme�_server�_open�
_major_ver�_flavour�is_valid�
_process_name)�self�pkg_names  �6/usr/lib/python3/dist-packages/UbuntuDrivers/detect.py�__init__zNvidiaPkgNameInfo.__init__sF��!���%*��"������
������
���
����4�>�>�*�c�f�d|vrtjd|�ytjd�}|j	|�}|r6d|_|j
d�|_|j|_d|_	ytjd�}|j	|�}|r�|j
d�jd�d	k7|_|j
d�jd
�d	k7|_|j
d��|jrdnd�|jrd
nd��|_d|_	yy)N�nvidiaz8NvidiaPkgNameInfo: %s is not an NVIDIA package. Skippingznvidia-([0-9]+)T�znvidia-driver-([0-9]+)(.*)r�-serverr�-openr)
�logging�debug�re�compile�matchr
�groupr
rr�findrr)r�name�patternrs    rrzNvidiaPkgNameInfo._process_name(s
���4���M�M�T�VZ�[���*�*�.�/���
�
�d�#���)-�D�&�#�k�k�!�n�D�O� �O�O�D�M� �D�M���*�*�9�:���
�
�d�#��� �;�;�q�>�.�.�y�9�R�?�D�L����Q��,�,�W�5��;�D�J�(-���A��59�\�\�	�r�(I�37�:�:��2�(E�G�D�M�!�D�M�
rc��|jS�N)r
�rs r�has_obsolete_name_schemez*NvidiaPkgNameInfo.has_obsolete_name_schemeDs���)�)�)rc��|jSr%)rr&s r�	is_serverzNvidiaPkgNameInfo.is_serverGs���|�|�rc��|jSr%)rr&s r�is_openzNvidiaPkgNameInfo.is_openJs���z�z�rc��|jSr%)r
r&s r�get_major_versionz#NvidiaPkgNameInfo.get_major_versionMs�����rc��|jSr%)rr&s r�get_flavourzNvidiaPkgNameInfo.get_flavourPs���}�}�rN)�__name__�
__module__�__qualname__�__doc__rrr'r)r+r-r/�rrrrs(��/�+�!�8*����rrc�H�tstj�datS)zCache system architecturer)�system_architecture�apt_pkg�get_architecturesr4rr�get_apt_archr9Ts!���%�7�7�9�!�<���rc��i}|xrd|zxsd}tj|�D�]^\}}}d}d|vrR	ttjj	|d��5}|j�j
�}ddd�nwd|vrsd|vrottjj	|d��5}	|	D]8}
|
jd�s�|
jd	d
�d
j
�}nddd�|s��tjj	|d�}tjj	|d�}tjj|�r!tjj|�s��Z|||<��a|S#1swY��xYw#t$r"}tjd||�Yd}~���d}~wwxYw#1swY��xYw)
u�Get modaliases present in the system.

    This ignores devices whose drivers are statically built into the kernel, as
    you cannot replace them with other driver packages anyway.

    Return a modalias → sysfs path map.
    z
%s/devicesz/sys/devicesN�modaliasz0system_modaliases(): Cannot read %s/modalias: %s�ssb�ueventz	MODALIAS=�=r�driver�module)
�os�walk�open�path�join�read�strip�IOErrorrr�
startswith�split�islink)
�sys_path�aliases�devicesrD�dirs�filesr;�f�e�fd�line�
driverlink�modlinks
             r�system_modaliasesrW\s����G��4�<�8�4�F��G��W�W�W�-� !���d�E������
��"�'�'�,�,�t�Z�8�9�0�Q� �v�v�x�~�~�/�H�0���d�]�x�5�0��b�g�g�l�l�4��2�3�
�r���D����{�3�#'�:�:�c�1�#5�a�#8�#>�#>�#@����
����W�W�\�\�$��1�
��'�'�,�,�z�8�4��
�7�7�>�>�*�%�b�g�g�n�n�W�.E�� ����A !�D�N�90�0���
��
�
�P�"�A�'���
��
�
�sA�)F�F	�<F�6G�&G�	F	�F�	G�F<�<G�G
	c�V�d}|jjd�r"|jjdd�}	||}t
j|�}|j|�}d}	|jjd�D]"}|D]\}}	}
|jd�s�d}�"�$	|s#t	j
d	|jz�y	|d
}|j|�}|jD]\}}
}|jd�s�|}�|r�||}|jD]'}|jj|jk(s�'yt	j
d|j|�t	j
|�d
|jD�cgc]}|j��c}���yy#t$rt	j
d|z�YywxYw#ttf$rt	j
d|z�d}Y��TwxYw#t$rt	j
d�YywxYwcc}w)Nznvidia-driver-zxserver-xorg-video-nvidia-z5Cannot find %s package in the cache. Cannot check ABITF�Dependszxorg-video-abi-z@The %s package seems to have no dependencies. Skipping ABI checkz;Skipping check for %s since it does not depend on video abizxserver-xorg-corez1xserver-xorg-core not available, cannot check ABIzBDriver package %s is incompatible with current X.org server ABI %sz is not in )r"rI�replace�KeyErrorrrr7�DepCache�get_candidate_ver�depends_list_str�get�	TypeError�
provides_list�rev_depends_list�
parent_pkg)�	apt_cache�package�xorg_video_abi�xorg_driver_name�depcache�	candidate�needs_video_abi�dep_list�dep_name�dep_ver�dep_op�	xorg_core�
provides_name�provides_ver�	p_version�abi_pkg�dep�xs                  r�_check_video_abi_compatrv�s,���N��|�|���/�0�"�<�<�/�/�0@�B^�_��	�� 0�1�G�
���	�*�H��*�*�7�3�I��O� �!�2�2�6�6�y�A�	�H�-5�
�)��'�6��&�&�'8�9�&*�O��
�	���
�
�S�V]�Vb�Vb�b�c����1�2�	�
�*�*�9�5�I�2;�2I�2I�+�.�
�|�Y��#�#�$5�6�*�N�+���N�+���+�+�	�C��~�~�"�"�g�l�l�2��	�	�
�
�Z��l�l�N�	4��
�
�7�7�Kc�Kc�4d�a�Q�\�\�4d�e�f����]�	��M�M�Q�Ue�f�g��	��
�i� � ��
�
�X�\c�d�e��� �����
�
�I�J����$5esA�F+�)8G�"G�H�
H&�+!G�G�)G?�>G?�H#�"H#c�l�tj|�}tj|�}i}|jD�]}	|j	|�}|j|jd�|d}|s�<	|jdt�fvr�Vt||�s�c	|jd�D]�}|jd�}|s�|jd�\}}	|	jd�D]j}
|
j�}
|
jdd	�d}|j|i�j|
t!��j#|j$��l����"i}|j-�D]n\}}
t/j0dj3|
j5�D�cgc]}t7j8|���c}�t.j:�}||
f||<�p|S#tttf$rY���wxYw#t&$r)t)j*d
|j$�d|���Y���wxYwcc}w)
aIBuild a modalias map from an apt_pkg.Cache object.

    This filters out uninstallable video drivers (i. e. which depend on a video
    ABI that xserver-xorg-core does not provide).

    Return a map bus -> modalias -> [package, ...], where "bus" is the prefix of
    the modalias up to the first ':' (e. g. "pci" or "usb").
    r�
Modaliases�all�)�, �(�,�:rzPackage z has invalid modalias header: �|)r7r\�PackageRecords�packagesr]�lookup�	file_listr[�AttributeError�UnicodeDecodeError�architecturer9rvrJrG�
setdefault�set�addr"�
ValueErrorr�error�itemsrrrE�keys�fnmatch�	translate�
IGNORECASE)rdrh�records�resultreri�m�partr@�lst�alias�bus�result2�	alias_map�pats               r�_apt_cache_modalias_mapr��s�����	�*�H��$�$�Y�/�G�
�F��%�%�"��	� �2�2�7�;�I��N�N�9�.�.�q�1�2���%�A����
� � ����(?�?��&�y�'�:��	"������
Z���z�z�$�'����"�j�j��o���� �Y�Y�s�^�Z�E�!�K�K�M�E��+�+�c�1�-�a�0�C��%�%�c�2�.�9�9�%���G�K�K�G�L�L�Y�Z�
Z�)"�B�G� �,�,�.�(���Y��j�j��H�H�	���8H�I��g�'�'��,�I�J��M�M����Y�'����	(��N��A�.�*<�=�	��	��*�	"��M�M����a�!�
"�	"��Js*�6G!�B<G<� H1�!G9�8G9�<.H.�-H.c��tSr%)�custom_supported_gpus_jsonr4rr�path_get_custom_supported_gpusr��s��%�%rc���t�}d}	t|d�5}	ttj|�d�}|D]E}|d|k(s�|djd�d}t
jd|�d	|d
�d|�d��nddd�|S#t$rt
jd
�Y�*wxYw#1swY|SxYw#t$rt
jd|z�Y|SwxYw)z|Get nvidia allowing driver for specific devices.

    did: 0x1234
    Return the situable nvidia driver version for it.
    N�r�chips�devid�branch�.rz#Found a specific nv driver version z for r"r|rzz;package_get_nv_allowing_driver(): unexpected json detected.z3package_get_nv_allowing_driver(): unable to read %s)
r�rC�list�json�loadrJr�info�	Exceptionr)�didrD�version�stream�gpus�gpus      r�package_get_nv_allowing_driverr��s���*�+�D��G�
�
�$��_�	��

��D�I�I�f�-�g�6�7����C��7�|�s�*�"%�h�-�"5�"5�c�":�1�"=�����&-�s�6�{�C�&A�B���	��N��
�
��
�
�[�\��
��	��N���
��
�
�K�d�R�S���N�
�sQ�C�B5�.B�<B�C�B2�/B5�1B2�2B5�5B?�:C�?C�!C'�&C'c�T�t�}td�|jD��}	tj|}|j|jdd�ddif�\}}t|�\}}d}	d}
|dk(r|td|z�}	d|	z}d	|z}|jD]9}
|
j�jd�d|k(s�)t|g�||<d}
�;|	�|
stjd
|z�|
s|�|j|�sgS|D]P}tj |j#�|j#��s�6||D]}
|j%|
���R|D�
cgc]}
||
��	c}
S#t
$r"t
|�}|tj|<Y��fwxYwcc}
w)z_Search packages which match the given modalias.

    Return a list of apt.Package objects.
    c3�<K�|]}|j����y�wr%)�get_fullname)�.0res  r�	<genexpr>z(packages_for_modalias.<locals>.<genexpr>!s����S�W�'�.�.�0�S�s�r~rrN�10DE�0xznvidia-driver-%szpci:v000010DEd0000%s*z%s is not in the package pool.)r��hashr��packages_for_modalias�
cache_mapsr[r�r_rJ�_get_vendor_model_from_aliasr�r�rrrr��fnmatchcase�lowerr�)rdr;�pkgs�apt_cache_hash�	cache_mapr��bus_map�vidr��nvamd�found�nvamdn�nvamda�pr�s               rr�r�s���
�5�D��S�	�@R�@R�S�S�N�E�)�4�4�^�D�	�
�=�=�����Q�!7��!:�T�2�J�G�L�C��+�H�5�H�C���E�
�E�
�f�}�.�t�c�z�:��#�e�+��(�3�.���#�#�	�A��~�~��%�%�c�*�1�-��7�"%�v�h�-������	���U��M�M�:�V�C�D���;�c�i�i��1��I�������x�~�~�/�����?��U�^�
�������
��
#'�'�Q�I�a�L�'�'��9�E�+�I�6�	�;D��(�(��8�E��8(s�E7�(F%�7'F"�!F"c��tj|�}|j|�}|�J�|jj	d�rytj
|�}|j
|jd�|jdjD]-\}}|js	|d}|dvcS|jdvs�-yy#t$rYywxYw)NrFr�	Component)�
restricted�
multiverseT)r7r\r]r"rIr�r�r��version_list�	componentr[)rd�pkgrhrir��pfile�_r�s        r�_is_package_freer�Fs������	�*�H��*�*�3�/�I�� � � ��x�x���8�$���$�$�Y�/�G��N�N�9�&�&�q�)�*��$�$�Q�'�1�1�
���q����
�#�K�0�	�!�)E�E�F����">�>��
����
��
�s�&C�	C�Cc��tj|�}|j|�}|�y	|jddjdk(S#t
$rYywxYw)NFr�Ubuntu)r7r\r]r��originr[)rdr�rhris    r�_is_package_from_distror�csc�����	�*�H��*�*�3�/�I������#�#�A�&�q�)�0�0�H�<�=������s�A
�
	A�Ac��tj|�}|j|�}tj|�}|j	|j
d�	|d}|jd�}|dkr!tjd|j�y|d|}|S#ttf$r#tjd|j�YywxYw)z-Determine module name from apt Package objectrrxzM_pkg_get_module %s: package has no Modaliases header, cannot determine moduleNr|zR_pkg_get_module %s: package has invalid Modaliases header, cannot determine module)r7r\r]r�r�r�r[r�rrr"r!)rdr�rhrir�r��parenr@s        r�_pkg_get_moduler�os������	�*�H��*�*�3�/�I��$�$�Y�/�G��N�N�9�&�&�q�)�*���L�!��

�F�F�3�K�E���z��
�
�j�lo�lt�lt�u��
�v��Y�F��M��
�n�%���
�
�e�gj�go�go�p���s�B�/C�Cc�z�tj|�}|j|�}tj|�}|j	|j
d�	|d}|dvr"tjd|j|�y|S#ttf$r#tjd|j�YywxYw)z/Determine support level from apt Package objectr�SupportzR_pkg_get_support %s: package has no Support header, cannot determine support levelN)�PB�NFB�LTSB�LegacyzY_pkg_get_support %s: package has invalid Support %sheader, cannot determine support level)r7r\r]r�r�r�r[r�rrr")rdr�rhrir��supports      r�_pkg_get_supportr��s������	�*�H��*�*�3�/�I��$�$�Y�/�G��N�N�9�&�&�q�)�*���)�$��
�5�5��
�
�?�@C���'�	S���N��
�n�%���
�
�j�lo�lt�lt�u���s�B�/B:�9B:c���tjd|�}|jd�}|jd�}|dk7ryd|z}t�}	t	|d�5}	tt
j|�d�}|D]�}|d	|k(s�d
|dvs�|djd
�d|k7r:tjd|djd
�d�d|���ddd�ytjd|z�ddd�y	ddd�y#t$rtjd�Y�)wxYw#1swYyxYw#t$rtjd|z�YywxYw)zAalias: e.g. pci:v000010DEd000024BAsv0000103Csd000089C6bc03sc00i00zpci:v0000(.*)d0000(.*)sv(.*)r�r�Fz0x%sr�r�r��	runtimepm�featuresr�r�rz!Candidate version does not match z != NzFound runtimepm supports on %s.Tz?_is_nv_allowing_runtimepm_supported(): unexpected json detectedz8_is_nv_allowing_runtimepm_supported(): unable to read %s)
r�searchr r�rCr�r�r�rJrrr�r�)	r��verr�r�r�rDr�r�r�s	         r�#_is_nv_allowing_runtimepm_supportedr��su��
�Y�Y�5�u�
=�F�
�,�,�q�/�C�
�,�,�q�/�C�
�f�}��
�3�,�C�)�+�D�
�
�$��_�
	��
��D�I�I�f�-�g�6�7���$�C��7�|�s�*�{�c�*�o�/M��x�=�.�.�s�3�A�6�#�=�#�M�M�+.�x�=�+>�+>�s�+C�A�+F��+M�N�#(�
	�
	� ���%F��%L�M�#�
	�
	�$�
	�"��
�
��
�
�_�`��
��
	�"���
��
�
�P�SW�W�X���
�sy�E�D9�.D�D�AD�E�(D�E�
D�D9�E�D6�3D9�5D6�6D9�9E�>E�E�!E)�(E)c�J��	tj|�}|j|�}tj|�}|j	|j
d�tj|j�}|jjd�d}|d}|jd�dk7ry||jd�dz|jd�}	|	jd	�}
t�|�ry
t�fd�|
D��S#tttf$rYywxYw)z>Check if the package supports runtimepm for the given modaliasrr��	PmAliasesznvidia(Fr|rrzr{Tc3��K�|]6}tj�j�|j�����8y�wr%)r�r�)r��regexr�s  �rr�z*_is_runtimepm_supported.<locals>.<genexpr>�s(�����Y�U�7�?�?�5�;�;�=�%�+�+�-�@�Y�s�<?)r7r\r]r�r�r��
TagSection�record�ver_strrJr!r��anyr[r�r�)rdr�r�rhrir��sectionr�r��n�
modaliasess  `        r�_is_runtimepm_supportedr��s���Z��#�#�I�.���.�.�s�3�	��(�(��3�����y�*�*�1�-�.��$�$�W�^�^�4�����%�%�c�*�1�-���K� ��
�6�6�)���!��
�a�f�f�S�k�!�m�Q�V�V�C�[�)���W�W�T�]�
�.�u�c�:���Y�j�Y�Y�Y��
�n�&8�9����s�BD�D"�!D"c�D�tjjd�duS)z*Check if the current session in on Wayland�WAYLAND_DISPLAYN)rA�environr_r4rr�is_wayland_sessionr��s��
�:�:�>�>�+�,�D�8�8rc�z�|jry|jjd�rd}n*|jjd�rd}nt||�}|sy	t	j
d|gtjtj��}|j�|jdk(r"tjd|j|�ytjd|j|�y#tttjf$r)}tjd	t|��Yd
}~yd
}~wwxYw)zIDetermine if the kernel module from an apt.Package is manually installed.Fr�fglrx�modinfo)�stdout�stderrrzJ_is_manual_install %s: builds module %s which is available, manual installTz_is_manual_install failed: %sNzQ_is_manual_install %s: builds module %s which is not available, no manual install)�current_verr"rIr��
subprocess�Popen�PIPE�communicate�
returncoderr�OSError�FileNotFoundError�CalledProcessError�str)rdr�r@r�rRs     r�_is_manual_installr�s�������x�x���8�$���	���	�	�W�	%��� ��C�0������"�"�I�v�#6�z���*4�/�/�;������
����"��M�M�f��(�(�F�
,���M�M�e��(�(�F�$���
�&�
�(E�(E�F���
�
�5�s�1�v�>����s�AC3�3D:�D5�5D:c	��	tjddd|zgd��}t	j
d	|�d}d}|j�D]$}|jd
d�\}}d|vr|}d
|vs�#|}�&t	j
d||||�||fS#ttjf$r+}t	j
d||t
|��Yd}~yd}~wwxYw)zTReturn (vendor, model) names for given device.

    Values are None if unknown.
    �udevadm�hwdbz--test=T)�universal_newlinesz-_get_db_name(%s, %s): udevadm hwdb failed: %sN�NNz_get_db_name: output
%s
r>r�_VENDOR�_MODELz-_get_db_name(%s, %s): vendor "%s", model "%s")	r��check_outputrrrrr�
splitlinesrJ)	�syspathr��outrR�vendor�modelrT�k�vs	         r�_get_db_namer�s���
��%�%�y�&�)�e�:K�&L�9=�?���M�M�.��4�
�F��E���� ������C��#���A���>��F��q�=��E���M�M�A�7����(��E�?���#
�Z�2�2�3���
�
�E�w�PU�WZ�[\�W]�^����s�B
�
C�&!C�Cc�l�d}d|z}t|d�}|j|�|j�y)zSet KMS on or off for NVIDIAz/lib/modprobe.d/nvidia-kms.confz�# This file was generated by ubuntu-drivers
# Set value to 1 to enable modesetting, 0 to disable it
options nvidia-drm modeset=%d
�wN)rC�write�close)�value�nvidia_kms_file�kms_text�kms_fds    r�set_nvidia_kmsrs9��7�O�#�&+�-�H��/�3�
'�F�
�L�L���
�L�L�Nrc�h�t|�}|s	tjd�}i}|j
�D]�\}}t||�D]�}	|r
t||	�s�|s!tj|	jd�r�5||t||	�t||	�t||	�t||	|�d�||	j<t||�\}
}|
�|
||	jd<|���|||	jd<����|D�	cgc]}	|	jd�s�|	��}}	|rs|j
�D] \}
}|
jd�s�|t |
<�"|j#t%j&t(���|d}|D]
}	|	|k(||	d	<�t+|�j
�D]/\}}|D]%}		||	}t||�t||�|d
�||	<�'�1|S#t$r!}t	j
|�icYd}~Sd}~wwxYwcc}	w#t,$rt	j.d|	z�Y��wxYw)u�Get driver packages that are available for the system.

    This calls system_modaliases() to determine the system's hardware and then
    queries apt about which packages provide drivers for those. It also adds
    available packages from detect_plugin_packages().

    If you already have an apt_pkg.Cache() object, you should pass it as an
    argument for efficiency. If not given, this function creates a temporary
    one by itself.

    If freeonly is set to True, only free packages (from main and universe) are
    considered

    Return a dictionary which maps package names to information about them:

      driver_package → {'modalias': 'pci:...', ...}

    Available information keys are:
      'modalias':    Modalias for the device that needs this driver (not for
                     drivers from detect plugins)
      'syspath':     sysfs directory for the device that needs this driver
                     (not for drivers from detect plugins)
      'plugin':      Name of plugin that detected this package (only for
                     drivers from detect plugins)
      'free':        Boolean flag whether driver is free, i. e. in the "main"
                     or "universe" component.
      'from_distro': Boolean flag whether the driver is shipped by the distro;
                     if not, it comes from a (potentially less tested/trusted)
                     third party source.
      'vendor':      Human readable vendor name, if available.
      'model':       Human readable product name, if available.
      'recommended': Some drivers (nvidia, fglrx) come in multiple variants and
                     versions; these have this flag, where exactly one has
                     recommended == True, and all others False.
    N�
oem-*-meta)r;r�free�from_distror�r�rr�nvidia-��keyr�recommended)r"r#�pluginz*Package %s plugin not available. Skipping.)rWr7�Cacher�rr�r�r�r�r�r"r�r�r�rrI�lookup_cache�sort�	functools�
cmp_to_key�_cmp_gfx_alternatives�detect_plugin_packagesr[r)rdrL�freeonly�include_oemr��exr�r�rr�rr�nvidia_packagesr&rr'r(r��apt_ps                   r�system_driver_packagesr5se��J#�8�,�J��	��
�
�d�+�I�
�H�$�*�*�,�2���w�&�y�%�8�	2�A�� 0��A� >���7�?�?�1�6�6�<�#H�� %�&�,�Y��:�#:�9�a�#H�/�	�1�=�!8��A�u�!M�
 �H�Q�V�V��+�7�E�:�O�V�U��!�-3����� ��*�� �,1����� ��)�#	2�2�*#+�F�Q�a�l�l�9�.E�q�F�O�F��#�.�.�*�	*�J�C���~�~�i�(�$)��S�!�	*�	����!5�!5�6K�!L��M�%�b�)�� �	<�A�*+�{�*:�H�Q�K�
�&�	<�/�y�9�?�?�A�
P�����		P�A�
P�!�!��� 0��E� B�'>�y�%�'P�"(�����		P�
P��O��g�	��M�M�"���I��	��4G��,�
P��
�
�J�Q�N�O�
P�s;�G�<H�H�3"H
�	H�$H�:H�H�
!H1�0H1c��tjd�}|j|�}|r(|jd�dd|jd�ddfSy)Nz$(.+):v(.+)d(.+)sv(.+)sd(.+)bc(.+)i.*r���r)rrrr )r��modalias_pattern�detailss   rr�r�sS���z�z�"H�I���$�$�U�+�G���
�
�a� ���$�g�m�m�A�&6�q�r�&:�;�;�rc��|�J�d}	tj|�}t|�}|jst	j
d|z�|S|j
�rt	j
d|z�|S|j�}d|z}	||}|j|�}|r|jdt�fvr|}|S#t$rY|SwxYw)N�)Unsupported driver detected: %s. Skipping�%Legacy driver detected: %s. Skipping.znvidia-driver-lrm-%sry)r7r\rrrrr'r/r]�archr9r[)	rdr�metapackagerh�nvidia_info�candidate_flavourrire�package_candidates	         r�get_userspace_lrm_metarC�s��������K�����	�*�H�#�H�-�K�����
�
�A�H�L�M����+�+�-��
�
�=��H�I���#�/�/�1��&�*;�<�I�	
��I�&��%�6�6�w�?���!�&�&�5�,�.�*A�A�#�K�����
����
�s�2C�	C�Cc��|�J�d}	tj|�}|j}t|�}|jstjd|z�|S|j�rtjd|z�|S|j�}d|z}	||}|j|�}	|r|	jdt�fvr|}|S#t$rY|SwxYw)Nr<r=znvidia-headless-no-dkms-%sry)
r7r\r"rrrrr'r/r]r>r9r[)
r�rdr?rhr"r@rArirerBs
          r�!_get_headless_no_dkms_metapackagerE�s����?��?��K��
���	�*�H��8�8�D�#�D�)�K�����
�
�A�D�H�I����+�+�-��
�
�=��D�E���#�/�/�1��,�0A�B�I�	
��I�&��%�6�6�w�?���!�&�&�5�,�.�*A�A�#�K�����
����
�s�2C�	C�Cc��|siSt|�}|s	tjd�}i}|j
�D]k\}}t||�D]W}tj|jd�s�$||t||�t||�dt||�d�||j<�Y�m|S#t$r!}t	j
|�icYd}~Sd}~wwxYw)u�Get device specific metapackages for this system

    This calls system_modaliases() to determine the system's hardware and then
    queries apt about which packages provide hardware enablement support for
    those.

    If you already have an apt_pkg.Cache() object, you should pass it as an
    argument for efficiency. If not given, this function creates a temporary
    one by itself.

    Return a dictionary which maps package names to information about them:

      driver_package → {'modalias': 'pci:...', ...}

    Available information keys are:
      'modalias':    Modalias for the device that needs this driver (not for
                     drivers from detect plugins)
      'syspath':     sysfs directory for the device that needs this driver
                     (not for drivers from detect plugins)
      'plugin':      Name of plugin that detected this package (only for
                     drivers from detect plugins)
      'free':        Boolean flag whether driver is free, i. e. in the "main"
                     or "universe" component.
      'from_distro': Boolean flag whether the driver is shipped by the distro;
                     if not, it comes from a (potentially less tested/trusted)
                     third party source.
      'vendor':      Human readable vendor name, if available.
      'model':       Human readable product name, if available.
      'recommended': Always True; we always recommend you install these
                     packages.
    Nr!T)r;rr"r#r'r�)
rWr7r)r�rr�r�r�r�r"r�r�r�)	rdrLr1r�r2r�r�rr�s	         r�#system_device_specific_metapackagesrG�s���@��	�"�8�,�J��	��
�
�d�+�I�
�H�$�*�*�,����w�&�y�%�8�
	�A��?�?�1�6�6�<�8�� %�&�,�Y��:�#:�9�a�#H�#'�/�	�1�=�
 �H�Q�V�V��
	���O��%�	��M�M�"���I��	�s�B*�*	C�3C�	C�Cc
��dg}t|�}|s	tjd�}i}|j
�D]�\}}t||�D]�}t||�\}	}
t|�\}}|��#|j�|vs�6||t||�t||�t||�d�||j<|	�|	||jd<|
�|
||jd<t||�}
|
���|
||jd<����|D�cgc]}|j!d�s�|��}}|rs|j
�D] \}}|j!d�s�|t"|<�"|j%t'j(t*���|d	}|D]
}||k(||d
<�|S#t$r!}t	j
|�icYd}~Sd}~wwxYwcc}w)u�Get driver packages, for gpgpu purposes, that are available for the system.

    This calls system_modaliases() to determine the system's hardware and then
    queries apt about which packages provide drivers for those. Finally, it looks
    for the correct metapackage, by calling _get_headless_no_dkms_metapackage().

    If you already have an apt_pkg.Cache() object, you should pass it as an
    argument for efficiency. If not given, this function creates a temporary
    one by itself.

    Return a dictionary which maps package names to information about them:

      driver_package → {'modalias': 'pci:...', ...}

    Available information keys are:
      'modalias':    Modalias for the device that needs this driver (not for
                     drivers from detect plugins)
      'syspath':     sysfs directory for the device that needs this driver
                     (not for drivers from detect plugins)
      'plugin':      Name of plugin that detected this package (only for
                     drivers from detect plugins)
      'free':        Boolean flag whether driver is free, i. e. in the "main"
                     or "universe" component.
      'from_distro': Boolean flag whether the driver is shipped by the distro;
                     if not, it comes from a (potentially less tested/trusted)
                     third party source.
      'vendor':      Human readable vendor name, if available.
      'model':       Human readable product name, if available.
      'recommended': Some drivers (nvidia, fglrx) come in multiple variants and
                     versions; these have this flag, where exactly one has
                     recommended == True, and all others False.
    �10deN)r;rr"r#r�rrr?r$r%rr')rWr7r)r�rr�r�r�rr�r�r�r�r�r"rErIr*r+r,r-�_cmp_gfx_alternatives_gpgpu)rdrL�vendors_whitelistr�r2r�r�rr�rr�	vendor_id�model_idr?r3r&rr's                  r�system_gpgpu_driver_packagesrNs���D ���"�8�,�J��	��
�
�d�+�I�
�H�$�*�*�,�B���w�&�y�%�8�	B�A�*�7�E�:�O�V�U�">�u�"E��I�x��%�I�O�O�,=�AR�,R�$)�#*� 0��A� >�'>�y�!�'L�#3�I�q�#A�$����� ��%�17�H�Q�V�V�$�X�.��$�05�H�Q�V�V�$�W�-�?��9�M���*�6A�H�Q�V�V�$�]�3�%	B�B�,#+�F�Q�a�l�l�9�.E�q�F�O�F��#�.�.�*�	*�J�C���~�~�i�(�$)��S�!�	*�	����!5�!5�6Q�!R��S�%�b�)�� �	<�A�*+�{�*:�H�Q�K�
�&�	<��O��O�	��M�M�"���I��	��6Gs)�F�G�G�	G�"F>�8G�>Gc�8�i}|s	tjd�}t|||��j
�D]p\}}d|vr|d}n|d}|j|i�dD]}||vs�|||||<�||jdi�}	|d|dd	�|	|<d
|vs�f|d
|	|d
<�r|j
�D]%\}
}|dD]}t|||�r�� d|d<�'t|�|S#t$r!}tj|�icYd}~Sd}~wwxYw)
uGet by-device driver packages that are available for the system.

    This calls system_modaliases() to determine the system's hardware and then
    queries apt about which packages provide drivers for each of those. It also
    adds available packages from detect_plugin_packages(), using the name of
    the detction plugin as device name.

    If you already have an apt_pkg.Cache() object, you should pass it as an
    argument for efficiency. If not given, this function creates a temporary
    one by itself.

    If freeonly is set to True, only free packages (from main and universe) are
    considered

    Return a dictionary which maps devices to available drivers:

      device_name →  {'modalias': 'pci:...', <device info>,
                      'drivers': {'pkgname': {<driver package info>}}

    A key (device name) is either the sysfs path (for drivers detected through
    modaliases) or the detect plugin name (without the full path).

    Available keys in <device info>:
      'modalias':    Modalias for the device that needs this driver (not for
                     drivers from detect plugins)
      'vendor':      Human readable vendor name, if available.
      'model':       Human readable product name, if available.
      'drivers':     Driver package map for this device, see below. Installing any
                     of the drivers in that map will make this particular
                     device work. The keys are the package names of the driver
                     packages; note that this can be an already installed
                     default package such as xserver-xorg-video-nouveau which
                     provides a free alternative to the proprietary NVidia
                     driver; these will have the 'builtin' flag set.
      'manual_install':
                     None of the driver packages are installed, but the kernel
                     module that it provides is available; this usually means
                     that the user manually installed the driver from upstream.

    Aavailable keys in <driver package info>:
      'builtin':     The package is shipped by default in Ubuntu and MUST
                     NOT be uninstalled. This usually applies to free
                     drivers like xserver-xorg-video-nouveau.
      'free':        Boolean flag whether driver is free, i. e. in the "main"
                     or "universe" component.
      'from_distro': Boolean flag whether the driver is shipped by the distro;
                     if not, it comes from a (potentially less tested/trusted)
                     third party source.
      'recommended': Some drivers (nvidia, fglrx) come in multiple variants and
                     versions; these have this flag, where exactly one has
                     recommended == True, and all others False.
    N)r0rr()r;rr�driversr"r#)r"r#r'T�manual_install)
r7r)r�rr�r5r�r�r�
_add_builtins)rdrLr0r�r2r��pkginfo�device_name�opt_keyrPr?r�s            r�system_device_driversrVasn��j�F��	��
�
�d�+�I�/�y�(�8@�B�BG�%�'�
A���W����!�)�,�K�!�(�+�K����+�r�*�6�	@�G��'�!�/6�w�/?��{�#�G�,�	@���%�0�0��B�?�� '����
�@V�W�����G�#�*1�-�*@�G�C�L��'�
A�"����*�����	�?�	*�C�%�i��3��@��	*�&*�D�!�"�*��&���M��A�	��M�M�"���I��	�s�C/�/	D�8D�D�Dc��t||||��}t||�}|stjd�|St	j
|�}t	j|�}g}|D]�}	||	}
|
jr�|j|	�|j|
�}|j|jd�|dr.	tdd�}|jd�|j�	t!||	�}
|
r_||
jsP|j|
�t#||	�}|r1||js"|j|�|j%|	���|S#t$rY�}wxYw#t&$rY��wxYw)z4Return the list of packages that should be installed)r0r1z"No drivers found for installation.rr��/run/nvidia_runtimepm_supportedr�
)r5�auto_install_filterrrr7r\r�r��appendr]r�r�rCrr�PermissionError�get_linux_modules_metapackagerC�remover[)rdrL�	free_onlyr1�
driver_stringr�rhr��
to_installr��package_objri�pm_fd�modules_package�lrm_metas               r�get_desktop_package_listrf�s���%��8�i��!�H�#�8�]�;�H���
�
�:�;������	�*�H��$�$�Y�/�G��J�
�����l���&�&����a� � �2�2�;�?�I��N�N�9�.�.�q�1�2��{�#�� �!B�C�H�E��K�K��%��K�K�M�
�"?�	�1�"M��"�9�_�+E�+Q�+Q��%�%�o�6�5�i��C�H��	�(�(;�(G�(G�"�)�)�(�3�"�)�)�!�,��;�B���%'������
��
�s%�>-E�,A-E,�	E)�(E)�,	E9�8E9c�h�|D]-}t|�}|j�dk\s�"td�yy)zHApplies changes that need to happen before installing the NVIDIA driversi�rN)rr-r)ra�package_namer@s   r�$nvidia_desktop_pre_installation_hookri�s9��#���'��5���(�(�*�c�1��1���	rc� �tjjd�rTtjd�	tjddg�tdd�5}|jd�ddd�yy#t$rY�3wxYw#1swYyxYw)NrXz,Trying to select the on-demand PRIME profilez/usr/bin/prime-selectz	on-demandz$/etc/u-d-c-nvidia-runtimepm-overriderz!# File created by ubuntu-drivers
)
rArD�isfilerrr��callrrCr)rQs r�%nvidia_desktop_post_installation_hookrm�s���
�w�w�~�~�7�8��
�
�D�E�	��O�O�4�k�B�C�
�8�#�
>�	:�!�
�G�G�8�9�	:�	:�9��!�	��	��	:�	:�s�A5�B�5	B�B�B
c��eZdZdd�Zd�Zy)�_GpgpuDriverNc�.�d|_||_||_y)N)r)�_vendors_whitelistr�flavour)rrrrs   rrz_GpgpuDriver.__init__s��"-��������rc��|jr+tj|j|j�sy|jxr
|jS)NF)rr��filterrqrrr&s rrz_GpgpuDriver.is_valids?���;�;��>�>�$�"9�"9�4�;�;�G�����O�8�D�L�L�(8�9�9rr)r0r1r2rrr4rrroro
s���
:rroc���t�}tjd�}tjd�}tjd�}|j|�}|j|�}|j|�}|rA|j	d�|_|j	d��|j	d���|_|S|r	||_|S|r)|j	d��|j	d���|_|S)zReturns a _GpgpuDriver objectz(.+):([0-9]+)(.*)z([a-z]+)z([0-9]+)(.*)rr�r8)rorrrr rrr)�stringr?�full_pattern�vendor_only_pattern�series_only_pattern�
full_match�vendor_match�series_matchs        r�_process_driver_stringr}s���
�^�F��:�:�1�2�L��*�*�Z�0���*�*�^�4���#�#�F�+�J�&�,�,�V�4�L�&�,�,�V�4�L��"�(�(��+��
�#-�#3�#3�A�#6�
�8H�8H��8K�L����M�
���
��M�
�#/�#5�#5�a�#8�,�:L�:L�Q�:O�P����Mrc���g}g}i}	|s|S|rG|jd�D]2}t|�}|s�|j�s�"|j|��4nt	�}|j|�t|�dkr|Sd}|D]}|js
d||_|dz
}�d}g}|D]N}|j}	|j|	�rtjd�|cS|j|	�|dz
}�Pd}|D])}|js|js
d||_|dz
}�+|D]^}|jr|j�d|j��}
nd|jz}
|jtj||
���`|D]W}|D]P}|j|j�s�|jr	||||<n||jd�r||||<�W�Y|S)	Nr}rrrz0Multiple nvidia versions passed at the same time�*z%s*r')rJr}rr[ro�lenr�__contains__rrrr�extendr�rtr_)r��drivers_strrP�allowr��itemr?�it�vendors_temprr#r�s            r�gpgpu_install_filterr�0s���G��E�
�F��&��
�� �%�%�c�*�	'�D�+�D�1�F��&�/�/�+����v�&�	'�������v��
�7�|�a���
�
�B�����}�}�!)�G�B�K��
�a����
�B��L���������$�$�V�,��M�M�L�M��M����F�#�
�a����
�B�����~�~�f�m�m�!)�G�B�K��
�a�����8���>�>�!'������?�G��v�}�}�-�G�
���W�^�^�H�g�6�7�8�����
	�F��~�~�f�m�m�,��>�>� (���F�1�I� ��{���}�5�$,�Q�K��q�	��
	���Mrc���gd�}|rt||�}|Sg}|D]'}|jtj||���)i}|D]}d||vs	||ds�||||<�|S)a�Get packages which are appropriate for automatic installation.

    Return the subset of the given list of packages which are appropriate for
    automatic installation by the installer. This applies to e. g. the Broadcom
    Wifi driver (as there is no alternative), but not to the FGLRX proprietary
    graphics driver (as the free driver works well and FGLRX does not provide
    KMS).
    )zbcmwl*z	pvr-omap*zvirtualbox-guest*znvidia-*zopen-vm-tools*r!zbroadcom-sta-dkmsr')r�r�r�rt)r�r��	whitelist�resultsr�r#r�r�s        rrZrZ�s���F�I��&�x��=�����E��8��
���W�^�^�H�g�6�7�8��F�
�$������+�x��{�=�/I� ���F�1�I�$��Mrc	��i}tjjdd�}tjj	|�stjd|�|S|�	tjd�}tj|�D�]1}|jd�s�tjj||�}tjd|�i}t|�5}	tt!|j#�|d�|�|d|�}tjd	||�|�
	ddd���t'|�t(t*fvr*tjd|t'|��	ddd���|D]5}		||	}
t-||
�r!|j/|g�j1|	��7	ddd���4|S#t$r!}tj|�icYd}~Sd}~wwxYw#t$r"tj$d
|�Yddd����wxYw#t2$rtjd|	|�Y��wxYw#1swY���xYw)
aaGet driver packages from custom detection plugins.

    Some driver packages cannot be identified by modaliases, but need some
    custom code for determining whether they apply to the system. Read all *.py
    files in /usr/share/ubuntu-drivers-common/detect/ or
    $UBUNTU_DRIVERS_DETECT_DIR and call detect(apt_cache) on them. Filter the
    returned lists for packages which are available for installation, and
    return the joined results.

    If you already have an existing apt_pkg.Cache() object, you can pass it as an
    argument for efficiency.

    Return pluginname -> [package, ...] map.
    �UBUNTU_DRIVERS_DETECT_DIRz(/usr/share/ubuntu-drivers-common/detect/z3Custom detection plugin directory %s does not existNz.pyz"Loading custom detection plugin %s�exec�detectzplugin %s return value: %szplugin %s failed:z6plugin %s returned a bad type %s (must be list or set)z.Ignoring unavailable package %s from plugin %s)rAr�r_rD�isdirrrr7r)r�r��listdir�endswithrErCr�rrF�	exception�typer�r�rvr�r[r[)rdr��	plugindirr2�fnamer(�symbrQr�r�res           rr/r/�s1���H��
�
���:�I�K�I�
�7�7�=�=��#��
�
�K�Y�W�����	��
�
�d�+�I�
���I�&�a���~�~�e�$�������i��/���
�
�:�F�C���
�&�\�	a�Q�
��W�Q�V�V�X�v�v�6��=�'��h��	�2���
�
�:�F�F�K�
�~��	a�	a��F�|�D�#�;�.��
�
�V�X^�`d�ek�`l�m��	a�	a��
a��a�'��n�G�.�y�'�B� �+�+�E�2�6�=�=�c�B��	
a�	a�	a�a�<�O��E�	��M�M�"���I��	�� �
��!�!�"5�v�>��	a�	a�

�� �a��M�M�"R�TW�Y_�`�a��)	a�	a�s�F>� H?�"AG+�)H?�58H?�6H?�<2H�.H?�>	G(�G#�G(�#G(�+H�
H?�H�H?� H<	�9H?�;H<	�<H?�?I		c�v�tj|�r$tj|�jd�Sy)z5Look up driver package and return their support levelr�N)r*r_)rus r�_pkg_support_from_cacher��s/�����������"�&�&�y�1�1�rc���|jd�r|jd�sy|jd�s|jd�ry|jd�r|jd�sy|jd�s|jd�ryddg}d}d}t|�}t|�}||vr|dz
}||vr|dz
}||kDr|dz
}n
||kr|dz
}|dk\s|dk\r||kDry||kryt|�dk(rt|�dk7ryt|�dk7rt|�dk(ryt|�dk(rt|�dk7ryt|�dk7rt|�dk(ryt|�d	k(rt|�d	k7ryt|�d	k7rt|�d	k(ryt|�d
k(rt|�d
k7ryt|�d
k7rt|�d
k(ry||kry||kDry||k(sJ�y)aCompare two graphics driver names in terms of preference. (desktop)

    -open always sorts after non-open.
    -server always sorts after non-server.
    LTSB (Long Term Support Branch) always sorts before NFB (New Feature Branch).
    Legacy always sorts before Beta.
    rrrrr�r�r�dr��Beta�r�r�)ru�y�preferred_support�x_score�y_score�	x_support�	y_supports       rr.r.�s��	�z�z�'��1�:�:�g�#6���:�:�g��1�:�:�g�#6���z�z�)��Q�Z�Z�	�%:���:�:�i� �Q�Z�Z�	�%:���v����G��G�'��*�I�'��*�I��%�%��3����%�%��3����1�u��1���	
�Q���1���	�C��W��^��W���
�w�
���q�!�T�)�.E�a�.H�D�.P���q�!�T�)�.E�a�.H�D�.P���q�!�V�+�0G��0J�f�0T���q�!�V�+�0G��0J�f�0T���q�!�X�-�2I�!�2L�PX�2X���q�!�X�-�2I�!�2L�PX�2X���q�!�V�+�0G��0J�f�0T���q�!�V�+�0G��0J�f�0T���1�u���1�u����6�M�6�rc��|jd�r|jd�sy|jd�s|jd�ry|jd�r|jd�sy|jd�s|jd�ryt|�dk(rt|�dk7ryt|�dk7rt|�dk(ryt|�dk(rt|�dk7ryt|�dk7rt|�dk(ryt|�dk(rt|�dk7ryt|�dk7rt|�dk(ryt|�dk(rt|�dk7ryt|�dk7rt|�dk(ry||kry||kDry||k(sJ�y	)
aCompare two graphics driver names in terms of preference. (server)

    -open always sorts after non-open.
    -server always sorts before non-server.
    LTSB (Long Term Support Branch) always sorts before NFB (New Feature Branch).
    Legacy always sorts before Beta.
    rrrrr�r�r�r�rr�)rur�s  rrJrJ:sx��	�z�z�'��1�:�:�g�#6���:�:�g��1�:�:�g�#6���z�z�)��Q�Z�Z�	�%:���:�:�i� �Q�Z�Z�	�%:���q�!�T�)�.E�a�.H�D�.P���q�!�T�)�.E�a�.H�D�.P���q�!�V�+�0G��0J�f�0T���q�!�V�+�0G��0J�f�0T���q�!�X�-�2I�!�2L�PX�2X���q�!�X�-�2I�!�2L�PX�2X���q�!�V�+�0G��0J�f�0T���q�!�V�+�0G��0J�f�0T���1�u���1�u����6�M�6�rc���|j�D]d\}}|dD]W}|jd�rddddd�|dd<�.|jd�s�5|dD]
}d|d|d<�ddddd�|dd	<�d�fy
)zAdd builtin driver alternativesrPrTF)r"�builtinr#r'zxserver-xorg-video-nouveaur�r'zxserver-xorg-video-atiN)r�rI)rP�devicer�r��ds     rrRrRds��� �
�
�������	�?�	�C��~�~�h�'� �T�$�W\�A^��Y�� <�=���~�~�g�&��i��>�A�8=�D��O�A�&�}�5�>�!�T�$�W[�=]��Y�� 8�9��	�rc�L�tj|�}|j�S)z0Return the linux headers for the system's kernel)r�KernelDetection�get_linux_headers_metapackage�rd�kernel_detections  r�get_linux_headersr�zs"��&�6�6�y�A���9�9�;�;rc�L�tj|�}|j�S�z.Return the linux image for the system's kernel)rr��get_linux_image_metapackager�s  r�get_linux_imager��s"��&�6�6�y�A���7�7�9�9rc�L�tj|�}|j�Sr�)rr��get_linux_versionr�s  rr�r��s"��&�6�6�y�A���-�-�/�/rc�L�tj|�}|j�S)z4Return the linux metapackage for the system's kernel)rr��get_linux_metapackager�s  r�	get_linuxr��s"��&�6�6�y�A���1�1�3�3rc��tj|�}	|j||�}	|jjd�D]$}|D]\}}}|jd�s�|ccS�&	y#t$rt	j
d|z�YywxYw#ttf$rt	j
d|z�YywxYw)NzNo candidate for %s foundrY�linux-image-z+Could not check dependencies for %s package)
r7r\r]r[rrr^r_rIr`)rdr�rhrirkrlrmrns        r�get_linux_image_from_metar��s������	�*�H���.�.�y��~�>�	�
M�!�2�2�6�6�y�A�	$�H�-5�
$�)��'�6��&�&�~�6�#�O�
$�	$�&��1���
�
�1�C�7�8����
�i� �M��
�
�C�s�K�L��M�s.�A0�8B�%B�+B�0!B�B�'C�Cc�b�|�J�d}d}d}tj|�}t|�}|jst	j
d|z�|S|j
�rt	j
d|z�|St|�}t||�}|r|jdd�}nt	j
d|z�|S|j�}	d|	�d|��}
	||
}|j|�}|r�|jd	t�fvrut|�}
d|	�d|
��}t	j
d
|z�||}|j|�}|r2|jd	t�fvrt	j
d|z�|
}|r�||j D�cgc]=}|j"j$j'd�r|j"j$��?}}d}d|	�dt|�jdd���}|D]
}||k(s�	|}�|r|}|Sd
|	z}t	j
d|z�	||}|j|�}|r|jd	t�fvr|}|S#t$rt	j
d|
�Y��wxYwcc}w#t$rt	j(d|�Y|SwxYw)zDReturn the linux-modules-$driver metapackage for the system's kernelNrzNNon NVIDIA linux-modules packages are not supported at this time: %s. Skippingr=r�z-No linux-image can be found for %s. Skipping.zlinux-modules-nvidia-�-ryzlinux_modules_abi_candidate: %szFound ABI compatible %szNo "%s" can be found.znvidia-dkms-%szFalling back to %s)r7r\rrrrr'r�r�rZr/r]r>r9r�r[rbrcr"rIr�)rdrir?�
linux_flavour�linux_modules_matchrhr@�linux_image_meta�linux_imagerA�linux_modules_candidatererB�
linux_version�linux_modules_abi_candidate�abi_specific�abi_specific_candidatert�reverse_deps�pick�modules_candidate�dkms_packages                      rr]r]�s���� � � ��K��M������	�*�H�#�I�.�K�����
�
�f�ir�r�s����+�+�-��
�
�=�	�I�J���&�y�1��+�I�7G�H�K��#�+�+�N�B�?�
��
�
�E�	�Q�R���#�/�/�1��>O�Q^�_��
��3�4��$�6�6�w�?���"3�"8�"8�U�L�N�<S�"S�-�i�8�M�J[�]j�*k�'��M�M�;�?Z�[�\�%�%@�A�L�%-�%?�%?��%M�"�&�*�/�/�E�<�>�3J�J��
�
�7�;V�W�X�&=�#��8A�AT�7U�7f�7f�T���>�>�.�.�9�9�:Q�R����+�+�T��T���<M�<K�I�<V�<^�<^�_m�oq�<r�t���	�C��'�'���	���K���$�&7�7�L��M�M�&�,�7�8�

��L�)��$�6�6�w�?��
�!�&�&�5�,�.�*A�A�&�K�
���O�
��
�
�-�/F�G��
��T��4�
��
�
�-�|�<����	
�s,�B%I �AJ�,2J� J�J�J.�-J.r%)NNFT)NNTr)NNF)NFTr)r);r3rArr�r�r,rr�r7�
UbuntuDriversrr6r*r��objectrr9rWrvr�r�r�r�r�r�r�r�r�r�r�r�rrrr5r�rCrErGrNrVrfrirmror}r�rZr/r�r.rJrRr�r�r�r�r�r]r4rr�<module>r�s?��M�
�����	���)�����>��5��5�p�,�^5�p5�p&��6&(�R$&�� ��:	��,�,�<Z�.9�
 �F�8�]�@� �F"�J:�zO�dY�x0�f�:�:�6�:��.a�H�:;�|�A
�H'
�T�,<�:�0�4��@Yr

Zerion Mini Shell 1.0