![Ubuntu 18.04:osboxes.org 虚拟机版本升级卡住了](https://linux22.com/image/932818/Ubuntu%2018.04%EF%BC%9Aosboxes.org%20%E8%99%9A%E6%8B%9F%E6%9C%BA%E7%89%88%E6%9C%AC%E5%8D%87%E7%BA%A7%E5%8D%A1%E4%BD%8F%E4%BA%86.png)
我正在进行版本升级。我收到了以下带有链接的消息,系统卡住了。我正在 Ubuntu 18.04 上升级 osboxes.org 虚拟机。
$ sudo do-release-upgrade
Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore.
For upgrade information, please visit: http://www.ubuntu.com/releaseendoflife
==
I left the machine running, today when I started, I have following messages:
> Get:1 Upgrade tool signature [1,554 B]
> Get:2 Upgrade tool [1,340 kB]
> Fetched 1,342 kB in 0s (0 B/s)
> authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg' extracting
> 'focal.tar.gz'
>
> Reading cache
>
> Checking package manager Reading package lists... Done Building
> dependency tree Reading state information... Done Hit
> http://old-releases.ubuntu.com/ubuntu eoan InRelease
> Hit http://old-releases.ubuntu.com/ubuntu eoan-updates InRelease
> Hit http://old-releases.ubuntu.com/ubuntu eoan-backports InRelease
> Hit http://old-releases.ubuntu.com/ubuntu eoan-security InRelease
> Fetched 0 B in 0s (0 B/s)
> Reading package lists... Done Building dependency tree
> Reading state information... Done
>
> Checking for installed snaps
>
> Calculating snap size requirements
>
> Updating repository information Get:1
> http://us.archive.ubuntu.com/ubuntu focal InRelease [265 kB]
> Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114
> kB] Get:3 http://us.archive.ubuntu.com/ubuntu focal-backports
> InRelease [101 k
and then lots of Gets
进而 :
6 秒内获取 43.0 MB (3,491 kB/s)
检查包管理器 正在读取包列表...完成 正在构建依赖关系树 正在读取状态信息...完成
计算变化
计算变化
您想要开始升级吗?
将删除 2 个软件包。将安装 110 个新软件包。将升级 1254 个软件包。
您总共需要下载 1,212 M。使用您的网络连接,此下载大约需要 5 分钟。
安装升级可能需要几个小时。下载完成后,该过程无法取消。
继续 [yN] 详细信息 [d]Y
锁定屏幕已禁用
您的锁屏已被禁用并将保持禁用状态,直到您重新启动。
要继续,请按 [ENTER] 抑制,直到按下 Ctrl+C...
我已按下 ENTER 键,它仍在运行。
答案1
sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/us.old-releases.ubuntu.com/g' /etc/apt/sources.list
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install update-manager-core
sudo do-release-upgrade