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。

运行成功。

相关推荐
Ricky_Theseus2 分钟前
SPOOLING 系统详解
linux·服务器·数据库
实在智能RPA6 分钟前
Agent上线后有专人运营支持吗?深度解析AI Agent的全生命周期运维保障体系
运维·人工智能·ai
木心术17 分钟前
OpenClaw数据库自动化部署与网站接口调通全流程指南
运维·数据库·自动化
ulias2128 分钟前
Linux中的基本命令符
linux·运维·服务器
桌面运维家41 分钟前
服务器RAID优化:IOPS性能与数据安全实战指南
运维·服务器·网络
HABuo1 小时前
【linux线程(二)】线程互斥、线程同步、条件变量详细剖析
linux·运维·服务器·c语言·c++·ubuntu·centos
crossaspeed1 小时前
Nginx配置文件详解
运维·nginx
熙客1 小时前
Nginx安装与使用
运维·nginx
小五传输1 小时前
Rsync已过时?新一代服务器文件自动同步软件实现跨平台同步
大数据·运维·安全