release-upgrade-motd can't update message

Bug #1821034 reported by Hack Saw
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
New
Medium
Unassigned

Bug Description

This is a similar bug to the one regarding using a proxy, but I'm NOT using a proxy.

$ lsb_release -rd
Description: Ubuntu 18.04.2 LTS
Release: 18.04

$ do-release-upgrade -c
Checking for a new Ubuntu release
Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings

And yet:

$ curl https://changelogs.ubuntu.com/meta-release-lts
Dist: dapper
Name: Dapper Drake
Version: 6.06 LTS
.
.
.
Dist: bionic
Name: Bionic Beaver
Version: 18.04.2 LTS
Date: Thu, 26 April 2018 18:04:00 UTC
Supported: 1
Description: This is the 18.04.2 LTS release
...

A thing I note: python3-update-manager (Version: 1:18.04.11.9) utils.py url_downloadable doesn't seem to know about https.

>>> import UpdateManager.Core.utils as umut
>>> umut.url_downloadable("https://changelogs.ubuntu.com/meta-release-lts", lambda x: print(x))
url_downloadable: https://changelogs.ubuntu.com/meta-release-lts
s='https' n='changelogs.ubuntu.com' p='/meta-release-lts' q='' f=''
False

If I change the line to """ if scheme == "http" or scheme == "https" """:

>>> import UpdateManager.Core.utils as umut
>>> umut.url_downloadable("https://changelogs.ubuntu.com/meta-release-lts", lambda x: print(x))
url_downloadable: https://changelogs.ubuntu.com/meta-release-lts
s='https' n='changelogs.ubuntu.com' p='/meta-release-lts' q='' f=''
error from httplib: '<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)>'
False

Dunno if that's helpful at all, but there it is.

Revision history for this message
Brian Murray (brian-murray) wrote :

What version of python3 are using? I'm unable to recreate this.

bdmurray@clean-bionic-amd64:~$ do-release-upgrade -c
Checking for a new Ubuntu release
There is no development version of an LTS available.
To upgrade to the latest non-LTS develoment release
set Prompt=normal in /etc/update-manager/release-upgrades.
bdmurray@clean-bionic-amd64:~$ apt-cache policy python3-update-manager
python3-update-manager:
  Installed: 1:18.04.11.9
  Candidate: 1:18.04.11.9
  Version table:
 *** 1:18.04.11.9 500
        500 http://192.168.10.7/ubuntu bionic-updates/main amd64 Packages
        500 http://192.168.10.7/ubuntu bionic-updates/main i386 Packages
        100 /var/lib/dpkg/status
     1:18.04.11 500
        500 http://192.168.10.7/ubuntu bionic/main amd64 Packages
        500 http://192.168.10.7/ubuntu bionic/main i386 Packages
bdmurray@clean-bionic-amd64:~$ apt-cache policy python3
python3:
  Installed: 3.6.7-1~18.04
  Candidate: 3.6.7-1~18.04
  Version table:
 *** 3.6.7-1~18.04 500
        500 http://192.168.10.7/ubuntu bionic-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     3.6.5-3 500
        500 http://192.168.10.7/ubuntu bionic/main amd64 Packages

Changed in update-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Hack Saw (hack-saw) wrote : Re: [Bug 1821034] Re: release-upgrade-motd can't update message
Download full text (3.5 KiB)

$ python3 --version
Python 3.6.7
# dpkg -s python3
...
Version: 3.6.7-1~18.04

On Thu, Mar 28, 2019 at 3:20 PM Brian Murray <email address hidden> wrote:

> What version of python3 are using? I'm unable to recreate this.
>
> bdmurray@clean-bionic-amd64:~$ do-release-upgrade -c
> Checking for a new Ubuntu release
> There is no development version of an LTS available.
> To upgrade to the latest non-LTS develoment release
> set Prompt=normal in /etc/update-manager/release-upgrades.
> bdmurray@clean-bionic-amd64:~$ apt-cache policy python3-update-manager
> python3-update-manager:
> Installed: 1:18.04.11.9
> Candidate: 1:18.04.11.9
> Version table:
> *** 1:18.04.11.9 500
> 500 http://192.168.10.7/ubuntu bionic-updates/main amd64 Packages
> 500 http://192.168.10.7/ubuntu bionic-updates/main i386 Packages
> 100 /var/lib/dpkg/status
> 1:18.04.11 500
> 500 http://192.168.10.7/ubuntu bionic/main amd64 Packages
> 500 http://192.168.10.7/ubuntu bionic/main i386 Packages
> bdmurray@clean-bionic-amd64:~$ apt-cache policy python3
> python3:
> Installed: 3.6.7-1~18.04
> Candidate: 3.6.7-1~18.04
> Version table:
> *** 3.6.7-1~18.04 500
> 500 http://192.168.10.7/ubuntu bionic-updates/main amd64 Packages
> 100 /var/lib/dpkg/status
> 3.6.5-3 500
> 500 http://192.168.10.7/ubuntu bionic/main amd64 Packages
>
>
> ** Changed in: update-manager (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1821034
>
> Title:
> release-upgrade-motd can't update message
>
> Status in update-manager package in Ubuntu:
> Incomplete
>
> Bug description:
> This is a similar bug to the one regarding using a proxy, but I'm NOT
> using a proxy.
>
> $ lsb_release -rd
> Description: Ubuntu 18.04.2 LTS
> Release: 18.04
>
> $ do-release-upgrade -c
> Checking for a new Ubuntu release
> Failed to connect to https://changelogs.ubuntu.com/meta-release-lts.
> Check your Internet connection or proxy settings
>
> And yet:
>
> $ curl https://changelogs.ubuntu.com/meta-release-lts
> Dist: dapper
> Name: Dapper Drake
> Version: 6.06 LTS
> .
> .
> .
> Dist: bionic
> Name: Bionic Beaver
> Version: 18.04.2 LTS
> Date: Thu, 26 April 2018 18:04:00 UTC
> Supported: 1
> Description: This is the 18.04.2 LTS release
> ...
>
>
> A thing I note: python3-update-manager (Version: 1:18.04.11.9) utils.py
> url_downloadable doesn't seem to know about https.
>
> >>> import UpdateManager.Core.utils as umut
> >>> umut.url_downloadable("
> https://changelogs.ubuntu.com/meta-release-lts", lambda x: print(x))
> url_downloadable: https://changelogs.ubuntu.com/meta-release-lts
> s='https' n='changelogs.ubuntu.com' p='/meta-release-lts' q='' f=''
> False
>
>
> If I change the line to """ if scheme == "http" or scheme == "https" """:
>
> >>> import UpdateManager.Core.utils as umut
> >>> umut.url_downloadable("
> https://changelogs.ubuntu.com/meta-release-lts", lambda x: print(x))
> url_downloadable: https://changelogs.ubuntu.com/meta-release-lts
> s='...

Read more...

Changed in update-manager (Ubuntu):
status: Incomplete → Triaged
importance: Undecided → High
Changed in update-manager (Ubuntu):
status: Triaged → Incomplete
importance: High → Undecided
Revision history for this message
Brian Murray (brian-murray) wrote :

While you've identified a legitimate bug, the lack of https support, in url_downloadable that function isn't actually used to get the meta-release file. (Wacky I know!) This can be seen by reading UpdateManager/Core/MetaRelease.py's download function.

Please try running do-release-upgrade with the DEBUG_UPDATE_MANAGER environmental variable set e.g. DEBUG_UPDATE_MANAGER=1 do-release-upgrade -c.

Thanks again for your help!

Revision history for this message
Hack Saw (hack-saw) wrote :

Here ya go:

$ DEBUG_UPDATE_MANAGER=1 do-release-upgrade -c
Checking for a new Ubuntu release
MetaRelease.__init__() useDevel=False useProposed=False
/etc/update-manager/meta-release: https://changelogs.ubuntu.com/meta-release
/etc/update-manager/meta-release: https://changelogs.ubuntu.com/meta-release-lts
/etc/update-manager/meta-release: -development
/etc/update-manager/meta-release: -proposed
metarelease-uri: https://changelogs.ubuntu.com/meta-release-lts
MetaRelease.download()
result of meta-release download: '<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)>'
Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings
NO self.metarelease_information
There is no development version of an LTS available.
To upgrade to the latest non-LTS develoment release
set Prompt=normal in /etc/update-manager/release-upgrades.

Revision history for this message
Brian Murray (brian-murray) wrote :

What version of ubuntu-release-upgrader-core do you have installed? This looks like a duplicate of bug 1796940.

Revision history for this message
Hack Saw (hack-saw) wrote :

Version: 1:18.04.30

On Tue, Apr 9, 2019 at 7:00 PM Brian Murray <email address hidden> wrote:

> What version of ubuntu-release-upgrader-core do you have installed? This
> looks like a duplicate of bug 1796940.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1821034
>
> Title:
> release-upgrade-motd can't update message
>
> Status in update-manager package in Ubuntu:
> Incomplete
>
> Bug description:
> This is a similar bug to the one regarding using a proxy, but I'm NOT
> using a proxy.
>
> $ lsb_release -rd
> Description: Ubuntu 18.04.2 LTS
> Release: 18.04
>
> $ do-release-upgrade -c
> Checking for a new Ubuntu release
> Failed to connect to https://changelogs.ubuntu.com/meta-release-lts.
> Check your Internet connection or proxy settings
>
> And yet:
>
> $ curl https://changelogs.ubuntu.com/meta-release-lts
> Dist: dapper
> Name: Dapper Drake
> Version: 6.06 LTS
> .
> .
> .
> Dist: bionic
> Name: Bionic Beaver
> Version: 18.04.2 LTS
> Date: Thu, 26 April 2018 18:04:00 UTC
> Supported: 1
> Description: This is the 18.04.2 LTS release
> ...
>
>
> A thing I note: python3-update-manager (Version: 1:18.04.11.9) utils.py
> url_downloadable doesn't seem to know about https.
>
> >>> import UpdateManager.Core.utils as umut
> >>> umut.url_downloadable("
> https://changelogs.ubuntu.com/meta-release-lts", lambda x: print(x))
> url_downloadable: https://changelogs.ubuntu.com/meta-release-lts
> s='https' n='changelogs.ubuntu.com' p='/meta-release-lts' q='' f=''
> False
>
>
> If I change the line to """ if scheme == "http" or scheme == "https" """:
>
> >>> import UpdateManager.Core.utils as umut
> >>> umut.url_downloadable("
> https://changelogs.ubuntu.com/meta-release-lts", lambda x: print(x))
> url_downloadable: https://changelogs.ubuntu.com/meta-release-lts
> s='https' n='changelogs.ubuntu.com' p='/meta-release-lts' q='' f=''
> error from httplib: '<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]
> certificate verify failed (_ssl.c:847)>'
> False
>
>
> Dunno if that's helpful at all, but there it is.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1821034/+subscriptions
>

Revision history for this message
Brian Murray (brian-murray) wrote :

And do you have ca-certificates installed?

Revision history for this message
Hack Saw (hack-saw) wrote :

Yep.
Version: 20180409

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for update-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in update-manager (Ubuntu):
status: Incomplete → Expired
Changed in update-manager (Ubuntu):
status: Expired → New
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.