ubuntu-support-status throws exeption No date tag found (regression)
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | python-apt (Ubuntu) |
Medium
|
Brian Murray | ||
| | Trusty |
Medium
|
Brian Murray | ||
| | Wily |
Medium
|
Brian Murray | ||
Bug Description
Test Case
---------
1) Run ubuntu-
2) Install python3-apt from the -proposed repository
3) Run ubuntu-
Description: Ubuntu 14.04.3 LTS
Release: 14.04
update-
Since the last update ubuntu-
Traceback (most recent call last):
File "/usr/bin/
pkg.name, support_tag)
File "/usr/bin/
raise Exception("No date tag found")
Exception: No date tag found
| Changed in update-manager (Ubuntu): | |
| assignee: | nobody → Brian Murray (brian-murray) |
| Brian Murray (brian-murray) wrote : | #2 |
Could you try running the attached version of ubuntu-
| Changed in update-manager (Ubuntu): | |
| status: | Confirmed → Incomplete |
| importance: | Undecided → Medium |
| tags: | added: trusty |
| Andrei Borzenkov (arvidjaar-s) wrote : | #3 |
bor@bor-
bor@bor-
Traceback (most recent call last):
File "/tmp/ubuntu-
from UpdateManager.
ImportError: No module named UpdateManager.
bor@bor-
Some package missing?
| Morty (morty) wrote : | #4 |
I can confirm Andrei.
| Brian Murray (brian-murray) wrote : | #5 |
Ah, let's try setting the PYTHONPATH then e.g.:
[ 10:35AM 10113 ] [ bdmurray@
$ ./ubuntu-
Traceback (most recent call last):
File "./ubuntu-
from UpdateManager.
ImportError: No module named UpdateManager.
[ 10:35AM 10114 ] [ bdmurray@
$ PYTHONPATH=
| Andrei Borzenkov (arvidjaar-s) wrote : | #6 |
bor@bor-
Traceback (most recent call last):
File "/tmp/ubuntu-
(still_
File "/tmp/ubuntu-
raise Exception("No date tag found for %s" % releasef)
Exception: No date tag found for /var/lib/
bor@bor-
| Andrei Borzenkov (arvidjaar-s) wrote : | #7 |
bor@bor-
ls: cannot access /var/lib/
bor@bor-
-rw-r--r-- 1 root root 64439 Oct 13 06:28 /var/lib/
bor@bor-
System came preinstalled on this Dell if it matters. I did update it and installed quite a bit since then though.
| Morty (morty) wrote : | #8 |
Same here:
PYTHONPATH=
Traceback (most recent call last):
File "./ubuntu-
(still_
File "./ubuntu-
raise Exception("No date tag found for %s" % releasef)
Exception: No date tag found for /var/lib/
$ PYTHONPATH=
Traceback (most recent call last):
File "/home/
(still_
File "/home/
raise Exception("No date tag found for %s" % releasef)
Exception: No date tag found for None
$
| Steve Beattie (sbeattie) wrote : | #10 |
This is also occurring on wily, see bug 1506510.
| tags: | added: wily |
| Steve Beattie (sbeattie) wrote : | #11 |
Here's what I see on wily when making the following change:
--- /usr/bin/
+++ ./ubuntu-
@@ -48,7 +48,7 @@
# check the release date and show support information
# based on this
if not time_t:
- raise Exception("No date tag found")
+ raise Exception("No date tag found for %s on package %s" % (releasef, pkgname))
release_date = datetime.
now = datetime.
$ python3 ./ubuntu-
Traceback (most recent call last):
File "./ubuntu-
pkg.name, support_tag)
File "./ubuntu-
raise Exception("No date tag found for %s on package %s" % (releasef, pkgname))
Exception: No date tag found for /var/lib/
There is no /var/lib/
Looking at https:/
| Steve Beattie (sbeattie) wrote : | #12 |
Note that on a trusty host I have where ubuntu-
-rw-r--r-- 1 root root 64441 Oct 22 23:53 /var/lib/
-rw-r--r-- 1 root root 63459 Oct 1 23:28 /var/lib/
The latter being outdated with respect to the former. apt should probably be cleaning these out.
| Launchpad Janitor (janitor) wrote : | #13 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in python-apt (Ubuntu): | |
| status: | New → Confirmed |
| Julian Andres Klode (juliank) wrote : | #14 |
Not a bug in python-apt, but in the update-manager, so I'm marking the python-apt task as invalid.
| Changed in python-apt (Ubuntu): | |
| status: | Confirmed → Invalid |
| Steve Beattie (sbeattie) wrote : | #15 |
Julian, sorry, but python-apt in get_release_
diff -Nru python-
--- python-
+++ python-
@@ -82,7 +82,9 @@
- name = (apt_pkg.
- "dists_%s_Release" % metaindex.dist)
- return dirname + name
+ for relfile in ['Release', 'InRelease']:
+ name = (apt_pkg.
+ "dists_%s_%s" % (metaindex.dist, relfile))
+ if os.path.
+ return dirname + name
return None
| Steve Beattie (sbeattie) wrote : | #16 |
Here it is in patch form. Note that it doesn't entirely address the issue as passing the _InRelease file to python-apt's get_release_
| Changed in python-apt (Ubuntu): | |
| status: | Invalid → Confirmed |
The attachment "python-
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]
| tags: | added: patch |
| Julian Andres Klode (juliank) wrote : | #18 |
OK, that makes sense. Sorry, I did not see that from the bug report and did not remember apt.utils existing.
To ignore the signature, we need to open the InRelease file using apt_pkg.
| Changed in python-apt (Ubuntu): | |
| importance: | Undecided → Medium |
| MegaBrutal (qbu6to) wrote : | #19 |
Same here:
$ ubuntu-
Traceback (most recent call last):
File "/usr/bin/
pkg.name, support_tag)
File "/usr/bin/
raise Exception("No date tag found")
Exception: No date tag found
Line numbers are different, but I think it's the same error, because the same exception is raised, and those line numbers don't differ too much... I guess I have a different version of the script which still has the reported bug.
| Changed in update-manager (Ubuntu): | |
| status: | Incomplete → Confirmed |
| Brian Murray (brian-murray) wrote : | #20 |
I've worked on a patch for this but it doesn't look like open_maybe_
| Brian Murray (brian-murray) wrote : | #21 |
Thanks for looking into this Steve. This is a complete patch which resolves the issue for me on Xenial.
| tags: | added: xenial |
| Changed in python-apt (Ubuntu): | |
| assignee: | nobody → Brian Murray (brian-murray) |
| Steve Beattie (sbeattie) wrote : | #22 |
Brian, this patch both works for and looks good to me (not sure what upstream thinks of it). Thanks.
| Beverley (bev-4) wrote : | #23 |
How do I apply this patch?
| Julian Andres Klode (juliank) wrote : | #24 |
There's no real point doing that:
+ if path.endswith(
+ data = os.fdopen(
+ else:
+ data = open(path)
Just use the open_maybe_
+ for relfile in ['Release', 'InRelease']:
I'd prefer that the other way around.
Would be nice if you could send a git commit without the changelog entry upstream, then we can apply it to the git repository. Best with a commit message like this:
apt/utils.py: changes to parse InRelease files [or better something starting with a verb]
<LONG DESCRIPTION>
LP: #1503979
| Julian Andres Klode (juliank) wrote : | #25 |
This bug has been fixed upstream in commit d18826071a2a7fd
The changelog message is:
commit d18826071a2a7fd
Author: Julian Andres Klode <email address hidden>
Date: Thu Nov 26 17:26:21 2015 +0100
apt.utils: Support parsing InRelease files
Do not only look at Release files, but look at InRelease files
as well. Change the code to open Release and InRelease files
with apt_pkg.
the signature if it exists.
LP: #1503979
Notes:
Original patch by Brian Murray <email address hidden>
| Julian Andres Klode (juliank) wrote : | #26 |
This is fixed in upstream release 1.1.0~beta1, which is a stable release accompanying the APT 1.1 release.
It's a beta because it still uses some deprecated code...
| V字龍(Vdragon) (vdragon) wrote : | #27 |
Hi, not really relate to the bug but my apport window listed an invalid duplicate bug #1509643, please checkout the attatched screenshot:
| Changed in update-manager (Ubuntu): | |
| status: | Confirmed → Invalid |
| Andrei Borzenkov (arvidjaar-s) wrote : | #28 |
Why this bug suddenly became Invalid?
| Julian Andres Klode (juliank) wrote : | #29 |
Only the Update manager task became invalid, the python-apt task is still confirmed.
This is fixed in proposed already with python-apt 1.1 beta 1.
| Brian Murray (brian-murray) wrote : | #30 |
Julian - given that open_maybe_
| Julian Andres Klode (juliank) wrote : | #31 |
According to git, the function was first shipped in APT 0.9.8, so you should be able to just apply
to trusty's python-apt , and maybe:
| Changed in update-manager (Ubuntu Trusty): | |
| status: | New → Invalid |
| Changed in update-manager (Ubuntu Wily): | |
| status: | New → Invalid |
| Changed in python-apt (Ubuntu Trusty): | |
| assignee: | nobody → Brian Murray (brian-murray) |
| Changed in python-apt (Ubuntu Wily): | |
| assignee: | nobody → Brian Murray (brian-murray) |
| Changed in python-apt (Ubuntu): | |
| status: | Confirmed → Triaged |
| Changed in python-apt (Ubuntu Trusty): | |
| status: | New → In Progress |
| Changed in python-apt (Ubuntu Wily): | |
| status: | New → In Progress |
| Changed in python-apt (Ubuntu Trusty): | |
| importance: | Undecided → Medium |
| Changed in python-apt (Ubuntu Wily): | |
| importance: | Undecided → Medium |
| description: | updated |
| Brian Murray (brian-murray) wrote : | #32 |
I've upload the fix for this to the SRU queue for Trusty and Wily. The Trusty changes also included a fix for a test that is currently failing.
Hello Morty, or anyone else affected,
Accepted python-apt into trusty-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in python-apt (Ubuntu Trusty): | |
| status: | In Progress → Fix Committed |
| tags: | added: verification-needed |
| Steve Langasek (vorlon) wrote : | #34 |
Hello Morty, or anyone else affected,
Accepted python-apt into wily-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in python-apt (Ubuntu Wily): | |
| status: | In Progress → Fix Committed |
| no longer affects: | update-manager (Ubuntu) |
| no longer affects: | update-manager (Ubuntu Trusty) |
| no longer affects: | update-manager (Ubuntu Wily) |
| Mathew Hodson (mathew-hodson) wrote : | #35 |
Fixed with python-apt (0.9.3.5ubuntu2) on Trusty.
$ ubuntu-
Support status summary of 'mathew-
You have 220 packages (10.0%) supported until February 2015 (9m)
You have 1879 packages (85.2%) supported until May 2019 (5y)
You have 12 packages (0.5%) supported until September 2016 (9m)
You have 36 packages (1.6%) supported until May 2017 (3y)
You have 15 packages (0.7%) that can not/no longer be downloaded
You have 43 packages (2.0%) that are unsupported
Run with --show-unsupported, --show-supported or --show-all to see more details
$ apt list python-apt
Listing... Done
python-
| tags: |
added: verification-done-trusty verification-needed-wily removed: verification-needed |
| Steve Beattie (sbeattie) wrote : | #36 |
I reproduced the issue with python-apt 1.0.1ubuntu0.1 in Wily, and can confirm that the proposed version 1.0.1ubuntu0.1 solves the issue.
$ ubuntu-
Support status summary of 'wily-amd64':
You have 2237 packages (85.3%) supported until July 2016 (9m)
You have 4 packages (0.2%) supported until August 2016 (9m)
You have 107 packages (4.1%) that can not/no-longer be downloaded
You have 276 packages (10.5%) that are unsupported
Run with --show-unsupported, --show-supported or --show-all to see more details
$ apt list python3-apt -a
Listing... Done
python3-
python3-apt/wily 1.0.1build1 amd64
| tags: |
added: verification-done-wily removed: verification-needed-wily |
| Launchpad Janitor (janitor) wrote : | #37 |
This bug was fixed in the package python-apt - 1.1.0~beta1
---------------
python-apt (1.1.0~beta1) unstable; urgency=medium
* Upload to unstable
[ Michael Vogt ]
* Do not show pulse progress when the output is not a tty
* Fix build-dependencies parsing from debian/control
* Print the failed function name in PyPkgManager::res()
[ Julian Andres Klode ]
* test_paths.py: Catch the IndexRecords warning
* Release 1.0.1
* changelog: Fix up the uploader name and close Barry's bug
* doc: tutorials: contribution: Rewrite for git and other changes
(Closes: #802084)
* Build with cleaner headers
* Use pkgCache:
* apt.utils: Support parsing InRelease files (LP: #1503979)
Thanks to Brian Murray <email address hidden> for the initial patch.
* apt.utils: Open the release files using a 'with' statement
[ Jakub Wilk ]
* apt/debfile.py: Fix typo
* apt/debfile.py: Fix typo
[ Martin Pitt ]
* ./data/
* doc/source/
-- Julian Andres Klode <email address hidden> Thu, 26 Nov 2015 17:32:28 +0100
| Changed in python-apt (Ubuntu): | |
| status: | Triaged → Fix Released |
| Launchpad Janitor (janitor) wrote : | #38 |
This bug was fixed in the package python-apt - 1.0.1ubuntu0.1
---------------
python-apt (1.0.1ubuntu0.1) wily; urgency=medium
* Do not only look at Release files, but look at InRelease files as well.
Change the code to open Release and InRelease files with
apt_
it exists. (LP: #1503979)
-- Brian Murray <email address hidden> Wed, 02 Dec 2015 10:21:45 -0800
| Changed in python-apt (Ubuntu Wily): | |
| status: | Fix Committed → Fix Released |
The verification of the Stable Release Update for python-apt has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
| Launchpad Janitor (janitor) wrote : | #40 |
This bug was fixed in the package python-apt - 0.9.3.5ubuntu2
---------------
python-apt (0.9.3.5ubuntu2) trusty-proposed; urgency=medium
* Do not only look at Release files, but look at InRelease files as well.
Change the code to open Release and InRelease files with
apt_
it exists. (LP: #1503979)
* tests/test_auth.py: update for gnupg 1.4.18 (Closes: #755342)
-- Brian Murray <email address hidden> Wed, 02 Dec 2015 10:51:58 -0800
| Changed in python-apt (Ubuntu Trusty): | |
| status: | Fix Committed → Fix Released |
| Andy Brody (abrody) wrote : | #41 |
This also affects vivid, yes? It seems like many people will be running this on vivid as it approaches end of life.
| Svivi (svivi) wrote : | #42 |
I can confirm that Vivid is still affected.
$ apt-cache policy python-apt
python-apt:
Telepítve: 0.9.3.11build1
Jelölt: 0.9.3.11build1
Verziótáblázat:
*** 0.9.3.11build1 0
500 http://
100 /var/lib/
$ ubuntu-
Traceback (most recent call last):
File "/usr/bin/
pkg.name, support_tag)
File "/usr/bin/
raise Exception("No date tag found")
Exception: No date tag found
| Brian Murray (brian-murray) wrote : | #43 |
Vivid reaches End of Life this month, so I'm not certain it is worth the effort to SRU this there.
| Denis Gubanov (v12aml) wrote : | #44 |
root@controller:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
root@controller:~# apt-cache policy python-apt python3-apt update-manager-core
python-apt:
Installed: 0.9.3.5ubuntu2
Candidate: 0.9.3.5ubuntu2
Version table:
*** 0.9.3.5ubuntu2 0
500 http://
100 /var/lib/
0.9.3.5 0
500 http://
python3-apt:
Installed: 0.9.3.5ubuntu2
Candidate: 0.9.3.5ubuntu2
Version table:
*** 0.9.3.5ubuntu2 0
500 http://
100 /var/lib/
0.9.3.5 0
500 http://
update-
Installed: 1:0.196.14
Candidate: 1:0.196.14
Version table:
*** 1:0.196.14 0
500 http://
100 /var/lib/
1:0.196.11 0
500 http://
root@controller:~# ubuntu-
Traceback (most recent call last):
File "/usr/bin/
pkg.name, support_tag)
File "/usr/bin/
raise Exception("No date tag found")
Exception: No date tag found
root@controller:~#
| Anthony J Burton (aburton-v) wrote : | #45 |
This does not appear to be fixed in either Trusty or Wily.
me@a-trusty-
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
me@a-trusty-
python-apt:
Installed: 0.9.3.5ubuntu2
Candidate: 0.9.3.5ubuntu2
Version table:
*** 0.9.3.5ubuntu2 0
500 http://
100 /var/lib/
0.9.3.5 0
500 http://
python3-apt:
Installed: 0.9.3.5ubuntu2
Candidate: 0.9.3.5ubuntu2
Version table:
*** 0.9.3.5ubuntu2 0
500 http://
100 /var/lib/
0.9.3.5 0
500 http://
update-
Installed: 1:0.196.14
Candidate: 1:0.196.14
Version table:
*** 1:0.196.14 0
500 http://
100 /var/lib/
1:0.196.11 0
500 http://
me@a-trusty-
Traceback (most recent call last):
File "/usr/bin/
pkg.name, support_tag)
File "/usr/bin/
raise Exception("No date tag found")
Exception: No date tag found
## and on wily
me@a-wily-system:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
me@a-wily-system:~$ apt-cache policy python-apt python3-apt update-manager-core
python-apt:
Installed: 1.0.1build1
Candidate: 1.0.1build1
Version table:
*** 1.0.1build1 0
500 http://
100 /var/lib/
python3-apt:
Installed: 1.0.1build1
Candidate: 1.0.1build1
Version table:
*** 1.0.1build1 0
500 http://
100 /var/lib/
update-
Installed: 1:15.10.3
Candidate: 1:15.10.3
Version table:
*** 1:15.10.3 0
500 http://
100 /var/lib/
me@a-wily-system:~$ ubuntu-
Traceback (most recent call last):
File "/usr/bin/
pkg.name, support_tag)
File "/usr/bin/
raise Exception("No date tag found")
Exception: No date tag found
| Serhiy Zahoriya (xintx-ua) wrote : | #46 |
Not fixed in python-apt 0.9.3.5ubuntu2
$ sudo apt install python-apt
...
Get:1 http://
...
Unpacking python-apt (0.9.3.5ubuntu2) over (0.9.3.5ubuntu1) ...
Setting up python-apt (0.9.3.5ubuntu2) ...
$ ubuntu-
Traceback (most recent call last):
File "/usr/bin/
pkg.name, support_tag)
File "/usr/bin/
raise Exception("No date tag found")
Exception: No date tag found
| Serhiy Zahoriya (xintx-ua) wrote : | #47 |
Fixed on Trusty after upgrading python3-apt


Status changed to 'Confirmed' because the bug affects multiple users.