Server IP : 15.235.198.142 / Your IP : 216.73.216.149 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/sos/policies/distros/__pycache__/ |
Upload File : |
� i��d� � �^ � d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z d dl Z G d� de� Zy) � )�UbuntuPlugin)�DebianPolicy)�SnapPackageManager)�DpkgPackageManager)�MultiPackageManagerNc �z � � e Zd ZdZdZddgZdZdZdZdZ dZ d� fd � Zedd �� Z d� Z� fd�Zd � Z� fd�Z� xZS )�UbuntuPolicy�Ubuntu� Canonical)zCommunity Websitezhttps://www.ubuntu.com/)zCommercial Supportzhttps://www.canonical.comzb/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/sbin:/usr/local/bin:/snap/binz,https://files.support.canonical.com/uploads/�ubuntu�putc � �� t t | � ||||�� t t t g| j |�� | _ | j j d� d dk( rd| _ | xj t gz c_ y )N)�sysroot�init� probe_runtime�remote_exec)�primary� fallbacks�chrootr � sosreport�pkg_manager�snapz /snap/bin)�superr �__init__r r r r �package_manager�pkg_by_name�sos_bin_path�valid_subclassesr )�selfr r r r � __class__s ��=/usr/lib/python3/dist-packages/sos/policies/distros/ubuntu.pyr zUbuntuPolicy.__init__! s� �� � �l�D�*�7��9F�7B� +� D� 3�&�)�*��<�<�#� %��� ���+�+���*�,�/5�6� +�D�����,��/�� c � � |r| j |v S t dd� 5 }d|j � v cddd� S # 1 sw Y yxY w# t $ r Y yw xY w)z[This method checks to see if we are running on Ubuntu. It returns True or False.�/etc/lsb-release�rr NF)�distro�open�read�IOError)�cls�remote�fps r! �checkzUbuntuPolicy.check3 s\ � � ��:�:��'�'� ��(�#�.� -�"��2�7�7�9�,� -� -� -��� �� �s* �A �:� A �A�A �A � A�Ac � � t dd� 5 }|j � }|D ]<