当前位置: 首页>>技术教程>>正文


从 13.10 升级到 14.04:“找不到新版本”

问题描述

我正在尝试使用从 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

我也将 normal 更改为 lts 没有成功。

我还检查了空的目录 /var/lib/ubuntu-release-upgrader/

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

文件 /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

所以我尝试了 Distribution upgrade problem “No new release found” 的所有解决方案,但都没有成功。

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

编辑

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

也许这给了你一个如何解决问题的提示。

编辑2

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

ppa 关于以下包的位置: sagemathgoogle-earthhandbrakefreetuxtvjulia (数学程序)。

然而没有成功。

最佳答案

对我来说,原因是我有 disabled the automatic checking for upgrades ,因为 check-new-release 进程一直在显著降低我的计算机的速度。

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

次佳答案

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

第三种答案

试试这个!!!

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

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 PPAPPA-Purge 删除它。

第四种答案

您需要选中此选项:

然后再次启动 do-release-upgrade

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/12009.html,未经允许,请勿转载。