읽고 나서이 문제그리고 그 대답은 Ubuntu Pro 계정을 등록하고 다음을 사용하여 내 컴퓨터를 연결했습니다.sudo pro attach TOKEN
그런 다음 실행 sudo apt update
하고 sudo apt upgrade
모든 Python 패키지에 대해 다음과 같은 무단 오류가 계속 발생했습니다. 여전히 다음과 같은 오류 메시지가 나타납니다.
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
libnghttp2-14 libpython2.7 libpython2.7-dev libpython2.7-minimal
libpython2.7-stdlib libpython3.6 libpython3.6-minimal libpython3.6-stdlib
python2.7 python2.7-dev python2.7-minimal python3.6 python3.6-minimal
13 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
13 esm-infra security updates
Need to get 38.9 MB of archives.
After this operation, 79.9 kB disk space will be freed.
Err:1 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 python2.7-dev amd64 2.7.17-1~18.04ubuntu1.13
401 Unauthorized [IP: 185.125.190.24 443]
Err:2 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 libpython2.7-dev amd64 2.7.17-1~18.04ubuntu1.13
401 Unauthorized [IP: 185.125.190.24 443]
Err:3 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 libpython2.7 amd64 2.7.17-1~18.04ubuntu1.13
401 Unauthorized [IP: 185.125.190.24 443]
Err:4 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 python2.7 amd64 2.7.17-1~18.04ubuntu1.13
401 Unauthorized [IP: 185.125.190.24 443]
Err:5 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 libpython2.7-stdlib amd64 2.7.17-1~18.04ubuntu1.13
401 Unauthorized [IP: 185.125.190.24 443]
Err:6 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 python2.7-minimal amd64 2.7.17-1~18.04ubuntu1.13
401 Unauthorized [IP: 185.125.190.24 443]
Err:7 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 libpython2.7-minimal amd64 2.7.17-1~18.04ubuntu1.13
401 Unauthorized [IP: 185.125.190.24 443]
Err:8 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 libpython3.6 amd64 3.6.9-1~18.04ubuntu1.13
401 Unauthorized [IP: 185.125.190.24 443]
Err:9 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 python3.6 amd64 3.6.9-1~18.04ubuntu1.13
401 Unauthorized [IP: 185.125.190.24 443]
Err:10 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 libpython3.6-stdlib amd64 3.6.9-1~18.04ubuntu1.13
401 Unauthorized [IP: 185.125.190.24 443]
Err:11 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 python3.6-minimal amd64 3.6.9-1~18.04ubuntu1.13
401 Unauthorized [IP: 185.125.190.24 443]
Err:12 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 libpython3.6-minimal amd64 3.6.9-1~18.04ubuntu1.13
401 Unauthorized [IP: 185.125.190.24 443]
Err:13 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 libnghttp2-14 amd64 1.30.0-1ubuntu1+esm1
401 Unauthorized [IP: 185.125.190.24 443]
E: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/pool/main/p/python2.7/python2.7-dev_2.7.17-1~18.04ubuntu1.13_amd64.deb 401 Unauthorized [IP: 185.125.190.24 443]
E: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/pool/main/p/python2.7/libpython2.7-dev_2.7.17-1~18.04ubuntu1.13_amd64.deb 401 Unauthorized [IP: 185.125.190.24 443]
E: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/pool/main/p/python2.7/libpython2.7_2.7.17-1~18.04ubuntu1.13_amd64.deb 401 Unauthorized [IP: 185.125.190.24 443]
E: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/pool/main/p/python2.7/python2.7_2.7.17-1~18.04ubuntu1.13_amd64.deb 401 Unauthorized [IP: 185.125.190.24 443]
E: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/pool/main/p/python2.7/libpython2.7-stdlib_2.7.17-1~18.04ubuntu1.13_amd64.deb 401 Unauthorized [IP: 185.125.190.24 443]
E: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/pool/main/p/python2.7/python2.7-minimal_2.7.17-1~18.04ubuntu1.13_amd64.deb 401 Unauthorized [IP: 185.125.190.24 443]
E: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/pool/main/p/python2.7/libpython2.7-minimal_2.7.17-1~18.04ubuntu1.13_amd64.deb 401 Unauthorized [IP: 185.125.190.24 443]
E: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/pool/main/p/python3.6/libpython3.6_3.6.9-1~18.04ubuntu1.13_amd64.deb 401 Unauthorized [IP: 185.125.190.24 443]
E: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/pool/main/p/python3.6/python3.6_3.6.9-1~18.04ubuntu1.13_amd64.deb 401 Unauthorized [IP: 185.125.190.24 443]
E: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/pool/main/p/python3.6/libpython3.6-stdlib_3.6.9-1~18.04ubuntu1.13_amd64.deb 401 Unauthorized [IP: 185.125.190.24 443]
E: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/pool/main/p/python3.6/python3.6-minimal_3.6.9-1~18.04ubuntu1.13_amd64.deb 401 Unauthorized [IP: 185.125.190.24 443]
E: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/pool/main/p/python3.6/libpython3.6-minimal_3.6.9-1~18.04ubuntu1.13_amd64.deb 401 Unauthorized [IP: 185.125.190.24 443]
E: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/pool/main/n/nghttp2/libnghttp2-14_1.30.0-1ubuntu1+esm1_amd64.deb 401 Unauthorized [IP: 185.125.190.24 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
18.04가 EoL(수명 종료)에 도달했다는 것을 알고 있지만 정기적으로 사용되거나 업그레이드되지 않는 오래된 데스크톱이므로 그냥 사라져 버립니다.
최신 LTS 버전으로 업그레이드할 수 있도록 이 문제를 해결하는 방법에 대한 아이디어가 있습니까?
답변1
읽는 동안 해결 방법을 찾았습니다.https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1990798
달리다pro disable esm-infra
실행하여 apt-get upgrade
더 이상 해당 패키지가 나열되지 않는지 확인하세요.
달리다pro enable esm-infra
run 을 실행하면 apt-get upgrade
이제 문제가 있는 패키지가 다운로드됩니다.
답변2
추가 토큰을 사용한 후에 sudo pro attach
는 먼저 esm을 비활성화해야 할 수도 있습니다.
sudo pro disable esm-apps esm-infra
그 다음에
sudo apt update && sudo apt upgrade
401 오류가 수신되지 않으면 esm을 활성화합니다.
sudo pro enable esm-apps esm-infra
그 다음에
sudo apt update && sudo apt upgrade
이것은 내 18.04에서 작동합니다.