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。

运行成功。

相关推荐
2401_8789377138 分钟前
dockerfile
运维
KeyPan1 小时前
【Ubuntu与Linux操作系统:一、Ubuntu安装与基本使用】
linux·运维·服务器·人工智能·深度学习·ubuntu·机器学习
xyzzklk1 小时前
解决无法远程管理Windows Server服务器核心安装
运维·服务器·网络·windows·网络协议·安全
华子w9089258591 小时前
基于spingbott+html+Thymeleaf的24小时智能服务器监控平台设计与实现
服务器·前端·html
大数据探索者1 小时前
Centos集群同步文件脚本xsync
linux·运维·centos
鲁正杰1 小时前
【centos】校时服务创建-频率修改
linux·运维·centos
weisian1512 小时前
Mysql--运维篇--备份和恢复(逻辑备份,mysqldump,物理备份,热备份,温备份,冷备份,二进制文件备份和恢复等)
运维·mysql
Mapmost2 小时前
【三维数域】三维数据调度-负载均衡和资源优化
运维·负载均衡
这题怎么做?!?2 小时前
从epoll事件的视角探讨TCP:三次握手、四次挥手、应用层与传输层之间的联系
服务器·网络·tcp/ip
fanwenhu2 小时前
ESXI 安装教程(3) ---vCenter Server 安装
运维·服务器