unable to install discord:
Error while installing package: installed oracle-java11-installer-local package
post-installation script subprocess returned error exit ststus 1
我从互联网上下载了 .deb 文件并收到错误。不仅是 discord,我在安装某些软件时也遇到了同样的问题。
提前致谢。
凯瓦尔
答案1
有两种选择:
如果你不打算使用 Oracle Java 11,则运行
sudo dpkg -P --force-all oracle-java11-installer-local sudo dpkg -P --force-all oracle-java11-set-default-local
如果要安装 Oracle Java 11,请运行
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
然后重试 Discord 安装:
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
答案2
尝试以下命令:
sudo apt-get 更新 && sudo apt-get 安装 snap
sudo snap 安装 discord