當我單擊升級按鈕時,更新管理器每次都會關閉。
因此,我按照以下步驟使用終端從 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 版本 請在升級之前安裝您的版本的所有可用更新
我在這裡做錯了什麼還是需要等待?