214 - Wie lässt sich der LRZ Sync+Share-Client mit APT installieren (Debian/Ubuntu/Mint)?

Tested with:

  • Debian 11 / 12
  • Ubuntu 20.04 LTS / 22.04 LTS / 24.04 LTS
  • Linux Mint 21


We recommend installing the packages from our S+S Linux repository. This way the LRZ Sync+Share desktop client software (*.deb) can be installed with the package manager (e.g. apt) and kept up to date.

Setup via the command line

Administrator (root) privileges are required to run the sudo command.

Preparation: In releases older than Debian 12 and Ubuntu 22.04, the directory '/etc/apt/keyrings' should be created, if it does not already exist:

if [[ ! -d "/etc/apt/keyrings" ]]; then sudo mkdir -pv "/etc/apt/keyrings"; else echo "Directory '/etc/apt/keyrings' exists, it's OK to proceed."; fi

First import the public key file and store it under '/etc/apt/keyrings', e.g. using the following one-liner:

sudo echo "Adding LRZ Sync+Share public key..." && wget -O- https://sasrepo.nas.lrz.de/lrz-sasrepo-signing-gpg-key-g1.asc | gpg --dearmor | sudo tee /etc/apt/keyrings/lrz-syncandshare-archive-keyring.gpg > /dev/null && echo "Saved as:" && ls -l '/etc/apt/keyrings/lrz-syncandshare-archive-keyring.gpg'

Create the package source configuration file 'lrz-syncandshare.sources' under '/etc/apt/sources.list.d', e.g. as follows:

sudo echo -e "Types: deb\nURIs: https://deb.sasrepo.nas.lrz.de/stable\nSuites: stable\nArchitectures: amd64\nComponents: main\nSigned-By: /etc/apt/keyrings/lrz-syncandshare-archive-keyring.gpg" | sudo tee /etc/apt/sources.list.d/lrz-syncandshare.sources

Create the package preference configuration file 'lrz-syncandshare.pref' under '/etc/apt/preferences.d', e.g. as follows:

sudo echo -e "Package: *\nPin: origin deb.sasrepo.nas.lrz.de\nPin-Priority: 100" | sudo tee /etc/apt/preferences.d/lrz-syncandshare.pref

Reload the package sources:

sudo apt-get update

To install the LRZ Sync+Share client (package name: lrz-sync-share):

sudo apt install lrz-sync-share

Optional: Activation of test versions

The package source configuration file provides the following package branches:

  • stable : contains the recommended, current version of the LRZ Sync+Share client (default)
  • testing : contains the latest available (beta) version of the LRZ Sync+Share client (for enthusiasts)

To access the client packages under testing, modification of '/etc/apt/sources.list.d/lrz-syncandshare.sources' is required as follows:

#Types: deb
#URIs: https://deb.sasrepo.nas.lrz.de/stable
#Suites: stable
#Architectures: amd64
#Components: main
#Signed-By: /etc/apt/keyrings/lrz-syncandshare-archive-keyring.gpg

Types: deb
URIs: https://deb.sasrepo.nas.lrz.de/testing
Suites: testing
Architectures: amd64
Components: main
Signed-By: /etc/apt/keyrings/lrz-syncandshare-archive-keyring.gpg

Related contents