Getting installation probllem in installing Discord

There are two alternatives:

  • If you do not plan to use Oracle Java 11 then run

    sudo dpkg -P --force-all oracle-java11-installer-local
    sudo dpkg -P --force-all oracle-java11-set-default-local
    
  • If you want to get Oracle Java 11 installed then run

    sudo apt-get install curl
    sudo mkdir -p /var/cache/oracle-jdk11-installer-local
    curl -L -b "oraclelicense=a" -O https://download.oracle.com/otn-pub/java/jdk/11.0.12%2B8/f411702ca7704a54a79ead0c2e0942a3/jdk-11.0.12_linux-x64_bin.tar.gz
    sudo mv jdk-11.0.12_linux-x64_bin.tar.gz /var/cache/oracle-jdk11-installer-local
    
    sudo add-apt-repository ppa:linuxuprising/java
    sudo apt-get update
    sudo apt-get install oracle-java11-installer-local
    

and then retry Discord installation:

cd ~/Downloads
wget -c https://dl.discordapp.net/apps/linux/0.0.15/discord-0.0.15.deb
sudo apt-get install ./discord-0.0.15.deb