Skip to content

Instantly share code, notes, and snippets.

@Bonveio
Last active January 4, 2025 23:22
Show Gist options
  • Select an option

  • Save Bonveio/9c32d367ff15caf001bfe13e6e4f74e5 to your computer and use it in GitHub Desktop.

Select an option

Save Bonveio/9c32d367ff15caf001bfe13e6e4f74e5 to your computer and use it in GitHub Desktop.
Upgrade Debian 12 to 13 notes (x64 DigitalOcean Droplet only)
root@droplet:~# cat /etc/apt/sources.list.d/debian.sources
Types: deb deb-src
URIs: mirror+file:///etc/apt/mirrors/debian.list
#Suites: bookworm bookworm-updates bookworm-backports
Suites: trixie trixie-updates
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg

Types: deb deb-src
URIs: mirror+file:///etc/apt/mirrors/debian-security.list
#Suites: bookworm-security
Suites: trixie-security
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
root@droplet:~# cat /etc/apt/mirrors/debian.list
# http://mirrors.digitalocean.com/debian
http://deb.debian.org/debian
root@droplet:~# cat /etc/apt/mirrors/debian-security.list
http://security.debian.org
root@droplet:~# apt update
root@droplet:~# DEBIAN_FRONTEND=noninteractive apt-get full-upgrade --allow-downgrades --allow-remove-essential --allow-change-held-packages -y
root@droplet:~# sshd -T | grep -i -E '(permitrootlogin|passwordauthentication)' ## yes
root@droplet:~# grub-mkconfig -o /boot/grub/grub.cfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment