Der Link unten zum Debian Sources List Generator: http://debgen.simplylinux.ch/
funktioniert leider nicht mehr, dieser geht: https://debgen.github.io/
reicht aber leider nur bis Distrie/Release: Debian 10 (buster), so hab ich mich mal an einer Aktualisierung
oder eher Neuschreibung versucht (abgespeckt zur Darstellung):
Code: Alles auswählen
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Debian Sources List Generator</title>
<style type="text/css">
tr { text-align: center; }
td { text-align:center; padding: 3px; }
textarea { white-space: pre; }
</style>
<script>
window.addEventListener('DOMContentLoaded', sources);
function clean(x) {
x = x.replace(/,+/g, " ");
x = x.replace(/ $/, "");
document.sourceList.list.value = document.sourceList.list.value += x+"\n";
}
function sources() {
document.sourceList.list.value = "";
Link = document.sourceList.mirror.value;
Distribution = document.sourceList.distribution.value;
Arch1 = document.sourceList.arch.value;
Arch = (Arch1 != "") ? '['+Arch1+']' : '';
src = (document.sourceList.src.checked) ? 'src' : '';
contrib = (document.sourceList.contrib.checked) ? 'contrib' : '';
nonfree = (document.sourceList.nonfree.checked) ? 'non-free' : '';
nonfree2 = (document.sourceList.nonfreefirmware.checked) ? 'non-free-firmware' : '';
backports = (document.sourceList.backports.checked) ? 'backports' : '';
out = ["deb", Arch, Link, Distribution, "main", contrib, nonfree, nonfree2];
clean(out.toString());
if (src) { out[0] = 'deb-src'; clean(out.toString()); };
if (Distribution == "unstable") return;
out[0] = '\ndeb'; out[3] = Distribution+'-updates';
clean(out.toString());
if (src) { out[0] = 'deb-src'; clean(out.toString()); };
out[0] = '\ndeb'; out[2] = 'http://security.debian.org/debian-security/'; out[3] = Distribution+'-security';
clean(out.toString());
if (src) { out[0] = 'deb-src'; clean(out.toString()); };
if (Distribution == "stable" || Distribution == "bookworm" ) {
if (backports) {
out[0] = '\n#deb'; out[2] = Link; out[3] = 'stable-backports'; clean(out.toString());
if (src) { out[0] = '#deb-src'; clean(out.toString()); };
};
};
}
</script>
</head>
<body vlink="#006611" link="#006611" alink="#006611">
<input type="button" value="Reset" onClick="document.location.reload(true);">
<a href="https://debgen.github.io"><b> (org Link)</b></a>
<form name="sourceList">
<table style="border: 1px solid black;">
<tbody>
<th colspan="6" style="border-bottom: 1px solid black;">Debian Sources List Generator</th>
<tr>
<td>
<table><tbody>
<tr>
<td>Mirror</td>
<td>Distribution</td>
<td>Architecture</td>
</tr>
<tr>
<td>
<select type="submit" name="mirror" onchange="sources()">
<option value="http://deb.debian.org/debian/" selected="selected">Debian Official Repository</option>
<option value="http://ftp.de.debian.org/debian/">Germany</option>
</select>
</td>
<td>
<select type="submit" name="distribution" onchange="sources()">
<option value="stable">Stable</option>
<option value="bookworm" selected="selected">Debian 12 (bookworm)</option>
</select>
</td>
<td>
<select type="submit" name="arch" onchange="sources()">
<option selected="selected"></option>
<option>all</option>
<option>amd64</option>
</select>
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table><br>
<b>Components</b><br>
<input name="src" type="checkbox" checked onchange="sources()"> Include Source<br>
<input name="contrib" type="checkbox" checked onchange="sources()"> Contrib<br>
<input name="nonfree" type="checkbox" checked onchange="sources()"> Non-Free<br>
<input name="nonfreefirmware" type="checkbox" checked onchange="sources()"> Non-Free-Firmware<br><br>
<input name="backports" type="checkbox" onchange="sources()"> Backports (only for Stable/Bookworm and commented out)<br><br>
<b>sources.list</b><br>
<textarea name="list" rows="10" cols="100" readonly></textarea>
</form>
</body>
</html>
mit der Bitte um Kritik und der Frage ob ich den Wiki-Eintrag dahingehend ändern darf/sollte...
Edit, der nonfree Eintrag ist falsch: nonfree → non-free