Upgrade Bullseye to Bookworm: Matrix-Synapse not upgraded

Hi everybody,

a few days ago I finally did the upgrade from Bullseye to Bookworm (the Debian way, because it didn’t work using Plinith).

The upgrade took some time but did well - or so I thought.

Now I saw that still the old matrix-synapse package is installed

  • matrix-synapse (1.78.0-1~bpo11+1)
  • matrix-synapse-ldap3 (0.1.4+git20201015+a3c7a9f-1)

and apparently there is no package available in the new bookworm-sources. The old server still works - its just well, old.

The Distribution Update page in Plinith tells me:

So I believe I might have done something wrong changing the source files manually from bullseye to bookworm?

Does somebody have a clou what went wrong here?

Thanks a lot!
Jonny

Can you please share the current contents of your apt source files, including /etc/apt/sources.list and any files under /etc/apt/sources.list.d?

Hi @jvalleroy and thank you for your response.

This is /etc/apt/sources.list:

deb http://deb.debian.org/debian bookworm main contrib non-free
deb-src http://deb.debian.org/debian bookworm main contrib non-free

deb http://deb.debian.org/debian bookworm-updates main contrib non-free
deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free

deb http://security.debian.org/debian-security/ bookworm-security main contrib non-free
deb-src http://security.debian.org/debian-security/ bookworm-security main contrib non-free

deb http://ftp.de.debian.org/debian bookworm-backports main contrib non-free

This is /etc/apt/sources.list.d/freedombox2.list:

# This file is managed by FreedomBox, do not edit.
# Allow carefully selected updates to 'freedombox' from backports.

deb http://deb.debian.org/debian bookworm-backports main
deb-src http://deb.debian.org/debian bookworm-backports main

Is there someone who is willing to share the “original” apt source files of his Freedombox Bookworm installation with me?

Hi @jonny ,

The original apt sources files for Bookworm look somewhat like this:

deb http://deb.debian.org/debian bookworm main
deb-src http://deb.debian.org/debian bookworm main

deb http://deb.debian.org/debian bookworm-updates main
deb-src http://deb.debian.org/debian bookworm-updates main

deb http://security.debian.org/debian-security/ bookworm-security main
deb-src http://security.debian.org/debian-security/ bookworm-security main

and

deb http://deb.debian.org/debian bookworm-backports main
deb-src http://deb.debian.org/debian bookworm-backports main

When FreedomBox says that the current distribution is “Unknown or mixed”, then it is trying to parse all the files in the /etc/apt/sources.list and /etc/apt/sources.list.d. Then it extracts all the “distribution” parts from there. In your case it is “bookworm”, “bookworm-updates” and “bookworm-security”. Then it strips the ‘-updates’ and ‘-security’. Then there should only one be one distribution code remaining. If multiple distribution codes are present, it shows “unknown or mixed”. From your posting, everything looks okay with your sources files. Are there any other sources files in the /etc/apt/sources.list.d directory? If so, temporarily move them. Let FreedomBox complete the distribution upgrade to Trixie and then setup those sources again.

Thank you for providing the original source files @Sunil !

I checked again the Distribution update page and now it says:

So now it seems to be okay again. The only thing I changed was, I removed the double entry for bookworm-backports in /etc/apt/sources.list (last line).

There are no other source files apart from the standard two.

Now the original problem unfortunately still persists. I checked the backport packages for bookworm and could not find matrix-synapse in it. I don’t understand, where does Freedombox source the package files from?