无法卸载 Java 17。出现与依赖项相关的错误

无法卸载 Java 17。出现与依赖项相关的错误

我是 Ubuntu 新手,正在使用 Ubuntu 20.04.3 LTS。我最近安装了 Java 17,但现在我想卸载它,但出现以下依赖性错误。请帮帮我:

dpkg-query -W -f='${binary:Package}\n' | grep -E -e '^(ia32-)?(sun|oracle)-java' -e '^openjdk-' -e '^icedtea' -e '^(default|gcj)-j(re|dk)' -e '^gcj-(.*)-j(re|dk)' -e '^java-common' | xargs sudo apt-get -y remove
[sudo] password for saurabh: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 jdk-17 : Depends: libc6-i386 but it is not installed
          Depends: libc6-x32 but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

相关内容