Install Slack
Slack isn't FLOOS, therefore it isn't included in the Debian repository (there might be other reasons to it). In order to install Slack, you will need to download .DEB file manually.
1. Go to https://slack.com/intl/en-cz/downloads/linux and download the .DEB file
2. Unfortunately, if you had tried installing it right away, you would get dependency error.
$ sudo apt install ./slack-desktop-4.20.0-amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'slack-desktop' instead of './slack-desktop-4.20.0-amd64.deb'
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:
slack-desktop : Depends: libappindicator3-1 but it is not installable
E: Unable to correct problems, you have held broken packages.
3. To fix this, run the following command to unpack and edit the .DEB file (in the folder where you have downloaded it)
$ dpkg-deb -x slack-desktop-4.20.0-amd64.deb unpack
$ dpkg-deb --control slack-desktop-4.20.0-amd64.deb
This will leave you with two new folders, unpack
and DEBIAN
.
4. Move the DEBIAN
folder to the unpack
folder.
$ mv DEBIAN/ unpack/
5. Open the file and replace libappindicator3-1
with libayatana-appindicator3-1
$ nvim unpack/DEBIAN/control
...
Depends: libgtk-3-0, libappindicator3-1, libnotify4, libnss3, libxss1, libxtst6, xdg-utils, libatspi2.0-0, libuuid1, kde-cli-tools | kde-runtime | trash-cli | libglib2.0-bin | gvfs-bin, apt-transport-https
...
to
...
Depends: libgtk-3-0, libayatana-appindicator3-1, libnotify4, libnss3, libxss1, libxtst6, xdg-utils, libatspi2.0-0, libuuid1, kde-cli-tools | kde-runtime | trash-cli | libglib2.0-bin | gvfs-bin, apt-transport-https
...
6. Go back to the directory where you have the folder unpack
and build the .DEB package again with:
$ dpkg -b unpack slack.deb