[Freedombox-discuss] Dependency problem for matrix-synapse.

A. F. Cano afc54 at comcast.net
Wed Jan 12 18:30:07 GMT 2022


On Wed, Jan 12, 2022 at 05:47:30PM +0100, Diederik de Haas wrote:
> On woensdag 12 januari 2022 15:19:25 CET A. F. Cano wrote:
> > I noticed that matrix-synapse was not upgrading with aptitude (the
> > auto-upgrade had not had an upgrade in days, possibly a week) and it
> 
> That would concern me too, but that's because I run Sid ...
> 
> > turns out it needed python3-authlib and python3-jwt.  Installed those
> > manually and then tried again.  It now needs pythno3-frozendict, which
> > is already installed (at version 3.38.0-2).  It now breaks
> > matrix-synapse-ldap3.  Removed it.  Reinstalled it.  Actually 2 packages
> > were re-installed, but it's back at "Breaks matrix-synapse-ldap3 (<
> > 0.1.3-2-)".
> 
> It would really help if you could provide the full log of what you did and the 
> resulting output. Now we're left with (mostly) guessing.
> 
> What may help is the output of the following commands:
> - aptitude versions matrix-synapse

$ sudo aptitude versions matrix-synapse
[sudo] password for ac-adm: 
i   1.48.0-1~bpo11+1                                                       100 
p   1.49.0-1~bpo11+2                             bullseye-backports        100 

> - aptitude why python3-authlib

$ sudo aptitude why python3-authlib
i   matrix-synapse Suggests python3-authlib (>= 0.14.0)

> - aptitude why python3-jwt

$ sudo aptitude why python3-jwt
i   matrix-synapse Suggests python3-jwt (>= 1.6.4)

> - aptitude search ~b

The -b option doesn't seem to be valid

$ sudo aptitude search matrix-synapse
i   matrix-synapse                  - Matrix reference homeserver              
i   matrix-synapse-ldap3            - LDAP auth provider for the Matrix homeser
v   python3-matrix-synapse-ldap3    -


> The 2 'why' queries are because those packages are *suggested* by matrix-
> synapse, so I'd like to know what makes them needed.

That is the question, isn't it? Even with those packages installed,
there is still the issue with matrix-synapse-ldap3

$ sudo aptitude why matrix-synapse-ldap3
i   matrix-synapse Recommends matrix-synapse-ldap3

$ sudo aptitude why python3-frozendict
i   matrix-synapse Depends python3-frozendict (>= 1)

$ sudo aptitude search  python3-frozendict
i A python3-frozendict              - immutable dictionary - Python 3.x

In interactive aptitude, python3-frozendict is reported at 1.2-2, so it
looks like this is the explanation: 1.4.9 matrix-synapse requires 1.2-3.
Whether it is correct that this dependency prevents the upgrade to 1.49,
I don't know.

>From within aptitude in interactive mode, matrix-synapse:

  --\ Depends (38)
    --- adduser
    --- debconf (>= 0.5) | debconf-2.0
    --- libjs-jquery
    --- libpython3-stdlib (< 3.6.4~rc1-2~) | python3-distutils
    --- lsb-base (>= 3.0-6)
    --- perl:any
    --- python3-attr (>= 19.2.0~)
    --- python3-bcrypt
    --- python3-bleach
    --- python3-canonicaljson (>= 1.4.0)
    --- python3-cryptography
    --- python3-frozendict (>= 1.2-3~) (UNSATISFIED)
    --- python3-idna
    --- python3-ijson (>= 3.1)
    --- python3-jinja2
    --- python3-jsonschema (>= 3.0.0)
    --- python3-lxml
    --- python3-msgpack (>= 0.5.0)
    --- python3-nacl (>= 1.2.1)
    --- python3-netaddr (>= 0.7.18)
    --- python3-openssl (>= 0.14)
    --- python3-phonenumbers
    --- python3-pil
    --- python3-prometheus-client
    --- python3-psycopg2 (>= 2.8)                                              
    --- python3-pyasn1 (>= 0.1.9)
    --- python3-pyasn1-modules
    --- python3-pymacaroons (>= 0.13.0)
    --- python3-service-identity (>= 18.1.0)
    --- python3-signedjson (>= 1.1.0)
    --- python3-sortedcontainers
    --- python3-systemd
    --- python3-treq (>= 18)
    --- python3-twisted (>= 18.9.0-8~)
    --- python3-typing-extensions (>= 3.7.4)
    --- python3-unpaddedbase64 (>= 1.0.1)
    --- python3-yaml
    --- python3:any
  --\ Recommends (2)
    --- matrix-synapse-ldap3
    --- python3-pympler
  --\ Suggests (2)
    --- python3-authlib (>= 0.14.0)
    --- python3-jwt (>= 1.6.4)
  --\ Breaks (1)
    --- matrix-synapse-ldap3 (< 0.1.3-2~) 

It doesn't seem right that matrix-synapse-ldap3 is a recommendation (not
a dependency) and yet...

After deleting and undeleting (from within aptitude)
frozendict is no loner marked as UNSATISFIED, the dependencies part only
says:

    --\ python3-frozendict (>= 1)
i A   1.2-2
p A   1.2-3~bpo11+1

But matrix-synapse still breaks matrix-synapse-ldap3 and the 1.49
version is still broken:

  --\ Versions of matrix-synapse (2)
id   1.48.0-1~bpo11+1                   -8,164 kB
pB   1.49.0-1~bpo11+2                   +8,288 kB

I don't know what else to try.

Augustine



More information about the Freedombox-discuss mailing list