6

Today I made a ubuntu bootable on an usb drive. I wanted to download discord for my ubuntu and downloaded the file from the discord website. However when I tried to install i got missing dependencies error. The error is:

dpkg: dependency problems prevent configuration of discord:
 discord depends on libatomic1; however:
  Package libatomic1 is not installed.
 discord depends on libgconf-2-4; however:
  Package libgconf-2-4 is not installed.
 discord depends on libappindicator1; however:
  Package libappindicator1 is not installed.
 discord depends on libc++1; however:
  Package libc++1 is not installed.

When i tried to install libgconf-2-4 i got another error:

Package libgconf-2-4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libgconf-2-4' has no installation candidate

How do I fix this problem?

anurag
  • 85
  • 1
  • 1
  • 5
  • I had the same issues when downloading the file directly from the discord website. I ended up following this https://linuxconfig.org/how-to-install-discord-on-ubuntu-20-04-focal-fossa-linux – ItsNotAndy Nov 08 '21 at 11:03
  • 2
    Probably `sudo add-apt-repository universe` ............ and `sudo apt update` .... to install "universe" packages https://packages.ubuntu.com/focal/libgconf-2-4 – Knud Larsen Nov 08 '21 at 11:03

2 Answers2

8

In my case, I'm using ubuntu 20.04 and i did it with below two commands

apt install libgconf-2-4

if it is broken then execute below command

apt --fix-broken install
Renish Gotecha
  • 2,232
  • 22
  • 21
0

I'm using ubuntu 22.04 and command below fixed it for me

apt --fix-broken install