tis-wsl-debian
1.12.2.0-37
Debian Windows Subsystem for Linux
3188 downloads
Download
See build result See VirusTotal scan

- package : tis-wsl-debian
- name : WSL Debian
- version : 1.12.2.0-37
- categories : System and network
- maintainer : WAPT Team,Tranquil IT,Jimmy PELE
- editor :
- licence : opensource_free,wapt_public
- locale : all
- target_os : windows
- impacted_process :
- architecture : x64
- signature_date : 2023-09-26 14:00
- size : 172.50 Mo
- depends :
- conflicts :
package : tis-wsl-debian
version : 1.12.2.0-37
architecture : x64
section : base
priority : optional
name : WSL Debian
categories : System and network
maintainer : WAPT Team,Tranquil IT,Jimmy PELE
description : Debian Windows Subsystem for Linux
depends : tis-wsl
conflicts : tis-wsl2-debian
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.3
sources : https://www.microsoft.com/p/debian/9msvkqc78pk6
installed_size :
impacted_process :
description_fr : Le sous-système Windows de Debian pour Linux
description_pl : Podsystem Debian Windows dla Linuksa
description_de : Debian Windows-Subsystem für Linux
description_es : Subsistema Debian Windows para Linux
description_pt : Subsistema Debian Windows para Linux
description_it : Sottosistema Debian Windows per Linux
description_nl : Debian Windows Subsystem voor Linux
description_ru : Подсистема Debian Windows для Linux
audit_schedule :
editor :
keywords :
licence : opensource_free,wapt_public
homepage :
package_uuid : ea0cd6fa-7b4a-40cb-b775-6abb26db57ac
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 10.0
max_os_version :
icon_sha256sum : 40876beff218404c8ffda4379324506fd1ead4ed40ac4af5bffcec443748a6a2
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : ZLPCWV+osv0YU+W8akrRyaeFrVP0xE9+0ujOKn+hXQIGhKAFkwIyPtGrufxOIhp4NrzcAtgpWOBy07//LjrCuM4EmIq4cZfF0+/DNNyMLuPOyZ7J5wsSJs7/0417e+ajCfOwftadH6+PSldCGaaUd20Ht5CFMOUBt8CWP+tbSWA/uzXZJ0pqNjYFrRHcEk8mlVpUo4H1q4NxF6DIUIBfAi9svRkOeeAMTPiNIb7n8ZxDjXmb059ZxPONNqMt53/tZ18gd9znDfj/ciI1XrKTsXhNfi+HYJFzQECNjawVMnwj5cqkEM/DB/nDG+wMzkpnw0WPt1uFCM+xaxqDmXwnJw==
signature_date : 2023-09-26T14:00:22.298955
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
# -*- coding: utf-8 -*-
from setuphelpers import *
from waptservice.enterprise import get_active_sessions, start_interactive_process
import win32ts
import time
# Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "TheDebianProject.DebianGNULinux_"
package_name = "TheDebianProject.DebianGNULinux"
app_name = "WSL Debian"
def install():
# Declaring local variables
package_version = control.get_software_version()
bin_name = glob.glob("*%s*.AppxBundle" % bin_contains)[0]
app_dir = makepath(programfiles, "WSL")
wsl_debian = makepath(app_dir, bin_name)
# Installing the package
if not isdir(app_dir):
mkdirs(app_dir)
for bin_in_dir in glob.glob(makepath(app_dir, "*%s*" % bin_contains)):
if bin_in_dir != wsl_debian:
print("Removing %s" % bin_in_dir)
remove_file(bin_in_dir)
if not isfile(wsl_debian):
print("Copying: %s in: %s" % (bin_name, app_dir))
filecopyto(bin_name, app_dir)
def uninstall():
# Declaring local variables
app_dir = makepath(programfiles, "WSL")
# Uninstalling the package
print("Removing: %s (%s) for all users" % (package_name, app_name))
run_powershell("Get-AppxPackage -Name %s -AllUsers | Remove-AppxPackage" % package_name)
if not WAPT.list("wsl"):
if isdir(app_dir):
print("Removing: %s" % app_dir)
mkdirs(app_dir)
def session_setup():
# Declaring local variables
package_version = control.get_software_version()
app_dir = makepath(programfiles, "WSL")
bin_path = glob.glob(makepath(app_dir, "*%s*.AppxBundle" % bin_contains))[0]
# Installing the Appx in user environment
try:
installed_wsl_debian_version = run_powershell('Get-AppxPackage -Name "%s" | Select-Object version' % package_name)["Version"]
except:
installed_wsl_debian_version = "0.0.0.0"
if package_version > installed_wsl_debian_version:
print("Installing: %s (%s) for the current user" % (app_name, package_version))
run_powershell('Add-AppxPackage -Path "%s"' % bin_path)
def audit():
# Auditing the package
for session_id in get_active_sessions():
username = win32ts.WTSQuerySessionInformation(win32ts.WTS_CURRENT_SERVER_HANDLE, session_id, win32ts.WTSUserName)
temp_file = r"C:\Windows\Temp\wsl-%s-whoami.txt" % (username)
count = 0
start_interactive_process("wsl", '--distribution Debian --exec whoami > "%s"' % temp_file, session_id=session_id, hide=True)
while not isfile(temp_file):
count = count + 1
if count == 10:
print("Unable to check WSL startup user for: %s" % username)
break
time.sleep(1)
wsl_username = open(temp_file, "r").read().split("\n")[0]
WAPT.write_audit_data_if_changed("wsl-debian", "wsl-startup-user_%s" % username, wsl_username, keep_days=180)
WAPT.delete_audit_data("wsl-debian", "default-wsl-user_%s" % username)
WAPT.delete_audit_data("wsl-debian", "%s-startup-wsl-user" % username)
remove_file(temp_file)
if wsl_username == "root":
print("ERROR: WSL startup user is: root and should not be. Please fix it.")
return "ERROR"
# else:
# print("OK: WSL startup user is: %s for Windows user: %s" % (wsl_username, username))
return "OK"
# -*- coding: utf-8 -*-
from setuphelpers import *
import requests
def update_package():
# Declaring local variables
result = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
url_dl = "https://aka.ms/wsl-debian-gnulinux"
latest_bin = requests.head(url_dl, proxies=proxies).headers["Location"].split("/")[-1]
version = latest_bin.split("_")[1]
print("Latest %s version is: %s" % (app_name, version))
print("Download URL is: %s" % url_dl)
# Downloading latest binaries
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(url_dl, latest_bin, proxies=proxies)
# Changing version of the package
if Version(version) > Version(control.get_software_version()):
print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
result = True
else:
print("Software version up-to-date (%s)" % Version(version))
control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
# control.set_software_version(version)
control.save_control_to_wapt()
# Deleting outdated binaries
remove_outdated_binaries(version, "AppxBundle")
# Validating update-package-sources
return result
5911d39b80b91f94d2e371a73ba23ed7b8395e41a1cedccaaffe9ec3c1cb6287 : setup.py
: __pycache__
592169d939edb25d1c6ea8e0e247a6ee3f44b08e6077742d996739e821c6ec44 : TheDebianProject.DebianGNULinux_1.12.2.0_neutral___76v4gfsz19hv4.AppxBundle
ed14e6c430d46351acea409bc5f3eff8c2914e6d384e5c5528a626440363280f : update_package.py
40876beff218404c8ffda4379324506fd1ead4ed40ac4af5bffcec443748a6a2 : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
24db10b3f52a596c666130dbf06d283f78a6b6fd9f46f601438571243fdddd48 : luti.json
e8523ae37611ec1ac51464313348df5c5832a75d1c7358d1c61fdf831bdfe24a : WAPT/control