DEV Community

Discussion on: Debian 13-Trixie and sury php

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