无法从Ubuntu 18.10升级到19.10

时间:2020-02-13 09:37:20

标签: ubuntu-18.04

运行命令sudo do-release upgrade时遇到以下错误:

Checking package manager
Can not upgrade 
An upgrade from 'cosmic' to 'eoan' is not supported with this tool. 

1 个答案:

答案 0 :(得分:0)

由于不再支持18.10,因此可以手动升级到19.04

mkdir /tmp/upgrade
cd /tmp/upgrade
wget http://old-releases.ubuntu.com/ubuntu/dists/disco-updates/main/dist-upgrader-all/current/disco.tar.gz
tar -xvf disco.tar.gz
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
/etc/apt/sources.list change all links prefix to -> http://old-releases.ubuntu.com/
sudo python3 dist-upgrade.py

然后升级到19.10

sudo cp /etc/apt/sources.list.bak /etc/apt/sources.list
sudo sed -i -e 's|cosmic|eoan|g' /etc/apt/sources.list
sudo apt update
sudo apt upgrade