Ubuntu升级时提示“找不到新版本”(no new release found)解决方法
思韵闪耀
2024-04-29
0

1、更改配置文件

vim /etc/update-manager/release-upgrades1

将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

【版权声明】
本站部分内容来源于互联网,本站不拥有所有权,不承担相关法律责任。如果发现本站有侵权的内容,欢迎发送邮件至masing@13sy.com 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。

相关内容

ubuntu环境下搭建gi...
操作环境:服务器:Ubuntu 24.04.2 LTS+git 2...
2025-03-17
Ubuntu磁盘未分配空间...
虚拟机安装的Ubuntu 24.04.2 LTS,分配的30G空间...
2025-03-04
Ubuntu防火墙ufw的...
一、不使用IPv6打开UFW配置。sudo vim /e...
2024-12-28
Ubuntu解决resol...
1.输入该命令按回车键vi /etc/systemd/resolv...
2024-11-17
ubuntu配置DNS
ubuntu配置DNS在Ubuntu中配置DNS通常涉及编辑/et...
2024-11-17
Ubuntu 24.04上...
一、安装界面系统xfce4sudo apt updatesudo ...
2024-10-22

热门资讯

SIOCADDRT: Netw... SIOCADDRT: Network is unreachable SIOCADDRT: 网络不可达...
centos7下创建新用户和组 linux下添加,删除,修改,查看用户和用户组 1 .增加一个test组 groupadd test...
linux通过sed 修改文件... 13sy.txt里面内容如下 A; B; C; write by luohao199621; 1.要...
关于cannot remove... 关于cannot remove directory: Directory not empty的解决办...
mount: unknown ... mount: unknown filesystem type LVM2_member解决方案 系统启...
OpenMediaVault安... OpenMediaVault 是一个基于Debian的专用 Linux 发行版,用于构建网络连接存储...
centos7 双网卡双网关的... 最近公司需要在一台服务器上同时使用内网和外网,并且都需要跨网段访问,因此需要双网关,但是一台机子上只...
ethtool 命令详解 1 概述 ethtool 是用于查询及设置网卡参数的命令。 2 命令详解 2.1 命令格式 (1) ...
CentOS7单网卡设置双IP... linux系统CentOS7单网卡设置双IP的方法,centos7.5、7.6、7.7设置双IP教程...
Linux进程状态D,S,Z的... Linux进程状态top,ps中看到进程状态D,S,Z的含义 在top和ps命令中有一列显示进程状态...