Ubuntu 18.04 無法升級解決方法
1 min read

Ubuntu 18.04 無法升級解決方法

如何升級Ubuntu發行版本?💻
Ubuntu 18.04 無法升級解決方法

Ubuntu 20.04 長期支援發行版也開始日漸穩定,所以就心血來潮地將主機從 18.04 升級為 20.04,當然升級前我們必須確保將資料備份下來。

如何升級Ubuntu發行版本 ?💻

執行升級指令: Do-release-upgrade ,但是碰到無法升級提示: Err https://dl.yarnpkg.com/debian stable InRelease

Err https://dl.yarnpkg.com/debian stable InRelease
The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <[email protected]>
Hit http://mirrors.digitalocean.com/ubuntu focal InRelease
Hit http://security.ubuntu.com/ubuntu focal-security InRelease
Hit http://mirrors.digitalocean.com/ubuntu focal-updates InRelease
Hit http://mirrors.digitalocean.com/ubuntu focal-backports InRelease
Fetched 17.1 kB in 0s (0 B/s)

Error during update

A problem occurred during the update. This is usually some sort of
network problem, please check your network connection and retry.


Restoring original system state

Aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
Err https://dl.yarnpkg.com/debian stable InRelease

接著只要退出接著輸入以下指令:

curl -sS [https://dl.yarnpkg.com/debian/pubkey.gpg](https://dl.yarnpkg.com/debian/pubkey.gpg) | sudo apt-key add -

最後在重複執行升級指令Do-release-upgrade系統就不會報錯了。

comments powered by Disqus