从 Ubuntu 19.10 升级到 20.04 时出现问题

从 Ubuntu 19.10 升级到 20.04 时出现问题

当我尝试将 Ubuntu 19.10 升级到 20.04 时遇到了这个问题。

[tor apr 23 18:45:46] Jonathan@Whats next?:~$ sudo apt install update-manager-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
update-manager-core is already the newest version (1:19.04.8).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[tor apr 23 18:46:09] Jonathan@Whats next?:~$ do-release-upgrade -d
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [1 554 B]                                         
Get:2 Upgrade tool [1 344 kB]                                                  
Fetched 1 346 kB in 0s (0 B/s)                                                 
authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg' 
extracting 'focal.tar.gz'

Reading cache
Segmentation fault
[tor apr 23 18:46:50] Jonathan@Whats next?:~$ 

我怎样才能解决这个问题?

答案1

运行之前尝试此命令do-release-upgrade -d

sudo apt-get install --reinstall ubuntu-keyring

答案2

我认为你需要使用“sudo”运行 do-release-upgrade -d

答案3

18.04.1 到 20.04 有同样的问题。我尝试过使用和不使用sudo,但仍然出错。我也尝试过使用update-manager -d,但没有用。

    Checking for a new Ubuntu release
    Get:1 Upgrade tool signature [1,554 B]                                         
    Get:2 Upgrade tool [1,344 kB]                                                  
    Fetched 1,346 kB in 6s (92.5 kB/s)                                             
    authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg' 
    Authentication failed
    Authenticating the upgrade failed. There may be a problem with the network or with the server.

答案4

尝试一下sudo apt install -f。这可以解决一些问题。

相关内容