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。

运行成功。

相关推荐
苹果醋31 小时前
机器学习算法在网络安全中的实践
java·运维·spring boot·mysql·nginx
9毫米的幻想1 小时前
【Linux系统】—— make/makefile
linux·运维·服务器
狂爱代码的码农2 小时前
ubuntu22.40安装及配置静态ip解决重启后配置失效
linux·tcp/ip·ubuntu
Web极客码2 小时前
预防和应对DDoS的方法
服务器·ddos·应用层
大耳朵土土垚3 小时前
【Linux】线程池封装与介绍
java·linux·运维
大丈夫立于天地间3 小时前
Linux 系统上安装 Docker 并进行配置
linux·运维·docker
张琦-Q3 小时前
RK3566-移植5.10内核&Ubuntu22.04
linux·网络协议·ubuntu
阿正的梦工坊5 小时前
Unix 进程的启动方式及经典和现代做法(中英双语)
服务器·unix
阿正的梦工坊5 小时前
什么是 Shell?常见的 Unix Shell有哪些?(中英双语)
linux·服务器·unix
会飞的爱迪生10 小时前
mac连接linux服务器
linux·服务器·macos