oxen-io / session-pysogs

Python implementation of the Session community server
GNU General Public License v3.0
75 stars 35 forks source link

[SOLVED] SOGS installation error ("Depends: python3-sogs requires python 3.7, but 3.9 is to be installed") #202

Open qdhj opened 1 year ago

qdhj commented 1 year ago

Copy of this question, closed for no reason.

Trying to install SOGS to my VPS server. Error happens at step:

Output:

sudo apt install sogs-standalone
Reading package lists... Done
Building dependency tree
Reading state information... 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:
 sogs-standalone : Depends: python3-sogs (= 0.3.7-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Intuitively trying install python3-sogs, in requires python3-nacl. After installing the last one and retrying install the python3-sogs, getting:

python3-sogs : Depends : python3-nacl (>= 1.4.0), but 1.3.0-2 is to be installed
E: Unable to correct problems, you have held broken packages.
qdhj commented 1 year ago

[SOLVE]

So, I got solved the error by installing debian 10 (which has python 3.7), then holding the python:

sudo apt-mark hold python3
sudo apt-mark hold python3-minimal

Then updating to Debian 11, using this instruction. Installing lsb-release (apt-get install lsb-release) and making fully second step in installing SOGS by official tutorial.

And then unholding the python:

sudo apt-mark unhold python3
sudo apt-mark unhold python3-minimal

And without upgrading anything installing the sogs sudo apt install sogs-standalone

The bug is still there, this is hella crutch, just telling how to get around it for others in case of need