tis-wsl2-debian
1.12.2.0-15
Sous-système Windows de Debian pour Linux 2
2186 téléchargements
Télécharger
Voir le résultat de la construction Voir l'analyse de VirusTotal

- package : tis-wsl2-debian
- name : Debian WSL 2
- version : 1.12.2.0-15
- categories : System and network
- maintainer : WAPT Team,Tranquil IT,Jimmy PELE,Simon Fonteneau
- editor :
- licence :
- locale : all
- target_os : windows
- impacted_process :
- architecture : all
- signature_date : 2025-08-12 08:02
- size : 172.50 Mo
- depends :
- conflicts :
package : tis-wsl2-debian
version : 1.12.2.0-15
architecture : all
section : base
priority : optional
name : Debian WSL 2
categories : System and network
maintainer : WAPT Team,Tranquil IT,Jimmy PELE,Simon Fonteneau
description : Debian Windows Subsystem for Linux 2
depends : tis-wsl2
conflicts : tis-wsl-debian,tis-virtualbox
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 2.0
sources :
installed_size :
impacted_process :
description_fr : Sous-système Windows de Debian pour Linux 2
description_pl : Debian Windows Subsystem for Linux 2
description_de : Debian Windows-Subsystem für Linux 2
description_es : Subsistema Debian Windows para Linux 2
description_pt : Subsistema Debian Windows para Linux 2
description_it : Sottosistema Debian Windows per Linux 2
description_nl : Debian Windows Subsystem voor Linux 2
description_ru : Подсистема Debian Windows для Linux 2
audit_schedule :
editor :
keywords :
licence :
homepage :
package_uuid : a4ab0a3b-7540-4c26-b622-9ac890ef7b2c
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version : 10
max_os_version :
icon_sha256sum : 40876beff218404c8ffda4379324506fd1ead4ed40ac4af5bffcec443748a6a2
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2025-08-12T08:02:48.000000
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
signature : QDq8vmw5F5OnmwQlyOJ0WPMTgCpwSMcE8Vrb0qRs2KcA7Fzd9FrnWiZYXOPnp1myDmrgVnuvfGO/k6PdUcDD8E0KtS+ucaIvgIUO6JHYHq4j4WFEc9Nd+JkmSvgx6aZa5g6+Qva2QhhX2f8IrcyHnS7FKMP9d5er9ntiX/W6FYIYmCq/TsTx9WBAGoWnrUWpWot5XXSUANPDBBdIByzU/z/4ujkr01KuHjS6LtMsS9FGyxJuTy9n9jhRNQpNvtKL8G2euvD4vF0EWeDx9GbMV6qD+2vVx9C/l1OCI9d0X0agaEFhuIjS/BptKJSslWCFb3WTK9JS1D8nc/KgwVTA7w==
# -*- coding: utf-8 -*-
from setuphelpers import *
bin_name_string = "DebianGNULinux_%s.Appx"
package_name = "TheDebianProject.DebianGNULinux"
def set_variables():
# Declaring variables
global package_version
package_version = control.version.split("-")[0]
global bin_name
bin_name = bin_name_string % package_version
global app_name
app_name = control.name
global wsl_dir
wsl_dir = makepath(programfiles, "WSL")
global wsl_debian
wsl_debian = makepath(wsl_dir, bin_name)
def install():
# Initializing variables
set_variables()
# Installing the package
if not isdir(wsl_dir):
mkdirs(wsl_dir)
for bin_in_dir in glob.glob(makepath(wsl_dir, "*ebian*")):
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, wsl_dir))
filecopyto(bin_name, wsl_dir)
def uninstall():
# Initializing variables
set_variables()
# Uninstalling the package
print("Removing %s for all users" % package_name)
run_powershell("Get-AppxPackage -Name %s -AllUsers | Remove-AppxPackage" % package_name)
def session_setup():
# Initializing variables
set_variables()
# Install 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"
if package_version > installed_wsl_debian_version:
print("Installing %s for the current user" % app_name)
run_powershell('Add-AppxPackage -Path "%s"' % wsl_debian)
# Upgrading WSL Debian to WSL 2
# Upgrade procedure: https://docs.microsoft.com/en-us/windows/wsl/install-win10#set-your-distribution-version-to-wsl-1-or-wsl-2
if windows_version() >= "10.0.19041":
try:
print("Upgrading Debian to WSL 2")
run_powershell("wsl --set-version Debian 2")
except:
print("Debian is already in WSL 2, or the upgrade do not complete")
else:
print("You need Windows 10 version 2004 minimum for upgrading Debian to WSL 2")
# -*- 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
592169d939edb25d1c6ea8e0e247a6ee3f44b08e6077742d996739e821c6ec44 : TheDebianProject.DebianGNULinux_1.12.2.0_neutral___76v4gfsz19hv4.AppxBundle
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
7a3a96e3a4a9134507a99ae274dce10831bcebf7184e0c32fef8b156cadf881d : WAPT/control
40876beff218404c8ffda4379324506fd1ead4ed40ac4af5bffcec443748a6a2 : WAPT/icon.png
461e5f7b02a7f55f71f1051d4ebaa9d9fec5b45cb1e80323e6903a6c028b9ad4 : luti.json
30c6ddfac72d010bde846f749d2bc7af70db5cd159cef2568c17ba09ac7d351f : setup.py
ed14e6c430d46351acea409bc5f3eff8c2914e6d384e5c5528a626440363280f : update_package.py