Ubuntu 18.04 python更新问题

Ubuntu 18.04 python更新问题

这几天更新有问题。我的版本是Ubuntu 18.04.6 LTS(仿生)

sudo apt-get upgrade

给出这样的输出;

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libnghttp2-14 libpython2.7 libpython2.7-dev libpython2.7-minimal
  libpython2.7-stdlib libpython3.6 libpython3.6-dev libpython3.6-minimal
  libpython3.6-stdlib python2.7 python2.7-dev python2.7-minimal python3.6
  python3.6-dev python3.6-minimal
15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 84,3 MB of archives.
After this operation, 77,8 kB disk space will be freed.
Do you want to continue? [Y/n] y
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: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 443]
Err:8 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 python3.6-dev amd64 3.6.9-1~18.04ubuntu1.13
  401  Unauthorized [IP: 91.189.91.47 443]
Err:9 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 libpython3.6-dev amd64 3.6.9-1~18.04ubuntu1.13
  401  Unauthorized [IP: 91.189.91.47 443]
Err:10 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 libpython3.6 amd64 3.6.9-1~18.04ubuntu1.13
  401  Unauthorized [IP: 91.189.91.47 443]
Err:11 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 python3.6 amd64 3.6.9-1~18.04ubuntu1.13
  401  Unauthorized [IP: 91.189.91.47 443]
Err:12 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: 91.189.91.47 443]
Err:13 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: 91.189.91.47 443]
Err:14 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: 91.189.91.47 443]
Err:15 https://esm.ubuntu.com/infra/ubuntu bionic-infra-security/main amd64 libnghttp2-14 amd64 1.30.0-1ubuntu1+esm1
  401  Unauthorized [IP: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 443]
E: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/pool/main/p/python3.6/python3.6-dev_3.6.9-1~18.04ubuntu1.13_amd64.deb  401  Unauthorized [IP: 91.189.91.47 443]
E: Failed to fetch https://esm.ubuntu.com/infra/ubuntu/pool/main/p/python3.6/libpython3.6-dev_3.6.9-1~18.04ubuntu1.13_amd64.deb  401  Unauthorized [IP: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 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: 91.189.91.47 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

我尝试过sudo apt-get update --fix-missing,但这并没有解决问题。我应该怎么办?

谢谢..

答案1

401 错误意味着您需要提供用户名和密码(尝试访问ESM池使用浏览器,您会看到提示)。

现在是 18.04超出标准支持,更新仅适用于扩展安全维护订阅。

答案2

对于遇到此问题的其他人,这里有一个对我有用的解决方法:https://unix.stackexchange.com/a/748710/575373

相关内容