无法升级到 Ubuntu 14.04

无法升级到 Ubuntu 14.04

当我尝试从 Ubuntu Gnome 13.10 升级到 Ubuntu 14.04 时,升级应用程序失败并显示以下消息:

Could not calculate the upgrade. 
An unresolvable problem occurred while calculating the upgrade.`

以下是完整的日志:

$ cat /etc/issue
Ubuntu 13.10 \n \l
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo do-release-upgrade
Checking package manager
Reading package lists... Done    
Building dependency tree          
Reading state information... Done
Building data structures... Done 

Calculating the changes

Calculating the changes

Could not calculate the upgrade 

An 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 using the 
command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal. 


Restoring original system state

Aborting
Reading package lists... Done    
Building dependency tree          
Reading state information... Done
Building data structures... Done 

我是不是遗漏了什么?或者这只是一个错误?

更新:我分析了日志文件,发现它do-release-upgrade抱怨一些过时的软件包。

$ cat /var/log/dist-upgrade/main.log | grep Obsolete
2014-04-28 09:16:23,678 DEBUG Obsolete: flashplugin-nonfree-extrasound:i386 (..)

删除这些软件包后,我就可以继续升级了。

答案1

  1. 查看/var/log包含更多详细信息的发布升级日志文件。

  2. 错误信息解释:

This can be caused by: ... * Unofficial software packages not provided by Ubuntu

那么,您是否安装了来自 PPA 的任何软件,或者您是否编辑过任何默认源?如果是这样,那可能就是问题所在。禁用任何 PPA 或其他第三方存储库,然后重试。如果仍然不起作用,您可能需要实际卸载一些软件包或将其替换为来自官方存储库的版本。

答案2

自从 14.04 发布以来,我一直在关注这个帖子,最终解决了我的问题:结果发现(对我来说)错误是由于安装 Cinnamon 引起的。

我使用 Synaptic 搜索并删除了所有 Cinnamon 以及 Nemo 和 Muffin(Cinnamon 的两个实用程序)。常规发行版升级命令

      sudo do-release-upgrade

然后完美运行。

答案3

当我更新到 kubuntu 15.04 时,我遇到了同样的问题,因为php、、包损坏了。MSQLxserver-xorg-video

您可以通过以下方式查看损坏的库:

grep Broken /var/log/dist-upgrade/apt.log

要删除 xserver-xorg-video,请使用以下命令:

sudo apt-get remove xserver-xorg-video-*

我还使用 synaptic 包管理器删除了一些冲突的库mysqlphp

删除 mysql、php 库之前请备份数据库

谢谢

相关内容