sudo apt update
sudo apt install -y lsb-release ca-certificates apt-transport-https wget
wget -qO - https://packages.sury.org/php/README.txt | sudo bash -x
sudo apt update
sudo apt install php8.2-cli php8.2-fpm php8.2-mysql php8.2-xml php8.2-mbstring
Top comments (4)
Hi, I use debian 13, and I got a question to ask, Is there a way to update my laptop WITHOUT SCREAMING IN PAIN?, my update lists currupt after every update so i have to manually edit them, this is the pain in the ass, just looking for a pal to quide me, thanks in advance.
This issue usually happens when your APT sources are inconsistent or duplicated (for example old Debian codename entries, third-party repositories like Sury, or mixed configurations between /etc/apt/sources.list and /etc/apt/sources.list.d/), which causes conflicts and “broken” update lists after upgrades; the stable way to fix it is to audit all repository entries using grep -R "^deb " /etc/apt/, remove or isolate any outdated or unnecessary repos, ensure you only use the correct Debian 13 (trixie) repositories, keep third-party sources properly separated under /etc/apt/sources.list.d/, and then run sudo apt clean && sudo apt update && sudo apt --fix-broken install to reset the package state, which usually resolves the corruption and prevents the need for manual editing after every update.
try apt modernize-sources
thanks