Linux tsuru-no-tsurugi 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.0.18 & Your IP : 216.73.216.68
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
uaclient /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-07-18 06:45
api
[ DIR ]
drwxr-xr-x
2026-07-18 06:45
cli
[ DIR ]
drwxr-xr-x
2026-07-18 06:45
clouds
[ DIR ]
drwxr-xr-x
2026-07-18 06:45
daemon
[ DIR ]
drwxr-xr-x
2026-07-18 06:45
entitlements
[ DIR ]
drwxr-xr-x
2026-07-18 06:45
files
[ DIR ]
drwxr-xr-x
2026-07-18 06:45
http
[ DIR ]
drwxr-xr-x
2026-07-18 06:45
messages
[ DIR ]
drwxr-xr-x
2026-07-18 06:45
timer
[ DIR ]
drwxr-xr-x
2026-07-18 06:45
__init__.py
0
B
-rw-r--r--
2026-04-08 03:24
actions.py
14.83
KB
-rw-r--r--
2026-07-06 22:36
apt.py
36.26
KB
-rw-r--r--
2026-07-06 22:36
apt_news.py
8.39
KB
-rw-r--r--
2026-04-08 03:24
config.py
18.91
KB
-rw-r--r--
2026-04-08 03:24
contract.py
35.88
KB
-rw-r--r--
2026-04-08 03:24
contract_data_types.py
9.94
KB
-rw-r--r--
2026-07-06 22:36
data_types.py
13.99
KB
-rw-r--r--
2026-07-06 22:36
defaults.py
3.19
KB
-rw-r--r--
2026-04-08 03:24
event_logger.py
8.06
KB
-rw-r--r--
2026-04-08 03:24
exceptions.py
18.29
KB
-rw-r--r--
2026-04-08 03:24
gpg.py
836
B
-rw-r--r--
2026-04-08 03:24
livepatch.py
12.85
KB
-rw-r--r--
2026-04-08 03:24
lock.py
4.42
KB
-rw-r--r--
2026-04-08 03:24
log.py
4.9
KB
-rw-r--r--
2026-04-08 03:24
secret_manager.py
648
B
-rw-r--r--
2026-04-08 03:24
security_status.py
26.16
KB
-rw-r--r--
2026-04-08 03:24
snap.py
6.26
KB
-rw-r--r--
2026-04-08 03:24
status.py
28.53
KB
-rw-r--r--
2026-04-08 03:24
system.py
28.12
KB
-rw-r--r--
2026-04-08 03:24
types.py
308
B
-rw-r--r--
2026-04-08 03:24
update_contract_info.py
1.55
KB
-rw-r--r--
2026-04-08 03:24
upgrade_lts_contract.py
3.22
KB
-rw-r--r--
2026-04-08 03:24
util.py
15.45
KB
-rw-r--r--
2026-04-08 03:24
version.py
2.64
KB
-rw-r--r--
2026-07-06 22:36
yaml.py
840
B
-rw-r--r--
2026-04-08 03:24
Save
Rename
import logging from uaclient import exceptions, lock, messages, system, util from uaclient.api.u.pro.detach.v1 import detach from uaclient.api.u.pro.status.is_attached.v1 import _is_attached from uaclient.config import UAConfig LOG = logging.getLogger(util.replace_top_level_logger_name(__name__)) def validate_release_series(cfg: UAConfig, only_series, show_message=False): LOG.debug("Validating release series") if not _is_attached(cfg).is_attached: return current_series = system.get_release_info().series try: allowed_release = system.get_distro_info(only_series) except exceptions.MissingSeriesInDistroInfoFile: # If onlySeries is not present on the distro-info CSV # we consider that it is newer than the current release pass else: current_release = system.get_distro_info(current_series) # Only series is now meant to be allowed on the specified release # and all previous releases if current_release.eol > allowed_release.eol: LOG.debug( "Detaching due to current series %s being higher than only_series: %s", # noqa current_series, only_series, ) lock.clear_lock_file_if_present() detach() message = messages.PRO_ONLY_ALLOWED_FOR_RELEASE.format( release=allowed_release.release, series_codename=allowed_release.series_codename, ) if show_message: print(message) LOG.warning(message)