尝试这个!!!

尝试这个!!!

我正在尝试使用从 lubuntu 13.10 升级到 14.04

apt-get update
apt-get dist-upgrade  
do-release-upgrade

然而最后一条命令返回No new release found

我也尝试过,do-release-upgrade -d结果是一样的。

/etc/apt/sources.list好像:

# deb cdrom:[Lubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)]/ saucy main multiverse restricted universe

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://de.archive.ubuntu.com/ubuntu/ saucy main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ saucy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://de.archive.ubuntu.com/ubuntu/ saucy-updates main restricted
deb-src http://de.archive.ubuntu.com/ubuntu/ saucy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://de.archive.ubuntu.com/ubuntu/ saucy universe
deb-src http://de.archive.ubuntu.com/ubuntu/ saucy universe
deb http://de.archive.ubuntu.com/ubuntu/ saucy-updates universe
deb-src http://de.archive.ubuntu.com/ubuntu/ saucy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://de.archive.ubuntu.com/ubuntu/ saucy multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ saucy multiverse
deb http://de.archive.ubuntu.com/ubuntu/ saucy-updates multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ saucy-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://de.archive.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse
deb-src http://de.archive.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu saucy-security main restricted
deb-src http://security.ubuntu.com/ubuntu saucy-security main restricted
deb http://security.ubuntu.com/ubuntu saucy-security universe
deb-src http://security.ubuntu.com/ubuntu saucy-security universe
deb http://security.ubuntu.com/ubuntu saucy-security multiverse
deb-src http://security.ubuntu.com/ubuntu saucy-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu saucy partner
# deb-src http://archive.canonical.com/ubuntu saucy partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu saucy main
deb-src http://extras.ubuntu.com/ubuntu saucy main

deb http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu raring main
deb-src http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu raring main
deb http://dl.google.com/linux/earth/deb/ stable main
# deb-src http://archive.canonical.com/ubuntu saucy partner

请注意,我刚刚使用相同的服务器将 lubuntu 升级到了另一个,没有任何问题。

文件内容/etc/update-manager/meta-releases

# default location for the meta-release file

[METARELEASE]
URI = http://changelogs.ubuntu.com/meta-release
URI_LTS = http://changelogs.ubuntu.com/meta-release-lts
URI_UNSTABLE_POSTFIX = -development
URI_PROPOSED_POSTFIX = -proposed

/etc/update-manager/release-upgrades好像:

# some comments...

Prompt=normal

我也改了normallts没有成功。

我还检查了该目录/var/lib/ubuntu-release-upgrader/,它是空的。

也没有proxy文件,/etc/apt/apt.conf.d/所以似乎没有使用代理。

该文件/etc/hosts如下所示:

127.0.0.1       localhost
127.0.1.1       mybox

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

所以我尝试了每一个解决方案发行版升级问题“未发现新版本”没有成功。

知道这里可能存在什么问题吗?

编辑

使用图形界面时update-manager我收到错误消息:“无法下载存储库信息”

或许这可以给你提供一些解决问题的提示。

編輯2

我现在从 de 服务器更改为主服务器,并从我的sources.list和中删除了所有 ppa sources.list.d。 如果可能的话,使用ppa-purge。 如果不行,我使用 aptitude 清除了相关包,然后删除了 ppa 条目。

ppa 包含以下软件包:sagemath、、、google-earth和(一个数学程序)handbrakefreetuxtvjulia

但没有成功。

答案1

对我来说,原因是我有禁用自动检查升级,因为该check-new-release过程一直显著减慢我的计算机速度。

立即改回Prompt=normal即可/etc/update-manager/release-upgrades解决问题。

答案2

终于成功了。问题是我do-release-upgrade以 root 身份执行了此操作,但不起作用。以普通用户身份调用此命令有效。但我不明白为什么以 root 身份执行此操作无效。

答案3

尝试这个!!!

剪切并粘贴以下整套命令:

sudo apt-get clean ;
cd /var/lib/apt ;
sudo mv lists lists.old_`date '+%Y%m%d_%H%M%S'`   ;
sudo mkdir -p lists/partial ;
sudo apt-get clean ;
sudo apt-get update

分号分隔每个命令,以便可以将它们粘贴在一起。之后执行以下操作:

sudo apt-get clean
sudo do apt-get update
sudo apt-get dist-upgrade  
sudo do-release-upgrade

如果失败,请执行以下操作:

sudo sed -i 's/saucy/trusty/g' /etc/apt/sources.list
sudo apt-get update
sudo apt-get upgrade 

注意:删除所有第三方 PPA,除非它们有 14.04 版本可用。如果你有Gnome PPA删除它PPA 清洗

答案4

从终端或 Unity Launcher 运行命令:gksu update-manager -d。如果您尝试运行 sudo update-manager -d,它并不总是提供 14.04 可用选项。但使用 gksu,此选项将会出现。

否则,创建可启动的 USB 驱动器。使用相同的驱动器启动,并在安装时选择升级或其他选项。在其他选项中,将相同的驱动器作为 /、交换的挂载点。取消选择格式化选项。不要选择格式化。这会保留您的所有文件和以前的设置并进行升级。

谢谢。

相关内容