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。

运行成功。

相关推荐
晨非辰16 分钟前
【数据结构初阶系列】归并排序全透视:从算法原理全分析到源码实战应用
运维·c语言·数据结构·c++·人工智能·python·深度学习
llxxyy卢2 小时前
通关upload-labs(14-21)加分析源码
linux·运维·服务器
JosieBook3 小时前
【Rust】基于Rust 设计开发nginx运行日志高效分析工具
服务器·网络·rust
e***98574 小时前
Nginx搭建负载均衡
运维·nginx·负载均衡
电话交换机IPPBX-3CX5 小时前
电话交换机IPPBX-3CX的呼叫记录导出
运维·服务器·网络
C-DHEnry6 小时前
Linux 不小心挂载错磁盘导致无法启动系统咋办
linux·运维·服务器·雨云
JosieBook7 小时前
【若依框架】若依前后端分离项目怎么部署到服务器?
运维·服务器
q***7487 小时前
Nginx环境安装
运维·nginx
qinyia7 小时前
使用Wisdom SSH的AI多会话功能进行批量命令执行和跨服务器智能运维
运维·人工智能·ssh
f***68607 小时前
【Sql Server】sql server 2019设置远程访问,外网服务器需要设置好安全组入方向规则
运维·服务器·安全