Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
Apache/2.4.52 (Ubuntu)
Server IP : 192.168.1.1 & Your IP : 3.145.75.74
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
ubuntu-advantage /
Delete
Unzip
Name
Size
Permission
Date
Action
apt-esm-json-hook
50.32
KB
-rwxr-xr-x
2024-07-18 15:20
apt_news.py
565
B
-rw-r--r--
2024-06-17 19:50
auto_attach.py
3.03
KB
-rw-r--r--
2024-06-17 19:50
cloud-id-shim.sh
500
B
-rwxr-xr-x
2024-06-17 19:50
convert_list_to_deb822.py
2.37
KB
-rw-r--r--
2024-06-17 19:50
daemon.py
2.48
KB
-rw-r--r--
2024-06-17 19:50
esm_cache.py
491
B
-rwxr-xr-x
2024-06-17 19:50
migrate_user_config.py
5.37
KB
-rw-r--r--
2024-06-17 19:50
patch_status_json.py
2.47
KB
-rwxr-xr-x
2024-06-17 19:50
postinst-migrations.sh
2.85
KB
-rwxr-xr-x
2024-06-17 19:50
reboot_cmds.py
3.97
KB
-rw-r--r--
2024-07-12 23:15
timer.py
6.57
KB
-rw-r--r--
2024-07-12 23:15
upgrade_lts_contract.py
742
B
-rwxr-xr-x
2024-07-12 23:15
Save
Rename
#!/usr/bin/env python3 """ This script is called after running do-release-upgrade in a machine. This converts list files to deb822 files when upgrading to Noble. """ import logging import os import sys from aptsources.sourceslist import SourceEntry # type: ignore from uaclient import defaults, entitlements from uaclient.apt import _get_sources_file_content from uaclient.config import UAConfig from uaclient.log import setup_cli_logging from uaclient.system import ( ensure_file_absent, get_release_info, load_file, write_file, ) from uaclient.util import set_filename_extension if __name__ == "__main__": series = get_release_info().series if series != "noble": sys.exit(0) setup_cli_logging(logging.DEBUG, defaults.CONFIG_DEFAULTS["log_file"]) cfg = UAConfig() for entitlement_class in entitlements.ENTITLEMENT_CLASSES: if not issubclass( entitlement_class, entitlements.repo.RepoEntitlement ): continue entitlement = entitlement_class(cfg) filename = set_filename_extension(entitlement.repo_file, "list") if os.path.exists(filename): # If do-release-upgrade commented out the file, whether the # repository is not reachable or is considered a third party, then # it will be handled in upgrade_lts_contract. This script only # changes services which are enabled, active and reachable. valid_sources = [ SourceEntry(line) for line in load_file(filename).strip().split("\n") if line.strip().startswith("deb") ] if valid_sources: # get this information from the file, to avoid interacting with # the entitlement_config suites = list(set(source.dist for source in valid_sources)) repo_url = valid_sources[0].uri include_deb_src = any( source.type == "deb-src" for source in valid_sources ) content = _get_sources_file_content( suites, series, True, repo_url, entitlement.repo_key_file, include_deb_src, ) write_file(entitlement.repo_file, content) ensure_file_absent(filename)