legacy-package-repository-deprecation¶
https://kubernetes.io/blog/2023/08/31/legacy-package-repository-deprecation/
check if using the legacy package repo¶
If the repository definition not usepkgs.k8s.io we need to migrate migrate to the new community-operated repositories¶
https://kubernetes.io/blog/2023/08/15/pkgs-k8s-io-introduction/
Replace the apt repository definition so that apt points to the new repository
Download the public signing key for the Kubernetes package repositories
Update the apt package index
fix redis repo issue¶
https://answers.launchpad.net/ubuntu/+source/redis/+question/708354
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
Previous fix not relavent to this error:
E: Repository 'https://packages.redis.io/deb focal InRelease' changed its 'Origin' value from '' to 'packages.redis.io'
N: Repository 'https://packages.redis.io/deb focal InRelease' changed its 'Suite' value from '' to 'focal'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.