leeyee
April 27th, 2008, 09:02 AM
Hi guys,
When upgrading from 7.10 to 8.04 using 8.04 alternate CD, it gave me error info:
Could not calculate the upgrade
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.
I've done md5sum check, and sure the iso is OK. I just did as follows:
1, Mount iso using
sudo mount -o loop ubuntu-8.04-alternate-i386.iso /cdrom
2, Alt+F2, and type in
gksu "sh /cdrom/cdromupgrade"
3, Update Manager pop up correctly, and "Preparing upgrade"
4, Update Manager asked me whether include latest update from Internet, I chose "No"
5, When calculating changes, Update Manager pop up a error screen contains info i gave above.
Here is my /var/log/dist-upgrade/main.log file:
2008-04-27 15:50:40,659 INFO release-upgrader version '0.87.24' started
2008-04-27 15:50:41,060 DEBUG Using 'DistUpgradeViewGtk' view
2008-04-27 15:50:41,131 DEBUG enable dpkg --force-overwrite
2008-04-27 15:50:41,222 DEBUG lsb-release: 'gutsy'
2008-04-27 15:50:41,223 DEBUG _pythonSymlinkCheck run
2008-04-27 15:50:42,955 DEBUG checkViewDepends()
2008-04-27 15:50:43,989 DEBUG useNetwork: 'False' (selected by user)
2008-04-27 15:50:43,990 DEBUG running doUpdate() (showErrors=False)
2008-04-27 15:50:43,990 DEBUG doUpdate() will not use the network because self.useNetwork==false
2008-04-27 15:50:45,692 DEBUG doPreUpgrade
2008-04-27 15:50:48,060 DEBUG Foreign: libavformat-dev libavcodec-dev stardict-xdict-ce-gb libavutil-dev w32codecs stardict-oxford-gb libavformat1d libavcodec1d stardict-cedict-gb libdvdcss2 stardict-langdao-ce-gb libavutil1d stardict-xdict-ec-gb stardict-langdao-ec-gb stardict-cdict-gb stardict-hanzim
2008-04-27 15:50:48,061 DEBUG Obsolete: cedega-small gtk2-engines-candido
2008-04-27 15:50:48,062 DEBUG updateSourcesList()
2008-04-27 15:50:48,121 DEBUG rewriteSourcesList()
2008-04-27 15:50:48,122 DEBUG examining: 'deb http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse'
2008-04-27 15:50:48,123 DEBUG entry 'deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,123 DEBUG examining: 'deb http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse'
2008-04-27 15:50:48,125 DEBUG entry 'deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,125 DEBUG examining: 'deb http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse'
2008-04-27 15:50:48,126 DEBUG entry 'deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,126 DEBUG examining: 'deb http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse'
2008-04-27 15:50:48,128 DEBUG entry 'deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,128 DEBUG examining: 'deb http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse'
2008-04-27 15:50:48,129 DEBUG entry 'deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,129 DEBUG examining: 'deb-src http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse'
2008-04-27 15:50:48,131 DEBUG entry 'deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,131 DEBUG examining: 'deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse'
2008-04-27 15:50:48,132 DEBUG entry 'deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,132 DEBUG examining: 'deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse'
2008-04-27 15:50:48,134 DEBUG entry 'deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,134 DEBUG examining: 'deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse'
2008-04-27 15:50:48,135 DEBUG entry 'deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,135 DEBUG examining: 'deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse'
2008-04-27 15:50:48,137 DEBUG entry 'deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,137 DEBUG examining: 'deb http://ubuntu.cn99.com/ubuntu-cn/ gutsy main restricted universe multiverse'
2008-04-27 15:50:48,139 DEBUG entry '# deb http://ubuntu.cn99.com/ubuntu-cn/ gutsy main restricted universe multiverse' was disabled (unknown mirror)
2008-04-27 15:50:49,459 DEBUG AptCdrom.add() called with '/cdrom'
2008-04-27 15:50:49,775 DEBUG AptCdrom.add() returned: 1
2008-04-27 15:50:49,775 DEBUG running doUpdate() (showErrors=True)
2008-04-27 15:50:49,775 DEBUG doUpdate() will not use the network because self.useNetwork==false
2008-04-27 15:50:55,226 DEBUG Running KeepInstalledSection rules
2008-04-27 15:50:55,227 DEBUG Installing 'language-support-zh' (Distro KeepInstalledSection rule: translations)
2008-04-27 15:52:13,238 ERROR Dist-upgrade failed: 'E:Unable to correct problems, you have held broken packages.'
ANOTHER SITUATION
If I chose "Include latest update from Internet" YES in above step, update manager would also crash, the only difference was that it gave no error information explicitly. After checking /var/log/dist-upgrade/main.log, it gives:
2008-04-27 15:57:05,275 INFO release-upgrader version '0.87.24' started
2008-04-27 15:57:05,674 DEBUG Using 'DistUpgradeViewGtk' view
2008-04-27 15:57:05,744 DEBUG enable dpkg --force-overwrite
2008-04-27 15:57:05,835 DEBUG lsb-release: 'gutsy'
2008-04-27 15:57:05,836 DEBUG _pythonSymlinkCheck run
2008-04-27 15:57:07,409 DEBUG checkViewDepends()
2008-04-27 15:57:09,043 DEBUG useNetwork: 'True' (selected by user)
2008-04-27 15:57:30,901 ERROR not handled expection:
Traceback (most recent call last):
File "/tmp/tmp.mtwxC13410/MetaRelease.py", line 206, in download
uri=urllib2.urlopen(req)
File "urllib2.py", line 124, in urlopen
return _opener.open(url, data)
File "urllib2.py", line 381, in open
response = self._open(req, data)
File "urllib2.py", line 399, in _open
'_open', req)
File "urllib2.py", line 360, in _call_chain
result = func(*args)
File "urllib2.py", line 1107, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "urllib2.py", line 1080, in do_open
r = h.getresponse()
File "httplib.py", line 924, in getresponse
response.begin()
File "httplib.py", line 385, in begin
version, status, reason = self._read_status()
File "httplib.py", line 349, in _read_status
raise BadStatusLine(line)
BadStatusLine
2008-04-27 15:57:30,902 DEBUG running apport_crash()
2008-04-27 15:57:31,522 ERROR failed to import apport python module, can't report bug: No module named python_hook
Any idea? Any information or help will be highly appreciated.
Thank you guys!
NOTE: I've done
sudo apt-get autoclean
sudo apt-get update
sudo apt-get upgrade
They all work fine with Gusty repositories, didn't give any error.
When upgrading from 7.10 to 8.04 using 8.04 alternate CD, it gave me error info:
Could not calculate the upgrade
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.
I've done md5sum check, and sure the iso is OK. I just did as follows:
1, Mount iso using
sudo mount -o loop ubuntu-8.04-alternate-i386.iso /cdrom
2, Alt+F2, and type in
gksu "sh /cdrom/cdromupgrade"
3, Update Manager pop up correctly, and "Preparing upgrade"
4, Update Manager asked me whether include latest update from Internet, I chose "No"
5, When calculating changes, Update Manager pop up a error screen contains info i gave above.
Here is my /var/log/dist-upgrade/main.log file:
2008-04-27 15:50:40,659 INFO release-upgrader version '0.87.24' started
2008-04-27 15:50:41,060 DEBUG Using 'DistUpgradeViewGtk' view
2008-04-27 15:50:41,131 DEBUG enable dpkg --force-overwrite
2008-04-27 15:50:41,222 DEBUG lsb-release: 'gutsy'
2008-04-27 15:50:41,223 DEBUG _pythonSymlinkCheck run
2008-04-27 15:50:42,955 DEBUG checkViewDepends()
2008-04-27 15:50:43,989 DEBUG useNetwork: 'False' (selected by user)
2008-04-27 15:50:43,990 DEBUG running doUpdate() (showErrors=False)
2008-04-27 15:50:43,990 DEBUG doUpdate() will not use the network because self.useNetwork==false
2008-04-27 15:50:45,692 DEBUG doPreUpgrade
2008-04-27 15:50:48,060 DEBUG Foreign: libavformat-dev libavcodec-dev stardict-xdict-ce-gb libavutil-dev w32codecs stardict-oxford-gb libavformat1d libavcodec1d stardict-cedict-gb libdvdcss2 stardict-langdao-ce-gb libavutil1d stardict-xdict-ec-gb stardict-langdao-ec-gb stardict-cdict-gb stardict-hanzim
2008-04-27 15:50:48,061 DEBUG Obsolete: cedega-small gtk2-engines-candido
2008-04-27 15:50:48,062 DEBUG updateSourcesList()
2008-04-27 15:50:48,121 DEBUG rewriteSourcesList()
2008-04-27 15:50:48,122 DEBUG examining: 'deb http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse'
2008-04-27 15:50:48,123 DEBUG entry 'deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,123 DEBUG examining: 'deb http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse'
2008-04-27 15:50:48,125 DEBUG entry 'deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,125 DEBUG examining: 'deb http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse'
2008-04-27 15:50:48,126 DEBUG entry 'deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,126 DEBUG examining: 'deb http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse'
2008-04-27 15:50:48,128 DEBUG entry 'deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,128 DEBUG examining: 'deb http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse'
2008-04-27 15:50:48,129 DEBUG entry 'deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,129 DEBUG examining: 'deb-src http://ubuntu.cn99.com/ubuntu/ gutsy main restricted universe multiverse'
2008-04-27 15:50:48,131 DEBUG entry 'deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,131 DEBUG examining: 'deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-security main restricted universe multiverse'
2008-04-27 15:50:48,132 DEBUG entry 'deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,132 DEBUG examining: 'deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-updates main restricted universe multiverse'
2008-04-27 15:50:48,134 DEBUG entry 'deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,134 DEBUG examining: 'deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-proposed main restricted universe multiverse'
2008-04-27 15:50:48,135 DEBUG entry 'deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,135 DEBUG examining: 'deb-src http://ubuntu.cn99.com/ubuntu/ gutsy-backports main restricted universe multiverse'
2008-04-27 15:50:48,137 DEBUG entry 'deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse' updated to new dist
2008-04-27 15:50:48,137 DEBUG examining: 'deb http://ubuntu.cn99.com/ubuntu-cn/ gutsy main restricted universe multiverse'
2008-04-27 15:50:48,139 DEBUG entry '# deb http://ubuntu.cn99.com/ubuntu-cn/ gutsy main restricted universe multiverse' was disabled (unknown mirror)
2008-04-27 15:50:49,459 DEBUG AptCdrom.add() called with '/cdrom'
2008-04-27 15:50:49,775 DEBUG AptCdrom.add() returned: 1
2008-04-27 15:50:49,775 DEBUG running doUpdate() (showErrors=True)
2008-04-27 15:50:49,775 DEBUG doUpdate() will not use the network because self.useNetwork==false
2008-04-27 15:50:55,226 DEBUG Running KeepInstalledSection rules
2008-04-27 15:50:55,227 DEBUG Installing 'language-support-zh' (Distro KeepInstalledSection rule: translations)
2008-04-27 15:52:13,238 ERROR Dist-upgrade failed: 'E:Unable to correct problems, you have held broken packages.'
ANOTHER SITUATION
If I chose "Include latest update from Internet" YES in above step, update manager would also crash, the only difference was that it gave no error information explicitly. After checking /var/log/dist-upgrade/main.log, it gives:
2008-04-27 15:57:05,275 INFO release-upgrader version '0.87.24' started
2008-04-27 15:57:05,674 DEBUG Using 'DistUpgradeViewGtk' view
2008-04-27 15:57:05,744 DEBUG enable dpkg --force-overwrite
2008-04-27 15:57:05,835 DEBUG lsb-release: 'gutsy'
2008-04-27 15:57:05,836 DEBUG _pythonSymlinkCheck run
2008-04-27 15:57:07,409 DEBUG checkViewDepends()
2008-04-27 15:57:09,043 DEBUG useNetwork: 'True' (selected by user)
2008-04-27 15:57:30,901 ERROR not handled expection:
Traceback (most recent call last):
File "/tmp/tmp.mtwxC13410/MetaRelease.py", line 206, in download
uri=urllib2.urlopen(req)
File "urllib2.py", line 124, in urlopen
return _opener.open(url, data)
File "urllib2.py", line 381, in open
response = self._open(req, data)
File "urllib2.py", line 399, in _open
'_open', req)
File "urllib2.py", line 360, in _call_chain
result = func(*args)
File "urllib2.py", line 1107, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "urllib2.py", line 1080, in do_open
r = h.getresponse()
File "httplib.py", line 924, in getresponse
response.begin()
File "httplib.py", line 385, in begin
version, status, reason = self._read_status()
File "httplib.py", line 349, in _read_status
raise BadStatusLine(line)
BadStatusLine
2008-04-27 15:57:30,902 DEBUG running apport_crash()
2008-04-27 15:57:31,522 ERROR failed to import apport python module, can't report bug: No module named python_hook
Any idea? Any information or help will be highly appreciated.
Thank you guys!
NOTE: I've done
sudo apt-get autoclean
sudo apt-get update
sudo apt-get upgrade
They all work fine with Gusty repositories, didn't give any error.