2016-09-20 14:48:27 |
Louis Bouchard |
bug |
|
|
added bug |
2016-09-20 14:48:42 |
Louis Bouchard |
nominated for series |
|
Ubuntu Xenial |
|
2016-09-20 14:48:42 |
Louis Bouchard |
bug task added |
|
apt (Ubuntu Xenial) |
|
2016-09-20 14:48:42 |
Louis Bouchard |
nominated for series |
|
Ubuntu Trusty |
|
2016-09-20 14:48:42 |
Louis Bouchard |
bug task added |
|
apt (Ubuntu Trusty) |
|
2016-09-20 14:48:55 |
Louis Bouchard |
apt (Ubuntu): status |
New |
Invalid |
|
2016-09-20 14:49:01 |
Louis Bouchard |
apt (Ubuntu Trusty): status |
New |
Invalid |
|
2016-09-20 14:49:04 |
Louis Bouchard |
apt (Ubuntu Xenial): status |
New |
In Progress |
|
2016-09-20 14:49:08 |
Louis Bouchard |
apt (Ubuntu Xenial): importance |
Undecided |
Medium |
|
2016-09-20 14:49:10 |
Louis Bouchard |
apt (Ubuntu Xenial): assignee |
|
Louis Bouchard (louis-bouchard) |
|
2016-09-23 09:41:33 |
Louis Bouchard |
apt (Ubuntu Trusty): status |
Invalid |
In Progress |
|
2016-09-23 09:41:37 |
Louis Bouchard |
apt (Ubuntu Xenial): status |
In Progress |
Invalid |
|
2016-09-23 09:41:40 |
Louis Bouchard |
apt (Ubuntu Trusty): importance |
Undecided |
Medium |
|
2016-09-23 09:41:43 |
Louis Bouchard |
apt (Ubuntu Xenial): importance |
Medium |
Undecided |
|
2016-09-23 09:41:47 |
Louis Bouchard |
apt (Ubuntu Trusty): assignee |
|
Louis Bouchard (louis-bouchard) |
|
2016-09-23 09:41:49 |
Louis Bouchard |
apt (Ubuntu Xenial): assignee |
Louis Bouchard (louis-bouchard) |
|
|
2016-09-23 13:13:12 |
Louis Bouchard |
description |
When using the mirror://mirrors.ubuntu.com/mirrors.txt functionality on Trusty, if the download of the index file fails, apt will not retry on another archive listed in mirrors.txt and will fail.
Running the following on Trusty leads to the following result :
sudo apt-get update -qq
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-security/universe/binary-amd64/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-security/main/binary-i386/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-security/restricted/binary-i386/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-security/universe/binary-i386/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-updates/main/binary-amd64/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-updates/restricted/binary-amd64/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-updates/universe/binary-amd64/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-updates/main/binary-i386/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-updates/restricted/binary-i386/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-updates/universe/binary-i386/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
E: Some index files failed to download. They have been ignored, or old ones used instead.
The same configuration works correctly on Xenial |
[SRU justification]
This fix is needed to allow correct archive mirroring functionality.
[Impact]
Without this fix, apt-get update and other apt commands requiring Package file access may fail when there are remote transient errors due to archive availability.
[Fix]
Use std::npos instead of 0 to test presence of "Translation" in ShortDesc.
[Test Case]
1) Setup three containers (archive1, archive2, archive3) with a reprepro configuration mirroring the ubuntu restricted archive (to save on space and time to replicate).
2) Add an apache webserver serving the reprepro archive over http on each container
3) Add the following mirrors.txt file to one of the webserver (archive1):
$ cat /var/www/html/mirrors.txt
http://archive1/ubuntu/
http://archive2/ubuntu/
http://archive3/ubuntu/
4) Add a client container. Add the IP adresses of the archive[1-3] containers to /etc/hosts. Alias the archive1 address to archive.ubuntu.com similar to the following :
$ cat /etc/hosts
127.0.0.1 localhost
10.0.4.182 archive1 mirrors.ubuntu.com
10.0.4.127 archive2
10.0.4.193 archive3
5) Add the following line to the /etc/apt/sources.list, commenting all other entries :
$ cat /etc/apt/sources.list
#deb http://archive.ubuntu.com/ubuntu trusty main
#deb http://archive.ubuntu.com/ubuntu trusty-updates main
#deb http://archive.ubuntu.com/ubuntu trusty universe
#deb http://archive.ubuntu.com/ubuntu trusty-updates universe
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty restricted
6) Run
$ apt-get -oDebug::Acquire::mirror=true update
The log should display for the Packages file :
MirrorMethod::Fetch()
Failure to get http://10.0.4.193/ubuntu//dists/trusty/restricted/binary-amd64/Packages
Err http://10.0.4.193/ubuntu/ trusty/restricted amd64 Packages
With the fix you will see :
MirrorMethod::Fetch()
Failure to get http://10.0.4.193/ubuntu//dists/trusty/restricted/binary-amd64/Packages.gz
TryNextMirror: http://10.0.4.127/ubuntu//dists/trusty/restricted/binary-amd64/Packages.gz
[Regression]
None expected. Worse that can happen is a retry when none was done previously.
[Original description of the problem]
When using the mirror://mirrors.ubuntu.com/mirrors.txt functionality on Trusty, if the download of the index file fails, apt will not retry on another archive listed in mirrors.txt and will fail.
Running the following on Trusty leads to the following result :
sudo apt-get update -qq
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-security/universe/binary-amd64/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-security/main/binary-i386/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-security/restricted/binary-i386/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-security/universe/binary-i386/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-updates/main/binary-amd64/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-updates/restricted/binary-amd64/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-updates/universe/binary-amd64/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-updates/main/binary-i386/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-updates/restricted/binary-i386/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
W: Failed to fetch mirror://mirrors.ubuntu.com/mirrors.txt/dists/trusty-updates/universe/binary-i386/Packages 404 Not Found [Mirror: http://ftp.availo.se/ubuntu/]
E: Some index files failed to download. They have been ignored, or old ones used instead.
The same configuration works correctly on Xenial |
|
2016-09-27 09:03:52 |
Martin Pitt |
apt (Ubuntu Trusty): status |
In Progress |
Fix Committed |
|
2016-09-27 09:03:55 |
Martin Pitt |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2016-09-27 09:03:58 |
Martin Pitt |
bug |
|
|
added subscriber SRU Verification |
2016-09-27 09:04:01 |
Martin Pitt |
tags |
|
verification-needed |
|
2016-09-27 11:22:11 |
Mathew Hodson |
bug task deleted |
apt (Ubuntu Xenial) |
|
|
2016-09-27 11:22:18 |
Mathew Hodson |
apt (Ubuntu): status |
Invalid |
Fix Released |
|
2016-09-27 11:22:20 |
Mathew Hodson |
apt (Ubuntu): importance |
Undecided |
Medium |
|
2016-10-12 11:49:56 |
Louis Bouchard |
tags |
verification-needed |
verification-done |
|
2016-10-17 03:59:44 |
Martin Pitt |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2016-10-17 04:00:08 |
Launchpad Janitor |
apt (Ubuntu Trusty): status |
Fix Committed |
Fix Released |
|