Ubuntu – Failed to connect to https://changelogs.ubuntu.com/meta-release-development. Check your Internet connection or proxy settings
When I want to upgrade Ubuntu from 18.04 Bionic Beaver to 18.10 to Cosmic Cuttlefish via terminal with sudo do-release-upgrade -d command it gives me warning:
Failed to connect to https://changelogs.ubuntu.com/meta-release-development.
Check your Internet connection or proxy settings.
However I have internet connection, I write this question now from my Ubuntu computer.
How can I resolve this?
It seems like there is an issue about certificates: result of meta-release download: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)>
As a workaround, I edited the file /usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py and added these lines to the beginning:
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
本文解决了在使用命令行尝试从Ubuntu 18.04升级到18.10时遇到的证书验证失败问题。通过修改Python SSL验证代码绕过了这一错误。
579

被折叠的 条评论
为什么被折叠?



