main.log doesn't always report right version of python-apt
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Bug Description
This may actually be a bug with python-apt or apt but I noticed this when verifying bug 1286161.
"Strangely looking at main.log it shows the wrong version of apt being used but installed packages in the apt-clone file shows the correct version. Testing what the release upgrader uses exhibits the same behaviour."
Setting up apt (0.9.9.1~ubuntu3.1) ...
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <email address hidden>" not changed
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key <email address hidden>" not changed
gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <email address hidden>" not changed
gpg: key EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) <email address hidden>" not changed
gpg: Total number processed: 4
gpg: unchanged: 4
(saucy-
0.9.9.1~ubuntu1
Related branches
| Changed in ubuntu-release-upgrader (Ubuntu): | |
| importance: | Undecided → High |
| tags: | added: saucy |
| Changed in ubuntu-release-upgrader (Ubuntu): | |
| assignee: | nobody → Shafi Ur Rehman (shafi-khattak66) |
| status: | New → Confirmed |
| Changed in ubuntu-release-upgrader (Ubuntu): | |
| status: | Triaged → In Progress |
| tags: | added: xenial |

This is actually because apt.apt_pkg.VERSION isn't always updated. Instead of using that we should query the cache to figure out what version of apt is installed.