Checking for a new ubuntu release
Done Upgrade tool signature
Done Upgrade tools
Done downloading
extracting 'maverick.tar.gz'
authenticate 'maverick.tar.gz' against 'maverick.tar.gz.gpg'
tar: Removing leading `/' from member names
Reading cache
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Updating repository information
WARNING: Failed to read mirror file
A fatal error occurred
Please report this as a bug and include the files
/var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in
your report. The upgrade has aborted.
Your original sources.list was saved in
/etc/apt/sources.list.distUpgrade.
Traceback (most recent call last):
File "/tmp/tmpe_xVWd/maverick", line 7, in <module>
sys.exit(main())
File "/tmp/tmpe_xVWd/DistUpgradeMain.py", line 158, in main
if app.run():
File "/tmp/tmpe_xVWd/DistUpgradeController.py", line 1616, in run
return self.fullUpgrade()
File "/tmp/tmpe_xVWd/DistUpgradeController.py", line 1534, in
fullUpgrade
if not self.updateSourcesList():
File "/tmp/tmpe_xVWd/DistUpgradeController.py", line 664, in
updateSourcesList
if not self.rewriteSourcesList(mirror_check=True):
File "/tmp/tmpe_xVWd/DistUpgradeController.py", line 486, in
rewriteSourcesList
distro.get_sources(self.sources)
File "/tmp/tmpe_xVWd/distro.py", line 103, in get_sources
source.template.official == True and
AttributeError: 'Template' object has no attribute 'official'
这是我尝试升级桌面版时得到的结果:sudo do-release-upgrade。还有一个信息:我已安装 kde。
答案1
在 Google 上搜索第一个结果(搜索“AttributeError: 'Template' 对象没有属性 'official'”)会出现下一个 Ubuntu 论坛主题:升级到 10.10:“AttributeError:‘Template’对象没有属性‘official’”。
在升级到 10.10 之前,尝试刷新您的软件包列表并确保您的系统是最新的:
sudo apt-get update && sudo apt-get upgrade