update manager doesn't find 12.10 upgrade

Bug #1080131 reported by Paul Abrahams
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
update-manager-core (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm running Kubuntu 12.04.1 on three machines. On none of them can I upgrade to 12.10. I never see the notifier, and apt-get dist-upgrade finds nothing. Here's what demonstrates the point:

root@morchella:/home/pa/.config/synaptiks# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS"
root@morchella:/home/pa/.config/synaptiks# do-release-upgrade -c
Checking for a new Ubuntu release
No new release found

I've set the upgrade prompt to Normal; that doesn't help at all.

All three machines have their software sources list created by Ubuntu Software Sources, so there's a lot of stuff on it.

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1080131/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Paul Abrahams (abrahams) wrote :

Specified the package (update-manager-core) as requested. I thought I had done that when I submitted the bug, but apparently I didn't succeed.

affects: ubuntu → update-manager-core (Ubuntu)
Revision history for this message
Paul Abrahams (abrahams) wrote :

See also bug 1080131, which was reported for update-manager.

Revision history for this message
Paul Abrahams (abrahams) wrote :

Sorry, that should have been bug 1024131.

Revision history for this message
Brian Murray (brian-murray) wrote :

Could you please also add the contents of /etc/update-manager/release-upgrades.conf? Thanks in advance.

Revision history for this message
Paul Abrahams (abrahams) wrote :

This is very interesting!!

pa@morchella:~$ cat /etc/update-manager/release-upgrades.conf
cat: /etc/update-manager/release-upgrades.conf: No such file or directory
pa@morchella:~$ ls -R /etc/update-manager
/etc/update-manager:
meta-release release-upgrades release-upgrades.d

/etc/update-manager/release-upgrades.d:
pa@morchella:~$

Revision history for this message
Paul Abrahams (abrahams) wrote :

What program is responsible for installing release-upgrades.conf? It wasn't in any package that I thought to look at.

Revision history for this message
Brian Murray (brian-murray) wrote : Re: [Bug 1080131] Re: update manager doesn't find 12.10 upgrade

On Mon, Nov 19, 2012 at 10:42:53PM -0000, Paul Abrahams wrote:
> This is very interesting!!
>
> pa@morchella:~$ cat /etc/update-manager/release-upgrades.conf
> cat: /etc/update-manager/release-upgrades.conf: No such file or directory
> pa@morchella:~$ ls -R /etc/update-manager
> /etc/update-manager:
> meta-release release-upgrades release-upgrades.d

Ah, my mistake. The contents of /etc/update-manager/release-upgrades is
what we want.

Revision history for this message
Paul Abrahams (abrahams) wrote :

Here it is, but I don't think you'll find any gold in them thar' hills:

root@morchella:/home/pa# cat /etc/update-manager/release-upgrades
# Default behavior for the release upgrader.

[DEFAULT]
# Default prompting behavior, valid options:
#
# never - Never check for a new release.
# normal - Check to see if a new release is available. If more than one new
# release is found, the release upgrader will attempt to upgrade to
# the release that immediately succeeds the currently-running
# release.
# lts - Check to see if a new LTS release is available. The upgrader
# will attempt to upgrade to the first LTS release available after
# the currently-running one. Note that this option should not be
# used if the currently-running release is not itself an LTS
# release, since in that case the upgrader won't be able to
# determine if a newer release is available.
prompt=normal

Revision history for this message
Paul Abrahams (abrahams) wrote :

This is what I should have put into the report:

root@morchella:/home/pa# do-release-upgrade
Checking for a new Ubuntu release
No new release found

The -c confused the issue.

Revision history for this message
Paul Abrahams (abrahams) wrote :

I wonder -- is do-release-upgrade even affected by the prompt? Or is that effect limited to the programs that actually display the prompt choice, such as synaptic and muon-updater?

Revision history for this message
Brian Murray (brian-murray) wrote :

On Tue, Nov 20, 2012 at 03:28:19PM -0000, Paul Abrahams wrote:
> I wonder -- is do-release-upgrade even affected by the prompt? Or is
> that effect limited to the programs that actually display the prompt
> choice, such as synaptic and muon-updater?

Try 'do-release-upgrade -d'.

Revision history for this message
Paul Abrahams (abrahams) wrote :

Voila!

pa@morchella:~$ do-release-upgrade -d
Checking for a new Ubuntu release
No new release found

I also tried removing update-manager-core completely and reinstalling it in the hope that some troublesome file might be replaced. No luck with that either.

I think the solution lies in understanding how update-manager-core goes about deciding if there is indeed a new release available, and I haven't been able to find that out.

Revision history for this message
Paul Abrahams (abrahams) wrote :
Download full text (7.3 KiB)

A clue:

The file /usr/lib/python2.7/dist-packages/UpdateManager/Core/DistUpgradeFetcherCore.py seems to be where the decision-making happens. And it seems to depend in very particular ways on the contents of /etc/apt/sources.list. Unfortunately I just don't know enough about the context to analyze this any further.

It does seem that if /etc/apt/sources.list is not quite in the form that this program is expecting, the upgrade won't be found. But I can't tell just what it's looking for.

if it helps, here's the contents of my /etc/apt/sources.list:

#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################

###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse

###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu precise partner
deb-src http://archive.canonical.com/ubuntu precise partner

###### Ubuntu Extras Repo
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main

##############################################################
##################### UNOFFICIAL REPOS ######################
##############################################################

###### 3rd Party Binary Repos

#### Audacity - http://audacity.sourceforge.net/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BB901940
deb http://ppa.launchpad.net/audacity-team/daily/ubuntu precise main

#### Flacon - http://kde-apps.org/content/show.php?content=113388
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F2A61FE5
deb http://ppa.launchpad.net/flacon/ppa/ubuntu precise main

#### GetDeb - http://www.getdeb.net
## Run this command: wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -
deb http://archive.getdeb.net/ubuntu precise-getdeb apps

#### Gimp - https://launchpad.net/~otto-kesselgulasch/+archive/gimp
## Run this command: sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 614C4B38
deb http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu precise main

#### GNOME3 extra apps - https://launchpad.net/~gnome3-team/+archive/gnome3
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B1510FD
deb http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu precise main

#### GNUzilla and IceCat - http://www.gnu.org/software/gnuzill...

Read more...

Revision history for this message
Paul Abrahams (abrahams) wrote :

I think I might have been looking at the wrong function to isolate the bug. I now think the problem lies in this:

/usr/lib/python2.7/dist-packages/DistUpgrade/MetaRelease.py

but unfortunately I can't figure out how it works.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in update-manager-core (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.