failed to do /cdromupgrade on a 7.10 server.

Bug #222895 reported by Pan, SZ
16
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Undecided
Michael Vogt
Hardy
Fix Released
Undecided
Michael Vogt

Bug Description

Binary package hint: update-manager

TEST CASE:
1. install gutsy server
2. insert a 8.04 alternate server CD
3. mount /cdrom
4. sh /cdrom/cdromupgrade
5. watch it fail

6. umount /cdrom
6. get a new daily alternate 8.04.1 server CD
7. repeat step 3, 4
8. watch is succeed

downloaded 8.04-server-i386 cd image, mount it on a 7.10 server and run sudo /cdrom/cdromupgrade.
It seems that the upgrade does not support ubuntu-server?

--- This is the message given by cdromupgrade:
A unresolvable problem occurred while calculating the upgrade.

This can be caused by:
* Upgrading to a pre-release version of Ubuntu
* Running the current pre-release version of Ubuntu
* Unofficial software packages not provided by Ubuntu

If none of this applies, then please report this bug against the
'update-manager' package and include the files in
/var/log/dist-upgrade/ in the bugreport.

--- this is the result of tail /var/log/dist-upgrade/apt.log:
Can't guess meta-package

Your system does not contain a ubuntu-desktop, kubuntu-desktop,
xubuntu-desktop or edubuntu-desktop package and it was not possible
to detect which version of Ubuntu you are running.
Please install one of the packages above first using synaptic or
apt-get before proceeding.

Log time: 2008-04-27 11:25:26.289873

--- this is the result of tail /var/log/dist-upgrade/main.log:
2008-04-27 11:25:17,452 DEBUG none of the '['ubuntu-desktop', 'kubuntu-desktop',
 'edubuntu-desktop', 'xubuntu-desktop', 'ubuntustudio-desktop', 'ichthux-desktop
', 'mythbuntu-desktop', 'gobuntu-desktop']' meta-pkgs installed
2008-04-27 11:25:17,472 ERROR Dist-upgrade failed: 'Can't upgrade required meta-
packages'

Revision history for this message
Pan, SZ (pan.sz) wrote :
Revision history for this message
Wally Valters (wvalters) wrote :

Same issue here, cannot upgrade a machine without an installed desktop meta-package. You can workaround by using apt-cdrom then doing the network upgrade, but it would be nice to upgrade via the cd only then get the updates off the net that were needed.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

The support for cdrom upgrade with the server CD needs work, I fixed that in bzr and it will be part of the next upload.

Changed in update-manager:
assignee: nobody → mvo
milestone: none → ubuntu-8.04.1
status: New → Fix Committed
Revision history for this message
Michael Vogt (mvo) wrote :

Here is the diff for review by ubuntu-sru:

=== modified file 'DistUpgrade/DistUpgradeController.py'
--- DistUpgrade/DistUpgradeController.py 2008-04-29 08:15:28 +0000
+++ DistUpgrade/DistUpgradeController.py 2008-04-29 13:01:28 +0000
@@ -139,6 +139,12 @@
         self.serverMode = False
         if self.options and self.options.mode == "server":
             self.serverMode = True
+ # if we upgrade from a server CD we run in server mode
+ if cdrompath:
+ p = os.path.join(cdrompath, ".disk","info")
+ if (os.path.exists(p) and
+ open(p).readline().startswith("Ubuntu-Server ")):
+ self.serverMode = True

         # the configuration
         self.config = DistUpgradeConfig(datadir)

=== modified file 'DistUpgrade/cdromupgrade'
--- DistUpgrade/cdromupgrade 2008-02-29 22:24:31 +0000
+++ DistUpgrade/cdromupgrade 2008-04-29 13:08:57 +0000
@@ -29,4 +29,4 @@
     echo "Could not find the upgrade application in the archive, exiting"
     exit 1
 fi
-$TMPDIR/$CODENAME --cdrom "$cddirname"
+$TMPDIR/$CODENAME --cdrom "$cddirname" $@

=== modified file 'debian/changelog'
--- debian/changelog 2008-04-29 10:51:24 +0000
+++ debian/changelog 2008-04-29 13:09:40 +0000
@@ -1,3 +1,14 @@
+update-manager (1:0.87.26) hardy-proposed; urgency=low
+
+ * DistUpgrade/DistUpgradeController.py:
+ - run in server mode on a server CD (LP: #222895)
+ * DistUpgrade/cdromupgrade:
+ - allow passing of arguments (like --mode=server)
+ to better support server upgrades with the dvd
+ (LP: #222895)
+
+ --
+
 update-manager (1:0.87.25) hardy-proposed; urgency=low

   * DistUpgrade/DistUpgradeApport.py:

Revision history for this message
Steve Langasek (vorlon) wrote :

Ack for hardy-proposed, please upload.

Steve Langasek (vorlon)
Changed in update-manager:
status: New → Triaged
Michael Vogt (mvo)
description: updated
Revision history for this message
Martin Pitt (pitti) wrote :

Although not all fixed bugs have been verified, four tests from Brian showed that update-manager is still able to upgrade from dapper and gutsy, and fixed some bugs. Due to the urgency of some bugs I have copied this to hardy-updates now.

Changed in update-manager:
status: Fix Committed → Fix Released
Michael Vogt (mvo)
Changed in update-manager:
assignee: nobody → mvo
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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