Mercurial > code > home > repos > infra
diff apt.py @ 240:b58f05be720a
updates for new ubuntu 23.10 install
author | drewp@bigasterisk.com |
---|---|
date | Mon, 11 Dec 2023 21:22:12 -0800 |
parents | 19a7f714273c |
children | ff36727f3a10 |
line wrap: on
line diff
--- a/apt.py Sat Dec 02 18:38:56 2023 -0800 +++ b/apt.py Mon Dec 11 21:22:12 2023 -0800 @@ -20,10 +20,11 @@ # and it makes this, which is redundant with my sources.list template line files.file(path='/etc/apt/sources.list.d/vscode.list', present=False) + apt.packages(packages=['curl']) server.shell(commands=[ f"curl -fsSL {url} | gpg --dearmor > /etc/apt/keyrings/{name}" for (url, name) in [ ('https://packages.microsoft.com/keys/microsoft.asc', 'ms.gpg'), - ('https://deb.nodesource.com/gpgkey/nodesource.gpg.key', 'nodesource.gpg'), + ('https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key', 'nodesource.gpg'), ('https://dl.google.com/linux/linux_signing_key.pub', 'chrome.gpg'), ('https://ftp-master.debian.org/keys/archive-key-11.asc', 'bullseye.gpg'), ('https://ftp-master.debian.org/keys/archive-key-11-security.asc', 'bullseye-security.gpg'), @@ -41,7 +42,13 @@ dir = Path('/etc/apt/sources.list.d') -def clear_known_sources_files(known=[dir / 'vscode.list']): +def clear_known_sources_files(known=[ + dir / 'vscode.list', + dir / 'google-chrome.list', + dir / 'steam-beta.list', + dir / 'google-chrome-unstable.list', + dir / 'steam-stable.list', +]): found = map(Path, host.get_fact(FindFiles, dir, quote_path=True)) if set(found) - set(known): raise SystemExit(f"new files in {host.name} /etc/apt/sources.list.d/ - please remove")