First, enable debug logs:
$ DEBUG_UPDATE_MANAGER=1 do-release-upgrade
...
result of meta-release download: '<urlopen error [SSL: 
CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate 
in certificate chain (_ssl.c:1131)>'
...

So in my case, the connection failed due to the certification of the
proxy. Then change /usr/bin/do-release-upgrade to ignore this check.

Insert this code at the beginning of /usr/bin/do-release-upgrade file
but after the '__future__' line:

from __future__ import print_function

import ssl

try:
    _create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
    pass
else:
    ssl._create_default_https_context = _create_unverified_https_context

ok, now it works!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1913240

Title:
  do-release-upgrade ignores APT proxy exemption

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1913240/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to