自从更新到 22.04 后,sudo 密码错误,输出奇怪的消息

自从更新到 22.04 后,sudo 密码错误,输出奇怪的消息

自发布升级(更新)至 Ubuntu 22.04.1 LTS 以来,

使用sudo,但是输错密码,因此使用错误的密码会导致以下附加输出:

## any command seems to work, tried with `ls` or `apt-get update`
sudo ls 
[sudo] password for MYUSER:
When trying to update a password, this return status indicates that the value provided as the current password is not correct.
Sorry, try again.
[sudo] password for MYUSER:

附加短语“尝试更新时...不正确“似乎与用户失败时的其他错误消息不匹配?

如果您需要额外的输入,请告诉我 - 我目前不知道这是从哪里来的 - 但这对我来说毫无意义并且看起来像是一个错误。

  • 该机器是 vmware 虚拟机(兼容 ESXi 5.0 及更高版本,VM 版本 8),非常接近真实的金属;纯 Ubuntu“服务器”安装(无头/无 GUI,只有 ssh),但很久以前就完成了(12.04 LTS?)do-release-upgrade每两年一次,可用。
  • puTTY通常我使用 sgTatham和密钥文件从 Windows 笔记本电脑登录- 因此我只需要密码即可sudo
  • 因此现在我尝试使用ssh密码从命令窗口进行正常会话,但是会不会更奇怪
c:\>ssh -l MYUSER MYSERVER
MYUSER@MYSERVER's password:
Permission denied, please try again.
MYUSER@MYSERVER's password:
Permission denied, please try again.
MYUSER@MYSERVER's password:
When trying to update a password, this return status indicates that the value provided as the current password is not correct.
When trying to update a password, this return status indicates that the value provided as the current password is not correct.
When trying to update a password, this return status indicates that the value provided as the current password is not correct.
When trying to update a password, this return status indicates that the value provided as the current password is not correct.

Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-47-generic x86_64)

  System information as of Sat Sep 17 04:35:24 PM CEST 2022

  System load:  0.0                Processes:               189
  Usage of /:   52.5% of 29.38GB   Users logged in:         1
  Memory usage: 20%                IPv4 address for ens160: 172.31.***.***
  Swap usage:   0%

  => /srv/svn is using 91.0% of 334.55GB

0 updates can be applied immediately.

You have no mail.
  • 使用正确的密码登录会出现与sudo ls一开始输入错误密码时相同的情况。
  • 使用错误/输错密码登录(超过 2 次)将获得额外的成功后的消息,第三次尝试 - 但每次失败两次(4x);
  • 重复此操作,如果只有一次 (1) 错误尝试,则只会产生一条双线 (2x)。

相关内容