无法将 20.04 升级到 22.04

无法将 20.04 升级到 22.04

我做了所有明显的步骤,例如:

  • sudo apt update
  • sudo apt upgrade
  • sudo apt dist-upgrade

它只是在步骤“nvidia-driver-530”停止大约 5 分钟,然后中止。

$ sudo do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]                                           
Get:2 Upgrade tool [1,267 kB]                                                  
Fetched 1,267 kB in 0s (0 B/s)                                                 
authenticate 'jammy.tar.gz' against 'jammy.tar.gz.gpg' 
extracting 'jammy.tar.gz'

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Hit http://ru.archive.ubuntu.com/ubuntu focal InRelease                                                
Get:1 http://ru.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                             
Get:2 http://ru.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]                           
Hit http://archive.canonical.com/ubuntu focal InRelease                                                
Hit https://download.docker.com/linux/ubuntu focal InRelease                                           
Hit http://security.ubuntu.com/ubuntu focal-security InRelease      
Fetched 222 kB in 0s (0 B/s)                                                   
Reading package lists... Done    
Building dependency tree          
Reading state information... Done
nvidia-driver-530

Restoring original system state

Aborting
Reading package lists... Done    
Building dependency tree          
Reading state information... Done

我已经尝试过了:

  • 更新 nvidia 驱动程序
  • 删除 nvidia 驱动程序
  • 使用新型驱动程序
  • 删除所有 gpu 驱动程序并从恢复模式执行
  • 更改驱动程序的源列表
  • 使用更新管理器

答案1

感谢@nobody,为了解决这个问题,我采取了以下步骤:

  • 重新安装 snapd:

    sudo apt remove --purge snapd

    sudo apt install snapd

  • 使用 systemctl 启用它:

    sudo systemctl enable --now snapd.service

相关内容