debian已经把openjdk8从apt源移除了
安装只能手动安装
wget http://snapshot.debian.org/archive/debian-security/20220210T090326Z/pool/updates/main/o/openjdk-8/openjdk-8-jdk_8u322-b06-1~deb9u1_amd64.deb
wget http://snapshot.debian.org/archive/debian-security/20220210T090326Z/pool/updates/main/o/openjdk-8/openjdk-8-jdk-headless_8u322-b06-1~deb9u1_amd64.deb
wget http://snapshot.debian.org/archive/debian-security/20220210T090326Z/pool/updates/main/o/openjdk-8/openjdk-8-jre-headless_8u322-b06-1~deb9u1_amd64.deb
wget http://snapshot.debian.org/archive/debian-security/20220210T090326Z/pool/updates/main/o/openjdk-8/openjdk-8-jre_8u322-b06-1~deb9u1_amd64.deb
dpkg -i openjdk-8-jre-headless_8u322-b06-1~deb9u1_amd64.deb
dpkg -i openjdk-8-jdk-headless_8u322-b06-1~deb9u1_amd64.deb
apt --fix-broken install libgtk2.0-common libgtk2.0-0
dpkg -i openjdk-8-jre_8u322-b06-1~deb9u1_amd64.deb
dpkg -i openjdk-8-jdk_8u322-b06-1~deb9u1_amd64.deb
apt --fix-broken install
如果dpkg安装报错执行 就好了
apt-get install -f
参考https://forums.linuxmint.com/viewtopic.php?t=347708
参考https://zhuanlan.zhihu.com/p/636140349?utm_id=0
Comments | NOTHING