Hier ein Ubuntu 24.04 and 24.10 DEB822 little helper script, um das Google Chrome Stable Repository sauber im DEB822 Modus einzurichten.
Alte Einrichtung von Google Chrome Rpository mit dem alten One-Line-Style Format mit der *.list
Dateiendung muss zuvor entfernt werden!
Hier der Inhalt des Bashscripts:
#!/usr/bin/env bash
#---------------------------------------------------
# Ubuntu 24.04 and 24.10 DEB822 little helper script
# Google Chrome Stable repository
#---------------------------------------------------
RELEASE_VERSION=$(lsb_release -cs 2>/dev/null)
printf "\n \033[45m\033[1;36m==> Running on $RELEASE_VERSION \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
[ $RELEASE_VERSION = noble ] || [ $RELEASE_VERSION = oracular ] && echo "$RELEASE_VERSION good". || \
printf "\n \033[41m\033[1;36m==> Sorry, not for $RELEASE_VERSION.\033[0m \n \n" && \
[ $RELEASE_VERSION = noble ] || [ $RELEASE_VERSION = oracular ] || exit 1
printf "\n \033[45m\033[1;36m==> Test sudo. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
sudo echo "sudo Test, OK." && \
printf "\n \033[45m\033[1;36m==> Make google-chrome-stable.sources entry. \033[0m\033[42m\033[1;36m ==> ... \033[0m \n \n" && \
echo "X-Repolib-Name: Google-Chrome-Stable
Enabled: yes
Types: deb
URIs: http://dl.google.com/linux/chrome/deb/
Suites: stable
Components: main
Architectures: amd64
Signed-By: $(gpg --no-default-keyring --keyring /tmp/google.gpg \
--keyserver hkps://keyserver.ubuntu.com --recv-keys E88979FB9B30ACF2 && \
cat /tmp/google.gpg | gpg --export --armor | \
sed -e 's/^$/./' -e 's/^/ /')" | \
sudo tee /etc/apt/sources.list.d/google-chrome-stable.sources > /dev/null && \
printf "\n \033[45m\033[1;36m==> Google Chrome Stable repository active now. \033[0m\033[42m\033[1;36m ==> Done.\033[0m \n \n" || \
printf "\n \033[41m\033[1;36m==> Sorry something failed.\033[0m \n \n" ; \
rm -fv /tmp/google.gpg
Speichern als:
google-chrome-stable-repository-install-helper.sh
... und dann ausführbar machen:
chmod +x google-chrome-stable-repository-install-helper.sh
Dankeschön für die Anregung zum Pubkey Erhalt durch axebase.net: