synapse
synapse copied to clipboard
debian package matrix-synapse depends on unavailable version of python-twisted
Description
The debian package for matrix-synapse is depending on a python-twisted version that is only available in debian testing.
Steps to reproduce
- try to upgrade from
0.33.3-1to0.33.3-2
root at vm-matrix.spline.inf.fu-berlin.de in ~ # apt upgrade matrix-synapse
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
matrix-synapse : Depends: python-twisted (>= 17.1.0) but 16.6.0-2 is to be installed
Recommends: python-lxml but it is not going to be installed
E: Broken packages
Version information
- Install method: package manager
- Platform: Debian Stretch installed on a linux-vserver vm
matrix.org has a backport
# apt-cache policy python-twisted
python-twisted:
Installed: 18.4.0-2~bpo9+1
Candidate: 18.4.0-2~bpo9+1
Version table:
*** 18.4.0-2~bpo9+1 500
500 https://matrix.org/packages/debian stretch/main amd64 Packages
100 /var/lib/dpkg/status
16.6.0-2 500
500 http://ftp.de.debian.org/debian stretch/main amd64 Packages
# apt-cache show python-twisted
Package: python-twisted
Source: twisted
Version: 18.4.0-2~bpo9+1
Architecture: all
Maintainer: Debian Python Modules Team <[email protected]>
Installed-Size: 25
Depends: python-twisted-core (>= 18.4.0-2~bpo9+1), python:any (<< 2.8), python:any (>= 2.7~)
Provides: python2.7-twisted
Homepage: https://twistedmatrix.com/
Priority: optional
Section: python
Filename: pool/main/t/twisted/python-twisted_18.4.0-2~bpo9+1_all.deb
Size: 12902
SHA256: 8cbe838955213137ce1d979f73f43249ef3909c54e9a78ecd84225eba9ad5c35
SHA1: ef457623aa85997b6eecd793fdc8ca625f8cfac2
MD5sum: 78ca17db91d2138bb75b138a0f443596
Description-en: Event-based framework for internet applications (dependency package)
This is a dependency package that depends on the twisted core library and
all the libraries split out to separate packages starting with Twisted-2.0.1.
Description-md5: 626c5f6e29c3177f91462f5f00604df0
Thanks @ukcb . I wasn't aware and the package was not suggested since apt-pinning gave them a lower priority.
I fixed this problem by creating the following file /etc/apt/preferences.d/matrix-synapse:
Package: python-twisted*
Pin: release o=matrix.org
Pin-Priority: 999