Skip to content

Instantly share code, notes, and snippets.

@oshliaer
Last active August 30, 2023 00:13
Show Gist options
  • Save oshliaer/70c73003580b168f0b2c757480565fe1 to your computer and use it in GitHub Desktop.
Save oshliaer/70c73003580b168f0b2c757480565fe1 to your computer and use it in GitHub Desktop.
Discord Ubuntu dependencies
> sudo dpkg -i /tmp/discord-0.0.5.deb

Selecting previously unselected package discord.
(Reading database ... 161079 files and directories currently installed.)
Preparing to unpack /tmp/discord-0.0.5.deb ...
Unpacking discord (0.0.5) ...
dpkg: dependency problems prevent configuration of discord:
 discord depends on libappindicator1; however:
  Package libappindicator1 is not installed.
 discord depends on libc++1; however:
  Package libc++1 is not installed.

dpkg: error processing package discord (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Errors were encountered while processing:
 discord
 
> sudo apt install -f

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libappindicator1 libc++1 libc++abi1 libdbusmenu-gtk4 libindicator7
Suggested packages:
  indicator-application clang
The following NEW packages will be installed:
  libappindicator1 libc++1 libc++abi1 libdbusmenu-gtk4 libindicator7
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 308 kB of archives.
After this operation, 1,299 kB of additional disk space will be used.
> sudo apt purge discord

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libappindicator1 libc++1 libc++abi1 libdbusmenu-gtk4 libindicator7
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  discord*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 154 MB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 161193 files and directories currently installed.)
Removing discord (0.0.5) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ...
> sudo apt install libappindicator1 libc++1

And libgconf-2-4 as a variant

Also

> sudo apt install libatk-adaptor libgail-common
@nerdCopter
Copy link

nerdCopter commented Sep 29, 2021

found this: https://www.linuxcapable.com/how-to-install-discord-on-debian-11-bullseye/
check comments as well. (waiitng for it to be approved) -- basically method 2, remove the appindicator dependency

@oshliaer
Copy link
Author

@nerdCopter, thanks!

libappindicator1 maybe not available for Debian 11 under this name.

@ikwen
Copy link

ikwen commented Nov 24, 2021

@contributorpw you are rigth.

root@debian:/home/wewe/Downloads/Programs# apt install budgie-indicator-applet
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
budgie-indicator-applet : Depends: libbudgie-plugin0 (>= 10.4) but it is not going to be installed
Depends: libpeas-1.0-0 (>= 1.0.0) but it is not going to be installed
Depends: ayatana-indicator-application but it is not going to be installed
Recommends: gir1.2-ayatanaappindicator3-0.1 but it is not going to be installed
Recommends: gir1.2-appindicator3-0.1 but it is not installable
discord : Depends: libappindicator1 but it is not installable
Depends: libc++1 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

@oshliaer
Copy link
Author

Thanks @ikwen

@oshliaer
Copy link
Author

This gist was not meant to solve a problem. This is just a note.

If there is no difference for you between apt and snap in Debian, you can use snap. I think so.

@JhonCodeU
Copy link

JhonCodeU commented Aug 22, 2022

thanks, Its working

@zhangxueyii
Copy link

Thanks. For me, sudo apt install -f fixed the problem. my OS version is Ubuntu 22.04.

@oshliaer
Copy link
Author

@zhangxueyii thanks for the confirmation!

@roadapathy
Copy link

I did:
sudo apt purge discord
wget -O /tmp/discord_instal.deb "https://discordapp.com/api/download/stable?platform=linux&format=deb"
sudo dpkg -i --force-depends /tmp/discord_instal.deb

@oshliaer
Copy link
Author

@roadapathy, yep. 4 years have passed. Probably something has changed in their package.

@KaiserWilhelm23
Copy link

This worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment