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。

运行成功。

相关推荐
无奈笑天下1 小时前
Linux上kdump故障标准处理流程
linux·运维·服务器·github
鹤落晴春4 小时前
【MySQL】 | 两阶段提交、主从复制
运维·数据库·mysql
瑞雪兆丰年兮5 小时前
Linux快速入门 第四章 Linux系统常用操作技巧
linux·运维·服务器
星恒随风6 小时前
从0实现C++ AI大模型接入SDK(四):大模型API接入、公共数据结构设计与日志库封装
linux·服务器·数据结构·c++·人工智能
时间的拾荒人6 小时前
Linux进程间通信(上篇):匿名管道 +进程池(基于匿名管道实现)
linux·服务器·管道
无足鸟ICT7 小时前
【RHCA+】介绍proc
linux·运维·服务器
布莱克6059 小时前
Swift 下标(Subscript)详解:从语法到实战
服务器·开发语言·ios·ssh·swift·下标
Decay__11 小时前
PostgreSQL 用户权限与安全 —— 角色体系、GRANT 授权、pg_hba.conf 认证、行级安全与审计
运维·数据库·sql·postgresql
fengkai454511 小时前
Python运维实战
运维·开发语言·python·ssh·sftp·paramiko
那明眸似水12 小时前
LVS高可用负载均衡集群部署实训
运维·负载均衡·lvs