欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 文旅 > 美景 > Dell服务器升级ubuntu 22.04失败解决

Dell服务器升级ubuntu 22.04失败解决

2025/2/13 14:28:57 来源:https://blog.csdn.net/bigwood99/article/details/144844899  浏览:    关键词:Dell服务器升级ubuntu 22.04失败解决

ubuntu系统原版本20.04,服务器dell T40.

执行apt update后,再执行apt upgrade。

apt update执行成功,但apt upgrade执行中断,提示如下:

Checking package manager
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Hit http://mirrors.aliyun.com/ubuntu focal InRelease                                                                                  
Hit http://mirrors.aliyun.com/ubuntu focal-updates InRelease                                                                          
Hit http://mirrors.aliyun.com/ubuntu focal-backports InRelease                                                                        
Hit http://mirrors.aliyun.com/ubuntu focal-security InRelease                                                                         
Fetched 0 B in 0s (0 B/s)                                                                                                             
Reading package lists... Done    
Building dependency tree          
Reading state information... Done

You are using pam_tally or pam_tally2 in your configuration. 

The pam_tally and pam_tally2 modules have been removed from PAM. You 
are using one of these modules in your PAM configuration in 
/etc/pam.d. You must remove the uses of these modules before PAM can 
be upgraded; including these modules in your PAM configuration after 
the upgrade will stop users from being able to log into the system. 

Consider the pam_faillock module as a replacement for pam_tally. 


Restoring original system state
 

进入/etc/pam.d目录

使用命令:

grep pam *

将所有pam相关的配置行使用#注释掉。

保存文件,再次执行apt upgrade。

运行成功。

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com