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。

运行成功。

相关推荐
liulilittle1 小时前
OpenSSL 的 AES-NI 支持机制
linux·运维·服务器·算法·加密·openssl·解密
yzx9910131 小时前
柑橘检测模型
服务器·人工智能·深度学习·算法
风清再凯2 小时前
docker镜像的构建image
运维·docker·容器
饭碗、碗碗香2 小时前
【开发常用命令】:docker常用命令
linux·运维·笔记·学习·docker·容器
懒羊羊大王呀2 小时前
Ubuntu20.04中MySQL的安装和配置
linux·mysql·ubuntu
浅安的邂逅2 小时前
Ubuntu apt-get安装-报错:尝试“apt --fix-broken install”有未能满足的依赖关系,几种解决办法
linux·ubuntu·apt install
鸡鸭扣2 小时前
25年春招:米哈游运维开发一面总结
运维·面试·求职招聘·运维开发·面经·sre·米哈游
Auv开心2 小时前
ubuntu22.04和ubuntu20.04 的ssh配置不然repo init失败
运维·ssh
Viooocc2 小时前
ubuntu网络连接失败 + mobaxterm拖拽文件出错等问题解决方法
ubuntu
SZ1701102312 小时前
IGP(Interior Gateway Protocol,内部网关协议)
运维·服务器·gateway