每次我单击升级按钮时,更新管理器都会关闭。
因此我按照以下步骤使用终端从 20.04 升级到 22.04.1。
sudo apt update
:
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 https://download.docker.com/linux/ubuntu focal InRelease
Ign:3 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 InRelease
Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:6 http://ppa.launchpad.net/blaze/rtbth-dkms/ubuntu focal InRelease
Hit:7 http://archive.canonical.com/ubuntu focal InRelease
Hit:8 http://in.archive.ubuntu.com/ubuntu focal InRelease
Hit:9 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 Release
Get:10 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:11 http://ppa.launchpad.net/maarten-fonville/android-studio/ubuntu focal InRelease
Get:12 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Fetched 336 kB in 4s (83.7 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
prashant@prashantk01-notebook:~$
sudo apt upgrade
:
prashant@prashantk01-notebook:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
#
# News about significant security updates, features and services will
# appear here to raise awareness and perhaps tease /r/Linux ;)
# Use 'pro config set apt_news=false' to hide this and future APT news.
#
The following packages have been kept back:
android-studio
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
prashant@prashantk01-notebook:~$
sudo apt update && sudo apt dist-upgrade
:
prashant@prashantk01-notebook:~$ sudo apt update && sudo apt dist-upgrade
Hit:1 https://download.docker.com/linux/ubuntu focal InRelease
Ign:2 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 InRelease
Hit:3 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:4 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 Release
Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:6 http://ppa.launchpad.net/blaze/rtbth-dkms/ubuntu focal InRelease
Hit:7 http://in.archive.ubuntu.com/ubuntu focal InRelease
Get:9 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:11 http://ppa.launchpad.net/maarten-fonville/android- studio/ubuntu focal InRelease
Hit:12 http://archive.canonical.com/ubuntu focal InRelease
Get:13 http://in.archive.ubuntu.com/ubuntu focal-backports
InRelease [108 kB]
Fetched 336 kB in 4s (83.2 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
#
# News about significant security updates, features and services will
# appear here to raise awareness and perhaps tease /r/Linux ;)
# Use 'pro config set apt_news=false' to hide this and future APT news.
#
The following packages have been kept back:
android-studio
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
prashant@prashantk01-notebook:~$
以上命令执行成功。
sudo do-release-upgrade -c
上述命令提供版本更新“新版本‘22.04.1 LTS’可用”。
检查是否有新的 Ubuntu 版本 新版本“22.04.1 LTS”可用。运行“do-release-upgrade”以升级到该版本
sudo do-release-upgrade
但我无法使用终端或更新管理器进行更新,给出以下输出
检查是否有新的 Ubuntu 版本 升级前请安装您版本的所有可用更新
我在这里做错了什么吗?或者我需要等待吗?