group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #01560
[Bug 1561215] Re: Upgrade to 16.04 blocked by firewall due to HTTP violation
MetaRelease.py is actually part of update-manager but bundled with
ubuntu-release-upgrader. I'm switching the package appropriately.
$ ls -lh DistUpgrade/MetaRelease.py
lrwxrwxrwx 1 bdmurray bdmurray 64 Feb 8 14:32 DistUpgrade/MetaRelease.py -> /usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py
** Package changed: ubuntu-release-upgrader (Ubuntu Xenial) => update-
manager (Ubuntu Xenial)
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1561215
Title:
Upgrade to 16.04 blocked by firewall due to HTTP violation
Status in update-manager package in Ubuntu:
Triaged
Status in update-manager source package in Xenial:
Triaged
Bug description:
Upgrading from 15.10 to 16.04 may fail e.g. in corporate environments
where firewall or IDS/IPS equipment enforce strict HTTP protocol
usage. The failure occurs right in the beginning of the upgrade, as
the upgrader fails to retrieve the release announcement that would be
shown to the user. The problem is the URI in the HTTP request, which
contains the version string '16.04 LTS' without proper encoding.
Spaces should be encoded as '%20' in an URI, but method
_get_release_notes_uri_query_string() in MetaRelease.py of package
python3-update-manager seems to add the version string dist.version as
a query parameter to the URI without any encoding:
# get the version to upgrade to
q += "ver=%s" % dist.version
I think it would be necessary to use something like
urllib.parse.quote(dist.version) instead.
Below is the problematic HTTP request. It is dropped by the firewalls
in the corporation where I work. At home the upgrade works without
problem.
HEAD /ubuntu//dists/xenial/main/dist-upgrader-all/current/DevelReleaseAnnouncement.html?lang=en_US&os=ubuntu&ver=16.04 LTS HTTP/1.1
Accept-Encoding: identity
User-Agent: Python-urllib/3.4
Connection: close
Host: archive.ubuntu.com
Release and package info:
Description: Ubuntu 15.10
Release: 15.10
python3-update-manager:
Installed: 1:15.10.3
Candidate: 1:15.10.3
Version table:
*** 1:15.10.3 0
500 http://se.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1561215/+subscriptions