403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/DistUpgrade/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/DistUpgrade/__pycache__/DistUpgradeView.cpython-314.pyc
+
�[�ic@��^�^RIHt^RIHt^RIHt^RIt^RIH	t	^RI
t
^RIt^RIt^RI
t
^RIt^RIt^RIt^RIHt]
P&!]
P(R4]
P*!4wtt]'g4R	t]P2!R
R4]
P&!]
P4R4]P8!R]
P:!4,4R
t!RR]P>P@PB4t!!RR]P>P@PD4t"!RR]#4t$!RR]#4t%!RR]	4t&]!R4]!R4]!R4]!R4]!R43!RR]#4t'R# ]P0!R4R	tEL$;i ]
P6dL�i;i)�)�gettext)�ngettext)�getN)�Enum)�apport_pkgfailure�zgetting the encoding failedzutf-8�LC_CTYPEzC.UTF-8zlocale: '%s' '%s'c��\V4pVR,pVR,^,pV^<,^<,pV^<,pV^8Xd^pRRRRRRRR/pV^8�d\RRV4V,VR&V^8�d\RR	V4V,VR&V^8�d\R
RV4V,VR&\RR
V4V,VR&V^8�d*VR,R8Xd
VR,#\R4V,#V^8�d
VR,#V^8�d*VR,R8Xd
VR,#\R4V,#V^8�d
VR,#VR,#)z:return the time a bit fuzzy (no seconds if time > 60 secs �str_daysr�	str_hours�str_minutes�str_secondsz%li dayz%li daysz%li hourz	%li hoursz
%li minutez%li minutesz
%li secondz%li secondsz%(str_days)s %(str_hours)sz%(str_hours)s %(str_minutes)sii�Q)�intr�_)�sec�days�hours�minutes�seconds�maps&     �=/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeView.py�FuzzyTimeToStrr;sm��	�C��#�	�x��$�

��,��
�%�
�"�W��N�'��"�H�'���\��G��r�
��
�"�
�"�	
�#�
�A�X��y��T�:�T�A�C�
�O�
�Q�Y��
�;��>��F�C����q�[�!�,�}�g�F��P�C�
����]�G�D�w�N�#�m��
�A�X�
�;��2���:���
�
)�*�S�0�0��q�y��{����q�y�
�=��R���;���
�
,�-��3�3���{��}���	�]�	��c�laa�]tRt^toV3RltV3RltV3RltRtR	V3RlltRt	Rt
RtVtV;t
#)
�AcquireProgressc�:<�\\V`4RVnR#)�N)�superr�__init__�	est_speed��self�	__class__s&�rr�AcquireProgress.__init__�s���	�/�4�)�+��D�Nrc�d<�\\V`4RVnRVnRVnRVnR#)rFN)rr�startr �eta�percent�release_file_download_errorr!s&�rr&�AcquireProgress.start�s-���	�/�4�&�(��D�N��D�H��D�L�',�D�$rc�L<�\\V`WW44V\P8Xdz\
P!RV,4VPR4'gVPR4'd-RF$pVPV4'gKRVn	R#	R#R#R#)z update_status: dlFailed on '%s' zRelease.gpg�ReleaseTN)�http�ftp�mirror)
rr�
update_status�apt_pkg�STAT_FAILED�logging�warning�endswith�
startswithr))r"�uri�descr�
shortDescr�status�netr#s&&&&& �rr0�AcquireProgress.update_status�s����	�/�4�.�s�:�N���$�$�$�
�o�o�8�3�>�?�	���m�	$�	$����Y�(?�(?�+�C�
�^�^�C�
 �
 �/3�D�,��+�)@�%rc��R#)T�)r"�args&&r�pulse_items�AcquireProgress.pulse_items�s��rc�<�\\V`V4VPVP,R,\VPVP,4,VnVPVP8�d*VPVP,R,Vn
VP^8�d=VPVP,
\VP4,VnR#)gY@g@T)rr�pulse�
current_bytes�
current_items�float�total_bytes�total_itemsr(�current_cpsr r')r"�ownerr#s&&�rrC�AcquireProgress.pulse�s����	�/�4�&�u�-��(�(�4�+=�+=�=��F��$�*�*�T�-=�-=�=�>�?�D�L����$�.�.�(����t�'7�'7�7��<�d�n����!���#�#�d�&8�&8�8���(�(�)�*�d�h�rc� �VP^8g#)�)r �r"s&r�isDownloadSpeedEstimated�(AcquireProgress.isDownloadSpeedEstimated�s���N�N�a�� rc���VP^8Xd;VR,pVR,p\R4\V4\V43,pV#\R4\WP,4,pV#)z get the estimated download time z_This download will take about %s with a 40Mbit connection and about %s with a 5Mbit connection.z7This download will take about %s with your connection. g�#Ag�SA)r rr)r"�required_download�	time5Mbit�
time40Mbit�ss&&   r�estimatedDownloadTime�%AcquireProgress.estimatedDownloadTime�st���~�~���#�]�3�i�$�n�5�j�	
�3�
4�7E�j�7Q�Sa�bk�Sl�6m�
n�a�
�h�	�
C�D�~�Vg�hv�hv�Vv�Gw�w�A��Hr)r r'r(r)�N)�__name__�
__module__�__qualname__�__firstlineno__rr&r0r@rCrOrV�__static_attributes__�__classdictcell__�
__classcell__)r#�
__classdict__s@@rrrs-�����-���	�!�

�

rrc�<a�]tRt^�toRtRtRtRtRtRt	Vt
R#)�InstallProgresszVBase class for InstallProgress that supports some fancy
stuff like apport integration
c�z�\PPPP	V4RVnR#rX)�apt�progress�baserbr�	master_fdrNs&rr�InstallProgress.__init__�s'���L�L���%�%�.�.�t�4��D�Nrc�`�\P!VP...VP4VP4\P!VP\P4wr#W P8XdV#K� \Pd2pTP^,\
P8wdhRp?L�Rp?ii;i \dRpTP
\
P8wdhTP
\
P8XdRp?X#Rp?EK'Rp?ii;i)z~Wait for child progress to exit.

The return values is the full status returned from os.waitpid()
(not only the return code).
N)�select�statusfd�select_timeout�error�args�errno�EINTR�update_interface�os�waitpid�	child_pid�WNOHANG�OSError�ECHILD)r"�e�pid�ress&   r�
wait_child�InstallProgress.wait_child�s���
���m�m�T�]�]�O�R��T�5H�5H�I��
�
�
!���:�:�d�n�n�b�j�j�A�j�s����&���j�'��
���������e�k�k�)��*���������E�K�K�'�����E�L�L�(��
�j�)���s0�.B�AC�C�'C	�	C�D-�?D(�(D-c��VP4pV^8Xdf\P!\P\P4VP	VP
4p\P!X4W n\P"!VP%44pV# \d�p\RT4\P!R4\RR4;_uu_4pTP\T44RRR4M +'giM;i\P!TP4Rp?L�Rp?ii;i)rMz!Exception during pm.DoInstall(): zException during pm.DoInstall()z./var/run/ubuntu-release-upgrader-apt-exception�wN)�fork�signal�SIGPIPE�SIG_IGN�
do_install�writefd�	Exception�printr3�	exception�open�write�strrr�_exit�
RESULT_FAILEDrt�WEXITSTATUSr{)r"�pmryrzrx�fs&&    r�run�InstallProgress.run�s���
�)�)�+�C�
�a�x�
�m�m�F�N�N�6�>�>�2�#��m�m�D�L�L�)��	�h�h�s�m��N�
�.�.����*�
+�C��J���#�
�1�1�5����;�<�
�B�3�
G�
G�1�
�G�G�C��F�O�H�
G�
G�
G��
����!�!�"�"��#�s0�B)�)E�46E�*D�	E�D�(E�Ec���\PPPP	WV4\
P!RV:RV:R24RV9d \PPV4pVPR4^,P4'd(RPVPR4R,4pRV9dVPR4^,p\W4R#)	zinstall error from a package z!got an error from dpkg for pkg: 'z': '�'�/�-:rNNrN)
rdrerfrbrmr3rr�path�basename�split�isdigit�joinr)r"�pkg�errormsgs&&&rrm�InstallProgress.error�s����L�L���%�%�+�+�D�x�@��M�M�#�x�P�Q�
�c�z��G�G���S�!�c�
�y�y��~�a�� � �"�"�
�J�J�s�y�y��~�b�)�*�c�
�c�z��I�I�c�N�1��c��c�$r)rtrgN)rYrZr[r\�__doc__rr{r�rmr]r^�r`s@rrbrb�s#�������0�&%�%rrbc�*a�]tRt^�toRRltRtVtR#)�DumbTerminalc�0�^RIpVPV4R#)z6expects a command in the subprocess style (as a list) N)�
subprocess�call)r"�cmd�hiddenr�s&&& rr��DumbTerminal.call�s�������rr>N�F)rYrZr[r\r�r]r^r�s@rr�r��s�����rr�c�2a�]tRt^�toRtRtRtRtVtR#)�SampleHtmlViewc��R#rXr>)r"�urls&&rr��SampleHtmlView.open�s��rc��R#rXr>rNs&r�show�SampleHtmlView.show����
rc��R#rXr>rNs&r�hide�SampleHtmlView.hider�rr>N)	rYrZr[r\r�r�r�r]r^r�s@rr�r��s����
���rr�c�2�]tRtRt^t^t^t^t^t^t	^t
RtR#)�Stepir>N)rYrZr[r\�PREPARE�MODIFY_SOURCES�FETCH�INSTALL�CLEANUP�REBOOT�Nr]r>rrr�r�s%���G��N�
�E��G��G�
�F�	�Arr�zPreparing to upgradezGetting new software channelszGetting new packageszInstalling the upgradeszCleaning upc�a�]tRtRtoRtRtRtRtRRltRt	R	t
R
tRtRt
R
tRtRRltRRltRRltRtRtRtRRltRRltRtRRltRtVtR#)�DistUpgradeViewiz!abstraction for the upgrade view c��RVnR#)FN)�needs_screenrNs&rr�DistUpgradeView.__init__s
��!���rc�R�\PPP4#)z4return a OpProgress() subclass for the given graphic)rdrerf�
OpProgressrNs&r�getOpCacheProgress�"DistUpgradeView.getOpCacheProgresss���|�|� � �+�+�-�-rc��\4#)z"return an acquire progress object )rrNs&r�getAcquireProgress�"DistUpgradeView.getAcquireProgress���� � rNc��\4#)z!return a install progress object )rb)r"�caches&&r�getInstallProgress�"DistUpgradeView.getInstallProgress r�rc��\4#rX)r�rNs&r�getTerminal�DistUpgradeView.getTerminal#s
���~�rc��\4#rX)r�rNs&r�getHtmlView�DistUpgradeView.getHtmlView%s����rc��R#)zGupdate the current status of the distUpgrade based
on the current view
Nr>)r"�msgs&&r�updateStatus�DistUpgradeView.updateStatus's��	
rc��R#)z7provide a visual feedback that the upgrade was aborted Nr>rNs&r�abort�DistUpgradeView.abort,���rc�L�\4PVP4R#)z�we have 6 steps current for a upgrade:
1. Analyzing the system
2. Updating repository information
3. fetch packages
3. Performing the upgrade
4. Post upgrade stuff
5. Complete
N)�
get_telemetry�	add_stage�name�r"�steps&&r�setStep�DistUpgradeView.setStep/s��	��!�!�$�)�)�,�rc��R#)z!hide a certain step from the GUI Nr>r�s&&r�hideStep�DistUpgradeView.hideStep:r�rc��R#)z!show a certain step from the GUI Nr>r�s&&r�showStep�DistUpgradeView.showStep=r�rc���RVn.Vn.Vn.Vn.Vn.Vn.VnVEFCpVP'dVPPV4K3VP'dVPPV4KbVP'dVPPV4K�VP'dqVPPPVP4'dVP
PV4K�VPPV4EKVP 'gEK(VPPV4EKF	VPVP,VnVPP#4VPP#4VPP#4VP
P#4VPP#4Rp\%VP4\%VP
4,p\%VP4\%VP4,p	\%VP4p
V^8�d%V\'RRV4V,,
pVR,
pV	^8�d%V\'RRV	4V	,,
pVR,
pV
^8�d%V\'RR	V
4V
,,
pVR,
pV^8�d�\(P*!V4p\-V\.4'dVP1\24pV\5R
4V,,
pWpP74P9V4,
pW�,^8�dmW�,V,^d8�dYVP74P;4'dVR\5R4,,
pM:VR\5R
4,,
pM V^d8�dVR\5R4,,
pW�,V,^8d*\5R4p\5R4pVP=W4R#WpnR#)zXdisplay the list of changed packages (apt.Package) and
return if the user confirms them
r�
z"%d package is going to be removed.z$%d packages are going to be removed.� z(%d new package is going to be installed.z*%d new packages are going to be installed.z#%d package is going to be upgraded.z%%d packages are going to be upgraded.z&

You have to download a total of %s. z

%sznInstalling the upgrade can take several hours. Once the download has finished, the process cannot be canceled.z{Fetching and installing the upgrade can take several hours. Once the download has finished, the process cannot be canceled.z.Removing the packages can take several hours. z,The software on this computer is up to date.zRThere are no upgrades available for your system. The upgrade will now be canceled.FT)�confirmChangesMessage�	toInstall�toReinstall�	toUpgrade�toRemove�toRemoveAuto�toDowngrade�marked_install�append�marked_upgrade�marked_reinstall�
marked_delete�_pcache�	_depcache�is_auto_installed�_pkg�marked_downgrade�sort�lenrr1�size_to_str�
isinstance�bytes�decode�ENCODINGrr�rVrOrm)r"�summary�changes�downloadSize�actions�removal_boldr�r��pkgs_remove�	pkgs_inst�pkgs_upgrade�downloadSizeStrs&&&&&&      r�confirmChanges�DistUpgradeView.confirmChanges@s���
&(��"������������
��������C��!�!�!��n�n�#�#�C�(��#�#�#��n�n�#�#�C�(��%�%�%����%�%�c�*��"�"�"����&�&�8�8����B�B��!�!�(�(��-��
�
�$�$�S�)��%�%�%����%�%�c�*�����$�*:�*:�:����������������
�
��������� ����������$�-�-�(�3�t�/@�/@�+A�A������'�#�d�.>�.>�*?�?�	��4�>�>�*����?���>�@�%�'�)4�5�5�#���*�#��q�=�

��'�'�'0�2�5>�>�>�#���*�#��!��

��?�A�&�(�*6�7�7�#���)�#��!��#�/�/��=�/�
���
/�
/� /� 6� 6�x� @�o�

��=�>����#�

�(�(�*�@�@��N�
N�#�
�
%��*�,�2J�[�2X�\_�1_�
�
$�
$�
&�
?�
?�
A�
A��8�a�"Q�R�R�
R�C�
�8�a�"Q�R�R�
R�C��3�
��8�a�"<�=�=�
=�C�
�$�{�2�a�7��D�E�'��6�7�#�
�*�*�W�
"��%(�"�rc��R#)z/ask a Yes/No question and return True on 'Yes' Nr>�r"rr��defaults&&&&r�askYesNoQuestion� DistUpgradeView.askYesNoQuestion�r�rc��R#)z<ask a Cancel/Continue question and return True on 'Continue'Nr>rs&&&&r�askCancelContinueQuestion�)DistUpgradeView.askCancelContinueQuestion�r�rc�P�\R4p\R4pVPW4#)z1generic ask about the restart, can be overridden zReboot requiredzMThe upgrade is finished and a reboot is required. Do you want to do this now?)rr)r"rr�s&  r�confirmRestart�DistUpgradeView.confirmRestart�s/���%�&�������$�$�W�2�2rc�h�\R4p\R4p\R4pVPWV4#)zAction requiredz9Exit all other instances of Ubuntu WSL before continuing.z'Unsaved progress may otherwise be lost.�r�information�r"rr��extendeds&   r�adviseExitOtherWSL�"DistUpgradeView.adviseExitOtherWSL�s6���%�&���K�L���>�?������h�7�7rc�h�\R4p\R4p\R4pVPWV4#)zWSL restart requiredz!Exit this instance of Ubuntu WSL.z"The upgrade will then be complete.rrs&   r�adviseRestartWSL� DistUpgradeView.adviseRestartWSL�s6���*�+���3�4���9�:������h�7�7rc��R#)zdisplay a error Nr>�r"rr��extended_msgs&&&&rrm�DistUpgradeView.error�r�rc��R#)zdisplay a information msgNr>r's&&&&rr�DistUpgradeView.information�r�rc��R#)zDprocess gui events (to keep the gui alive during a long
computation Nr>rNs&r�
processEvents�DistUpgradeView.processEvents�s��	
rc��R#)zGdo a progress pulse (e.g. bounce a bar back and forth, show
a spinner)
Nr>)r"�finisheds&&r�
pulseProgress�DistUpgradeView.pulseProgress�s��r)r�r�r�r�r�r�r�r�rX)NT)�No)�Cancelr�)rYrZr[r\r�rr�r�r�r�r�r�r�r�r�r�rrrrr!r$rmrr-r1r]r^r�s@rr�r�sx����(�
�.�!�!�� �
�

�

�
�
�W�r
�
�3�8�
8�

�
�
��rr�)(�DistUpgradeGettextrrr�	telemetryrr�rd�enumrrorrr1�localer3r�rj�DistUpgradeApportr�	setlocale�LC_ALL�getdefaultlocale�coderr��putenvr	rm�info�	getlocalerrerfrrb�objectr�r�r�r�r>rr�<module>rBs���,-�(�+�
���	��
��
�
�0��
���V�]�]�B�'��.�.�0��T�8���H��I�I�j�)�$�
�������)�4����
 �6�#3�#3�#5�
5�6�A�H2
�c�l�l�'�'�7�7�2
�l>%�c�l�l�'�'�7�7�>%�@�6���V��
�4�
�����#�$��������M��	�j�f�j��Y����3�4��H���<�<�
��
�s�1E<�F�<F�F,�+F,

Youez - 2016 - github.com/yon3zu
LinuXploit