旧的 Linux droplet 不支持更新的版本

我在 Digital Ocean 上有一个非常非常老的 Linux 镜像。

我该如何解决这个问题?

顺便说一句——在我尝试更新之前,我遇到了有史以来最严重的垃圾邮件侵扰!

我首先尝试了常规的更新按钮:

任务:TOP => assets:precompile:compress_js

(通过运行任务并添加 --trace 来查看完整跟踪)

Docker Manager:升级失败

#<RuntimeError: RuntimeError>

/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:210:in `run’

/var/www/discourse/plugins/docker_manager/lib/docker_manager/upgrader.rb:111:in `upgrade’

/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:19:in `block in ’

/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `fork’

/var/www/discourse/plugins/docker_manager/scripts/docker_manager_upgrade.rb:6:in `’

然后我登录并尝试了旧方法来重建应用程序。

root@forum:/var/discourse# ./launcher rebuild app

ERROR: Docker version 18.09.0 not supported, please upgrade to at least 20.10.0, or recommended 24.0.7

root@forum:/var/discourse# wget -qO- https://get.docker.com/ | sh

Executing docker install script, commit: 0d6f72e671ba87f7aa4c6991646a1a5b9f9dae84

Warning: the “docker” command appears to already exist on this system.

If you already have Docker installed, this script can cause trouble, which is
why we’re displaying this warning and provide the opportunity to cancel the
installation.

If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.

然后我尝试安装 docker

root@forum:/var/discourse# wget -qO- https://get.docker.com/ | sh

Executing docker install script, commit: 0d6f72e671ba87f7aa4c6991646a1a5b9f9dae84

Warning: the “docker” command appears to already exist on this system.

If you already have Docker installed, this script can cause trouble, which is
why we’re displaying this warning and provide the opportunity to cancel the
installation.

If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.

You may press Ctrl+C now to abort this script.

  • sleep 20

DEPRECATION WARNING

This Linux distribution (ubuntu bionic) reached end-of-life and is no longer supported by this script.

No updates or security fixes will be released for this distribution, and users are recommended

to upgrade to a currently maintained version of ubuntu.

ChatGPT 指导我完成了升级,包括恢复磁盘空间!

1 个赞

您必须升级到受支持的版本,才能升级 Docker。我建议迁移到一个新的 droplet。

3 个赞

但这也是另一种玩法!干得漂亮!

(拥有一个非常老的实例,其中一个问题是,你的提供商可能以相同的价格提供更新、更好的实例类型。就我而言,在相同的价格下,内存翻倍、磁盘翻倍、CPU 翻倍。)

3 个赞