deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main
deb http://deb.debian.org/debian-security/ buster/updates main
deb-src http://deb.debian.org/debian-security/ buster/updates main
deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main
At some point after this, there were updates (via the “Software” app in the GUI), I installed the updates, and then after rebooting, I noticed some traces of Debian, like in the Settings -> “About” section, and also on the login screen.
i almost did ths today, but reconsidered when i saw in apt list --upgradable various -puros packages were going to be replaced with (slightly) newer debian ones
not sure how to go about restoring this, though, unfortunately—but there must be some command to “downgrade” the installed packages to what is in the repository, after removing the buster lines in apt sources
(another option might be to wait for the rolling release Librem is working on, would suppose that’d track buster more closely)
I did some research on my own, and unfortunately (from what I found) there doesn’t seem to be an easy way to revert, it’s more-or-less a manual process (that can be scripted), it’s basically going through the logs, finding out which packages were updated, and then downgrading them.
That’s an interesting idea about waiting for the next PureOS update.
I’m not sure what I’m going to do yet, nonetheless thanks for the reply!
The answer is to use apt pinning. This can a) prevent newer Debian packages from overwriting pureos packages and b) if the priority setting is low enough it will even uninstall Debian packages for pureos packages even when that means downgrading versions.
Sorry commuting now and am only on a phone, so can’t provide links, but Google for apt pinning on the Debian documentation.
Thanks for fleshing out my hint . I fully agree, except that removing the non-purism sources should not be necessary in case you want to keep some nonpurism packages, e.g. Firefox. In this case pinning could help you to just install Firefox from Debian but ignore the rest of Debian.
If I understand correctly, I can “pin” the pureos packages (via /etc/apt/preferences, and keep this file around) and also keep the Debian sources (to install other software)?
I tried this last night, and as far as I can tell, it was successful! I restarted and had to re-sign the changes in /boot. Right away I noticed during the boot process it used to mention "Debian 10’, this was replaced with “PureOS”, and the “About” section is updated now too. So far I haven’t run into any issues.
Decrease priority below 1000 but keep it above 500. This way, packages common in Debian and PureOS will automatically get PureOS version, unless you override from command line. If priority stays above 1000, overriding is not possible.