DEV Community

hardyweb
hardyweb

Posted on

Debian 13-Trixie and sury php

sudo apt update
sudo apt install -y lsb-release ca-certificates apt-transport-https wget
Enter fullscreen mode Exit fullscreen mode
wget -qO - https://packages.sury.org/php/README.txt | sudo bash -x
Enter fullscreen mode Exit fullscreen mode
sudo apt update
Enter fullscreen mode Exit fullscreen mode
sudo apt install php8.2-cli php8.2-fpm php8.2-mysql php8.2-xml php8.2-mbstring
Enter fullscreen mode Exit fullscreen mode

Top comments (4)

Collapse
 
p4nd3m1c profile image
p4nd3m1c

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.

Collapse
 
hardyweb profile image
hardyweb

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.

Collapse
 
hardyweb profile image
hardyweb

try apt modernize-sources

Collapse
 
p4nd3m1c profile image
p4nd3m1c

thanks