Installing Mendeley Desktop on Ubuntu 22.04
Install Mendeley Desktop on Ubuntu 22.04
When attempting to install Mendeley Desktop on Ubuntu 22.04, I encountered the following error:
dpkg: dependency problems prevent configuration of mendeleydesktop:
mendeleydesktop depends on python; however:
Package python is not installed.
Here’s the solution that resolved the issue for me:
-
Download the Mendeley Desktop
.debpackageaxel -a https://desktop-download.mendeley.com/download/apt/pool/main/m/mendeleydesktop/mendeleydesktop_1.19.8-stable_amd64.deb -
Ensure
pythoncommand points to Python
If thepythoncommand is missing, install thepython-is-python3package:sudo apt install python-is-python3 -
Extract the
.debfilear x mendeleydesktop_1.19.8-stable_amd64.deb -
Extract the control archive
tar xzf control.tar.gz -
Edit dependencies
Opencontrolin a text editor and removepythonfrom the dependencies list. Then repack the control archive:FILES=$(tar zxvf control.tar.gz) tar zcf control.tar.gz $FILES -
Repack the
.debfilear rcs mendeleydesktop_1.19.8-stable_amd64_modified.deb debian-binary control.tar.gz data.tar.xz -
Install Python 2
sudo apt install python2 -
Create a symlink for Python 2
Point/usr/bin/pythonto Python 2:sudo mv /usr/bin/python /usr/bin/python_old sudo ln -s /usr/bin/python2 /usr/bin/python -
Install the modified Mendeley Desktop package
sudo dpkg -i mendeleydesktop_1.19.8-stable_amd64_modified.deb -
Restore the original
pythonsymlinksudo rm /usr/bin/python sudo mv /usr/bin/python_old /usr/bin/python
References:
Enjoy Reading This Article?
Here are some more articles you might like to read next: