Java 8 openjdk-8-jre-headless를 제거하여 openjdk-11-jre-headless로 업그레이드

Java 8 openjdk-8-jre-headless를 제거하여 openjdk-11-jre-headless로 업그레이드

패키지를 제거하는 여러 가지 방법을 시도했습니다. apt는 openjdk-8-jre-headless, apt purge openjdk-8-jre-headless를 제거합니다. 원하는 패키지를 제거하는 명령을 실행할 때마다 dpkg-l | grep openjdk를 시도하여 나열된 패키지를 찾았습니다. 하지만 실패했습니다. 많은 링크가 존재하지 않습니다. 자동 제거를 시도했지만 시스템에 여전히 Java 버전이 있습니다.

root@unifijet2:~# java -version
openjdk version "1.8.0_312"
OpenJDK Runtime Environment (build 1.8.0_312-8u312-b07-0ubuntu1~21.10-b07)
OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)
root@unifijet2:~# sudo apt purge openjdk-8-jre-headless
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  jsvc libcommons-daemon-java libxi6 libxrender1 libxtst6 x11-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libasound2 libasound2-data libgraphite2-3 libharfbuzz0b openjdk-17-jre-headless unifi
Suggested packages:
  libasound2-plugins alsa-utils libnss-mdns fonts-ipafont-gothic fonts-ipafont-mincho fonts-wqy-microhei
  | fonts-wqy-zenhei fonts-indic
Recommended packages:
  alsa-ucm-conf alsa-topology-conf
The following packages will be REMOVED:
  openjdk-8-jre-headless*
The following NEW packages will be installed:
  libasound2 libasound2-data libgraphite2-3 libharfbuzz0b openjdk-17-jre-headless
The following packages will be upgraded:
  unifi
1 upgraded, 5 newly installed, 1 to remove and 38 not upgraded.
Need to get 808 kB/197 MB of archives.
After this operation, 112 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 libasound2-data all 1.2.4-1.1ubuntu3.1
  404  Not Found [IP: 185.125.190.36 80]
Err:2 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 libasound2 amd64 1.2.4-1.1ubuntu3.1
  404  Not Found [IP: 185.125.190.36 80]
Err:3 http://archive.ubuntu.com/ubuntu impish/main amd64 libgraphite2-3 amd64 1.3.14-1
  404  Not Found [IP: 185.125.190.36 80]
Err:4 http://archive.ubuntu.com/ubuntu impish/main amd64 libharfbuzz0b amd64 2.7.4-1ubuntu1
  404  Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/a/alsa-lib/libasound2-data_1.2.4-1.1ubuntu3.1_all.deb  404  Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/a/alsa-lib/libasound2_1.2.4-1.1ubuntu3.1_amd64.deb  404  Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/graphite2/libgraphite2-3_1.3.14-1_amd64.deb  404  Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/h/harfbuzz/libharfbuzz0b_2.7.4-1ubuntu1_amd64.deb  404  Not Found [IP: 185.125.190.36 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@unifijet2:~# java -version
openjdk version "1.8.0_312"
OpenJDK Runtime Environment (build 1.8.0_312-8u312-b07-0ubuntu1~21.10-b07)
OpenJDK 64-Bit Server VM (build 25.312-b07, mixed mode)

관련 정보