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。

运行成功。

相关推荐
weixin_604236678 分钟前
华三 路由器 极简核心配置
运维·服务器·网络·h3c·h3c路由器
鹤落晴春40 分钟前
【Linux复习】管理SELinux安全性
linux·运维·服务器
AI智图坊1 小时前
多件装组合SKU图的批量生产效率分析:从PS手工到AI自动化的工作流改造
大数据·运维·人工智能·gpt·ai作画·自动化·aigc
敲代码还房贷1 小时前
解决win7装不了vmware tools问题
ubuntu
下午写HelloWorld4 小时前
Linux系统及Ubuntu常用指令
linux·ubuntu·操作系统
lizhihai_995 小时前
股市学习心得-AI 产业链核心标的梳理清单
大数据·服务器·人工智能·科技·学习
云计算磊哥@5 小时前
运维开发宝典026-MySQL02数据库表操作
运维·数据库·运维开发
黄同学real6 小时前
解决 Visual Studio Web Deploy 远程发布报 401 未授权 (ERROR\_USER\_UNAUTHORIZED)
服务器
天天进步20156 小时前
Tunnelto 源码解析 #9:控制服务器设计:Warp、WebSocket、Ping/Pong 与连接保活
运维·服务器·websocket
极客先躯6 小时前
高级java每日一道面试题-2026年02月01日-实战篇[Docker]-Docker Volume 的生命周期管理是怎样的?
java·运维·docker·容器·持久化·架构图·容器卷