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。

运行成功。

相关推荐
国际云,接待27 分钟前
AWS在跨境电商中的全场景实践与未来生态构建
运维·服务器·人工智能·科技·云计算·aws
明晚十点睡35 分钟前
Vscode (Windows端)免密登录linux集群服务器
linux·服务器·vscode
朝阳5812 小时前
在一台服务器上通过 Nginx 配置实现不同子域名访问静态文件和后端服务
服务器·前端·nginx
学渣676562 小时前
mac连接lniux服务器教学笔记
服务器·笔记·macos
云卓SKYDROID2 小时前
物流无人机自动化装卸技术解析!
运维·人工智能·自动化·无人机·科普·遥控器·云卓科技
小米bb2 小时前
nginx之proxy_redirect应用
运维·nginx
余辉zmh2 小时前
【Linux系统篇】:Linux线程控制基础---线程的创建,等待与终止
linux·运维·服务器
秋说3 小时前
监控系统进阶方案:OpenObserve的Docker部署与远程访问配置指南
运维·docker·容器
oioihoii4 小时前
C++23 views::as_rvalue (P2446R2) 深入解析
运维·服务器·c++23