Errors when updating

Problem Description

When I run sudo apt update through ssh, I get several warnings that updates could not be retrieved because the links could not be resolved (in German below). I discovered the issue after re-runnig the setup for Matrix (in Plinth) and getting an error message about the apt command failing. So I checked to see what happens when manually running apt update.

Warnung: Fehlschlag beim Holen von http://deb.debian.org/debian/dists/trixie/InRelease »deb.debian.org« konnte nicht aufgelöst werden.
Warnung: Fehlschlag beim Holen von http://deb.debian.org/debian/dists/trixie-updates/InRelease »deb.debian.org« konnte nicht aufgelöst werden.
Warnung: Fehlschlag beim Holen von http://security.debian.org/debian-security/dists/trixie-security/InRelease »security.debian.org« konnte nicht aufgelöst werden.
Warnung: Fehlschlag beim Holen von http://deb.debian.org/debian/dists/unstable/InRelease »deb.debian.org« konnte nicht aufgelöst werden.
Warnung: Fehlschlag beim Holen von http://deb.debian.org/debian/dists/trixie-backports/InRelease »deb.debian.org« konnte nicht aufgelöst werden.
Warnung: Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder alte an ihrer Stelle benutzt.

I re-ran the setup for Matrix because I appear to be having federation problems, despite Matrix Federation Tester saying everything is working. The error message I receive in Plinth for Matrix is:

Error updating app: Apt command failed with return code: 100 Details

Error running action: plinth..install(app_id="matrixsynapse", packages=["matrix-synapse", "matrix-synapse-ldap3", "python3-psycopg2"], skip_recommends=false, force_configuration=null, reinstall=false, force_missing_configuration=false): RuntimeError("Apt command failed with return code: 100")
Stdout:
│ freedombox set on hold.
│ Canceled hold on freedombox.
Stderr:
║ E: Unable to correct problems, you have held broken packages.
║ E: The following information from --solver 3.0 may provide additional context:
║    Unable to satisfy dependencies. Reached two conflicting decisions:
║    1. python3-rpds-py:armhf=0.28.0-1 is not selected for install
║    2. python3-rpds-py:armhf=0.28.0-1 is selected as an upgrade because:
║       1. matrix-synapse:armhf=1.146.0-3 is selected as an upgrade
║       2. matrix-synapse:armhf=1.146.0-3 Depends python3-rpds-py (>= 0.25.0)
Action traceback:
╞   File "/usr/lib/python3/dist-packages/plinth/actions.py", line 501, in _privileged_call
╞     return_values = func(*arguments['args'], **arguments['kwargs'])
╞   File "/usr/lib/python3/dist-packages/plinth/privileged/packages.py", line 69, in install
╞     raise RuntimeError(
╞         f'Apt command failed with return code: {returncode}')

My sources list via $ less /etc/apt/sources.list:

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

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

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

Do I need to change my sources list? Or something else to resolve these update issues?

Information

  • FreedomBox version: “You are running Debian GNU/Linux 13 (trixie) and FreedomBox version 26.4.1. FreedomBox is up to date.” (from Help → About page)
  • Hardware: Olimex Pioneer Edition
  • How did you install FreedomBox?: Downloaded image from freedombox.org many years ago.
1 Like

I don’t use matrix and I don’t have much clue about it.

My general advice would be to:

  1. remember that the Pioneer is very slow (possibly hours) for upgrades
  2. wait for automatic ugprades (like, a few days)
  3. if that does not work, try manual upgrade from plinth (the web interface)
  4. only if that does not work and something is broken, use ssh and apt
  5. try aptitude instead of apt (same syntax usually works), sometimes it is better able to sort things out

On this case, what does apt-mark showhold say?
If python3-rpds-py is marked, you can try sudo apt-mark unhold python3-rpds-py and then sudo apt --fix-broken install. Then, you can try update and upgrade again.

1 Like

For Matrix Synapse, we are waiting for this issue to be fixed:

Perhaps you can try installing python3-typing-extensions >=4.14.1 from unstable. Although, from reading the error logs, I’m not sure if this is the same issue.

1 Like

Thank you for the tips @Avron and @jvalleroy.

I noticed that I have two sources lists in /etc/apt/:

  • sources.list
  • sources.list.fbx-dist-upgrade

(There are also the lists /etc/apt/sources.list.d/freedombox2.list and /etc/apt/sources.list.d/freedombox-unstable.list, but I have not touched those.)

The two lists were identical, so I commented out all repositories in sources.list.fbx-dist-upgrade. The same warnings persisted, so I also changed to a different mirror in sources.list (leaving http://security.debian.org/debian-security/ as it was). Again, the same warnings came up when running apt update via ssh.

However, after running an update in Plinth and rebooting, I again ssh’d into the FreedomBox and checked sudo apt update. The warning messages are now gone. So, commenting out the redundant repositories and/or changing mirrors and/or rebooting seemed to fix the problem.

Is it safe to delete sources.list.fbx-dist-upgrade?

The Matrix issue appears to be fixed after running sudo apt install -t unstable python3-rpds-py python3-typing-extensions via an SSH connection. Updating both packages from unstable was necessary. Thank you for the help, @jvalleroy!

I would appreciate feedback if deleting /etc/apt/sources.list.fbx-dist-upgrade is safe. I am hesitant to change or remove configuration files created by the FreedomBox scripts.

2 Likes

Thank you - that worked for me too.

2 Likes