Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 2 KB

File metadata and controls

53 lines (34 loc) · 2 KB

MendeleyDesktop-For-Ubuntu-22.04

>中文文档<

Script to repackage Mendeley Desktop for compatibility with Ubuntu 22.04

Why repackage?

If you use dpkg to install Mendeley's official installation package directly, there is a high probability that the following errors will occur:

dpkg: dependency problems prevent configuration of mendeleydesktop:
 mendeleydesktop depends on python; however:
  Package python is not installed.

This is because starting with Debian 11 (bullseye) and Ubuntu 20.04 LTS (focal) releases, all python packages use an explicit python3 or python2 interpreter, and do not use the unversioned /usr/bin/python at all. (See also: https://ubuntuforums.org/showthread.php?t=2474380)

Therefore, here we change the dependency of mendeleydesktop from python to python3, convert the corresponding python script to python3 format, and repackage it.

Usage

Make sure you have the 2to3 tool installed, if not, install it with apt:

sudo apt install 2to3

Then download and execute the script:

curl -s https://raw.githubusercontent.com/JezaChen/MendeleyDesktop-For-Ubuntu-22.04/main/repack.sh | bash -s

After waiting for a few minutes of repackaging, use dpkg to install the generated installation package:

sudo dpkg -i mendeleydesktop_1.19.8_for_ubuntu_22.04.deb

Repackaged deb

You can also directly install the deb package that has been repackaged, if you trust me 😇:

https://github.com/JezaChen/MendeleyDesktop-For-Ubuntu-22.04/releases

Related Links