无法将 Ubuntu 从 14.04 升级到最新版本

无法将 Ubuntu 从 14.04 升级到最新版本

当我尝试升级时,出现以下错误:

sudo aptitude upgrade
Resolving dependencies...                
open: 217520; closed: 114638; defer: 5; conflict: 6                            O
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

如果我尝试使用软件更新程序,首先会出现一个对话框,提示 并非所有更新都可以安装

运行部分升级...当我尝试这样做时,它说安装需要不受信任的软件并终止。我尝试检查需要升级的软件包,但有很多软件包,很难找出哪个是导致问题的。

任何提示或帮助都将不胜感激。我不能让这台机器过时且得不到支持。

我目前的版本是

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"

sudo apt-get update 的完整输出

Ign dl.google.com stable InRelease
Hit dl.google.com stable Release.gpg
Ign us.archive.ubuntu.com utopic InRelease
Ign security.ubuntu.com utopic-security InRelease
Hit dl.google.com stable Release
Ign us.archive.ubuntu.com utopic-updates InRelease
Hit security.ubuntu.com trusty-security InRelease
Ign extras.ubuntu.com utopic InRelease
Hit archive.canonical.com utopic InRelease
Ign archive.ubuntu.com trusty InRelease
Ign ppa.launchpad.net trusty InRelease
Hit dl.google.com stable/main i386 Packages
Ign us.archive.ubuntu.com utopic Release.gpg
Ign security.ubuntu.com utopic-security Release.gpg
Hit extras.ubuntu.com utopic Release.gpg
Hit archive.canonical.com natty InRelease
Ign us.archive.ubuntu.com utopic-updates Release.gpg
Hit security.ubuntu.com trusty-security/main i386 Packages
Hit archive.ubuntu.com trusty-updates InRelease
Hit ppa.launchpad.net trusty Release.gpg
Ign us.archive.ubuntu.com utopic Release
Hit security.ubuntu.com trusty-security/multiverse i386 Packages
Hit extras.ubuntu.com utopic Release
Hit archive.canonical.com utopic/partner i386 Packages
Hit archive.ubuntu.com trusty Release.gpg
Ign us.archive.ubuntu.com utopic-updates Release
Hit ppa.launchpad.net trusty Release
Hit security.ubuntu.com trusty-security/restricted i386 Packages
Ign us.archive.ubuntu.com utopic/main Sources/DiffIndex
Hit security.ubuntu.com trusty-security/universe i386 Packages
Hit extras.ubuntu.com utopic/main Sources
Hit archive.canonical.com utopic/partner Translation-en
Hit archive.ubuntu.com trusty-updates/main i386 Packages
Hit ppa.launchpad.net trusty/main i386 Packages
Ign us.archive.ubuntu.com utopic/restricted Sources/DiffIndex
Hit security.ubuntu.com trusty-security/main Translation-en
Hit extras.ubuntu.com utopic/main i386 Packages
Ign us.archive.ubuntu.com utopic/universe Sources/DiffIndex
Hit security.ubuntu.com trusty-security/multiverse Translation-en
Hit archive.canonical.com natty/partner Sources
Hit archive.ubuntu.com trusty-updates/multiverse i386 Packages
Hit ppa.launchpad.net trusty/main Translation-en
Ign us.archive.ubuntu.com utopic/multiverse Sources/DiffIndex
Hit security.ubuntu.com trusty-security/restricted Translation-en
Ign us.archive.ubuntu.com utopic/main i386 Packages/DiffIndex
Hit archive.ubuntu.com trusty-updates/restricted i386 Packages
Hit security.ubuntu.com trusty-security/universe Translation-en
Ign us.archive.ubuntu.com utopic/restricted i386 Packages/DiffIndex
Ign security.ubuntu.com utopic-security Release
Ign dl.google.com stable/main Translation-en_US
Ign dl.google.com stable/main Translation-en
Hit archive.ubuntu.com trusty-updates/universe i386 Packages
Ign us.archive.ubuntu.com utopic/universe i386 Packages/DiffIndex
Ign security.ubuntu.com utopic-security/main Sources/DiffIndex
Ign us.archive.ubuntu.com utopic/multiverse i386 Packages/DiffIndex
Ign security.ubuntu.com utopic-security/restricted Sources/DiffIndex
Hit archive.ubuntu.com trusty-updates/main Translation-en
Ign security.ubuntu.com utopic-security/universe Sources/DiffIndex
Ign security.ubuntu.com utopic-security/multiverse Sources/DiffIndex
Hit archive.ubuntu.com trusty-updates/multiverse Translation-en
Ign security.ubuntu.com utopic-security/main i386 Packages/DiffIndex
Hit archive.ubuntu.com trusty-updates/restricted Translation-en
Ign security.ubuntu.com utopic-security/restricted i386 Packages/DiffIndex
Ign security.ubuntu.com utopic-security/universe i386 Packages/DiffIndex
Hit archive.ubuntu.com trusty-updates/universe Translation-en
Hit archive.ubuntu.com trusty Release
Ign security.ubuntu.com utopic-security/multiverse i386 Packages/DiffIndex
Hit archive.ubuntu.com trusty/main Sources
Ign extras.ubuntu.com utopic/main Translation-en_US
Ign us.archive.ubuntu.com utopic-updates/main Sources/DiffIndex
Hit archive.ubuntu.com trusty/universe Sources
Ign us.archive.ubuntu.com utopic-updates/restricted Sources/DiffIndex
Ign extras.ubuntu.com utopic/main Translation-en
Ign us.archive.ubuntu.com utopic-updates/universe Sources/DiffIndex
Hit archive.ubuntu.com trusty/restricted Sources
Ign us.archive.ubuntu.com utopic-updates/multiverse Sources/DiffIndex
Ign us.archive.ubuntu.com utopic-updates/main i386 Packages/DiffIndex
Hit archive.ubuntu.com trusty/multiverse Sources
Ign us.archive.ubuntu.com utopic-updates/restricted i386 Packages/DiffIndex
Ign us.archive.ubuntu.com utopic-updates/universe i386 Packages/DiffIndex
Hit archive.ubuntu.com trusty/main i386 Packages
Ign us.archive.ubuntu.com utopic-updates/multiverse i386 Packages/DiffIndex
Hit archive.ubuntu.com trusty/universe i386 Packages
Hit archive.ubuntu.com trusty/restricted i386 Packages
Hit archive.ubuntu.com trusty/multiverse i386 Packages
Hit archive.ubuntu.com trusty/main Translation-en
Hit archive.ubuntu.com trusty/multiverse Translation-en
Hit archive.ubuntu.com trusty/restricted Translation-en
Hit archive.ubuntu.com trusty/universe Translation-en
Ign archive.ubuntu.com trusty/main Translation-en_US
Ign archive.ubuntu.com trusty/multiverse Translation-en_US
Ign archive.ubuntu.com trusty/restricted Translation-en_US
Ign archive.ubuntu.com trusty/universe Translation-en_US
Ign security.ubuntu.com utopic-security/main Translation-en_US
Ign security.ubuntu.com utopic-security/main Translation-en
Ign security.ubuntu.com utopic-security/multiverse Translation-en_US
Ign security.ubuntu.com utopic-security/multiverse Translation-en
Ign security.ubuntu.com utopic-security/restricted Translation-en_US
Ign security.ubuntu.com utopic-security/restricted Translation-en
Ign security.ubuntu.com utopic-security/universe Translation-en_US
Ign security.ubuntu.com utopic-security/universe Translation-en
Err security.ubuntu.com utopic-security/main Sources
  404  Not Found [IP: 91.189.91.23 80]
Err security.ubuntu.com utopic-security/restricted Sources
  404  Not Found [IP: 91.189.91.23 80]
Err security.ubuntu.com utopic-security/universe Sources
  404  Not Found [IP: 91.189.91.23 80]
Err security.ubuntu.com utopic-security/multiverse Sources
  404  Not Found [IP: 91.189.91.23 80]
Err security.ubuntu.com utopic-security/main i386 Packages
  404  Not Found [IP: 91.189.91.23 80]
Err security.ubuntu.com utopic-security/restricted i386 Packages
  404  Not Found [IP: 91.189.91.23 80]
Err security.ubuntu.com utopic-security/universe i386 Packages
  404  Not Found [IP: 91.189.91.23 80]
Err security.ubuntu.com utopic-security/multiverse i386 Packages
  404  Not Found [IP: 91.189.91.23 80]
Ign us.archive.ubuntu.com utopic/main Translation-en_US
Ign us.archive.ubuntu.com utopic/main Translation-en
Ign us.archive.ubuntu.com utopic/multiverse Translation-en_US
Ign us.archive.ubuntu.com utopic/multiverse Translation-en
Ign us.archive.ubuntu.com utopic/restricted Translation-en_US
Ign us.archive.ubuntu.com utopic/restricted Translation-en
Ign us.archive.ubuntu.com utopic/universe Translation-en_US
Ign us.archive.ubuntu.com utopic/universe Translation-en
Ign us.archive.ubuntu.com utopic-updates/main Translation-en_US
Ign us.archive.ubuntu.com utopic-updates/main Translation-en
Ign us.archive.ubuntu.com utopic-updates/multiverse Translation-en_US
Ign us.archive.ubuntu.com utopic-updates/multiverse Translation-en
Ign us.archive.ubuntu.com utopic-updates/restricted Translation-en_US
Ign us.archive.ubuntu.com utopic-updates/restricted Translation-en
Ign us.archive.ubuntu.com utopic-updates/universe Translation-en_US
Ign us.archive.ubuntu.com utopic-updates/universe Translation-en
Err us.archive.ubuntu.com utopic/main Sources
  404  Not Found [IP: 91.189.91.13 80]
Err us.archive.ubuntu.com utopic/restricted Sources
  404  Not Found [IP: 91.189.91.13 80]
Err us.archive.ubuntu.com utopic/universe Sources
  404  Not Found [IP: 91.189.91.13 80]
Err us.archive.ubuntu.com utopic/multiverse Sources
  404  Not Found [IP: 91.189.91.13 80]
Err us.archive.ubuntu.com utopic/main i386 Packages
  404  Not Found [IP: 91.189.91.13 80]
Err us.archive.ubuntu.com utopic/restricted i386 Packages
  404  Not Found [IP: 91.189.91.13 80]
Err us.archive.ubuntu.com utopic/universe i386 Packages
  404  Not Found [IP: 91.189.91.13 80]
Err us.archive.ubuntu.com utopic/multiverse i386 Packages
  404  Not Found [IP: 91.189.91.13 80]
Err us.archive.ubuntu.com utopic-updates/main Sources
  404  Not Found [IP: 91.189.91.13 80]
Err us.archive.ubuntu.com utopic-updates/restricted Sources
  404  Not Found [IP: 91.189.91.13 80]
Err us.archive.ubuntu.com utopic-updates/universe Sources
  404  Not Found [IP: 91.189.91.13 80]
Err us.archive.ubuntu.com utopic-updates/multiverse Sources
  404  Not Found [IP: 91.189.91.13 80]
Err us.archive.ubuntu.com utopic-updates/main i386 Packages
  404  Not Found [IP: 91.189.91.13 80]
Err us.archive.ubuntu.com utopic-updates/restricted i386 Packages
  404  Not Found [IP: 91.189.91.13 80]
Err us.archive.ubuntu.com utopic-updates/universe i386 Packages
  404  Not Found [IP: 91.189.91.13 80]
Err us.archive.ubuntu.com utopic-updates/multiverse i386 Packages
  404  Not Found [IP: 91.189.91.13 80]

答案1

您不能直接从 Ubuntu 14.04 升级到 Ubuntu 15.10(最新版本)。您必须按顺序进行,因此从 14.04 开始,您需要升级到 14.10,然后是 15.04,最后是 15.10。以下是从 14.04 LTS 升级到 14.10 等的步骤:

编辑文件/etc/update-manager/release-upgrades

sudo nano /etc/update-manager/release-upgrades

并更改Prompt=ltsPrompt=normal

安装update-manager-core

sudo apt-get install update-manager-core

现在启动命令:

sudo do-release-upgrade

最终,reboot系统。

相关内容