Ubuntu升级时提示“找不到新版本”(no new release found)解决方法

1、更改配置文件

vim /etc/update-manager/release-upgrades

将prompt属性的值改为normal

[DEFAULT]
# Default prompting and upgrade behavior, valid options:
#
#  never  - Never check for, or allow upgrading to, a new release.
#  normal - Check to see if a new release is available.  If more than one new
#           release is found, the release upgrader will attempt to upgrade to
#           the supported release that immediately succeeds the
#           currently-running release.
#  lts    - Check to see if a new LTS release is available.  The upgrader
#           will attempt to upgrade to the first LTS release available after
#           the currently-running one.  Note that if this option is used and
#           the currently-running release is not itself an LTS release the
#           upgrader will assume prompt was meant to be normal.
Prompt=normal

2、更新软件、依赖库等

apt-get update
apt-get upgrade
apt-get dist-upgrade 

有时候卸载了软件,某些资源没卸载干净,执行上述命令时也会更新对应资源(但不会更新成功),在后续升级时会提示该资源不是最新的,无法升级。此时只需要手动删除提示的文件夹即可

3、执行升级检测命令

do-release-upgrade -c

4、执行升级命令

do-release-upgrade

第一次执行该命令,可能会卡在更新snap store那一步此时只需要ctrl + c停止当前更新,再次执行更新命令即可。或着直接关闭snap store相关进程,再执行更新命令:

killall snap-store // 关闭进程
snap refresh  snap-store// 更新snap store

do-release-upgrade
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值