Escape plus character in apt HTTPS requests to work around Amazon S3 bug
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
As noted in bug#1003633, S3 is broken when a + sign exists unless it is escaped. This was fixed in 2013 for http based repos. However, it is still broken for https based repositories.
apt-get install zimbra-openssl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
zimbra-
The following NEW packages will be installed:
zimbra-openssl zimbra-openssl-lib
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,324 kB of archives.
After this operation, 6,313 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https:/
Err https:/
HttpError403
Get:2 https:/
Err https:/
HttpError403
E: Failed to fetch https:/
E: Failed to fetch https:/
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Escaping the + sign fixes the issue when testing with wget:
root@zre-
--2015-11-03 13:11:03-- https:/
Resolving repo.zimbra.com (repo.zimbra.
Connecting to repo.zimbra.com (repo.zimbra.
HTTP request sent, awaiting response... 200 OK
Length: 496784 (485K) [application/
Saving to: ‘zimbra-
100%[==
2015-11-03 13:11:04 (1.62 MB/s) - ‘zimbra-
Status changed to 'Confirmed' because the bug affects multiple users.