#!/bin/bash # Maak sleutelmap aan mkdir -p ~/.apt/keyrings # Voeg sleutels toe curl -fsSL https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x04EE7237B7D453EC | tee ~/.apt/keyrings/debian.asc curl -fsSL https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x648ACFD622F3D138 | tee ~/.apt/keyrings/debian.asc # Voeg de repositories toe aan de apt-bronlijst echo "deb [signed-by=$HOME/.apt/keyrings/debian.asc] http://deb.debian.org/debian bookworm main contrib non-free" > ~/.apt/sources.list.d/debian.list echo "deb [signed-by=$HOME/.apt/keyrings/debian.asc] http://security.debian.org/debian-security bookworm-security main contrib non-free" >> ~/.apt/sources.list.d/debian.list echo "deb [signed-by=$HOME/.apt/keyrings/debian.asc] http://deb.debian.org/debian bookworm-updates main contrib non-free" >> ~/.apt/sources.list.d/debian.list # Werk apt bij apt-get update --allow-unauthenticated