# Ubuntu 22.04 升级

**URL:** https://meta.discourse.org/t/ubuntu-22-04-upgrade/266380
**Category:** Self-hosting
**Created:** [2023年五月27日 14:12 UTC](https://meta.discourse.org/t/ubuntu-22-04-upgrade/266380 "2023-05-27T14:12:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![fuse](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fuse/32/221005_2.png) [@fuse](https://meta.discourse.org/u/fuse)
#### Post date: [2023年五月27日 14:12 UTC](https://meta.discourse.org/t/ubuntu-22-04-upgrade/266380/1 "2023-05-27T14:12:48Z")

</div>

在这里搜索时没找到这个。分享出来，希望能为其他人节省一些时间。

将我的 Discourse Lightsail 实例从 Ubuntu 18.04 更新到了 Ubuntu 22.04。

一切都很顺利，直到最后一次重启。

出现了 SSH 错误，无法连接。

虽然这是一个 AWS Lightsail 特定的链接，但关于 sshd 要求的通用内容可能会帮助其他人避免我花了 30 分钟寻找原因和解决方案。

一旦知道了问题，修复起来很容易。

你必须稍微滚动一下才能找到与 Ubuntu 20.04 和 22.04 的 ssh 配置相关的内容。

> **[Resolve Lightsail browser-based SSH console errors](https://repost.aws/knowledge-center/lightsail-resolve-ssh-console-errors)**
>
> I receive an UPSTREAM\_ERROR \[515\], UPSTREAM\_NOT\_FOUND \[519\], or CLIENT\_UNAUTHORIZED \[769\] message when I use the browser-based SSH console to connect to my Amazon Lightsail instance.

---

<div class="post-metadata">

### Author: ![kuydiyadri](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kuydiyadri/32/305813_2.png) [@kuydiyadri](https://meta.discourse.org/u/kuydiyadri)
#### Post date: [2023年五月28日 13:49 UTC](https://meta.discourse.org/t/ubuntu-22-04-upgrade/266380/2 "2023-05-28T13:49:43Z")

</div>

我遇到了同样的问题……我尝试修复它。😅  
但我不知道该怎么做。  
我只是创建了一个新的 Ubuntu 22.04 系统，然后安装了全新的 Discourse，并恢复了备份文件。  
搞定了。😂
