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。

运行成功。

相关推荐
运维搬运工5 小时前
nginx
运维·nginx
ChineHe5 小时前
nginx基础篇 - 入门介绍与安装教程
运维·nginx
小白爱电脑7 小时前
光纤收发器技术参数详解
运维·网络·光纤收发
桃园码工7 小时前
11-Gin 中的 Cookie --[Gin 框架入门精讲与实战案例]
运维·服务器·gin·实战案例·入门精讲
优雅孤狼7 小时前
Ansible Jinja2 语法简介及使用
运维·ansible
summersneverdie8 小时前
Ubuntu执行sudo apt-get update失败的解决方法
linux·ubuntu
winstongit8 小时前
SSH多秘钥管理
运维·ssh
ueanaIU潇潇子9 小时前
Linux系统安装es详细教程
linux·运维·elasticsearch
关关钧9 小时前
【Linux】信号处理
linux·运维·信号处理
一个单纯的少年10 小时前
HTTP STATUS CODE详情,HTTP状态码大全列表
服务器·前端·网络·后端·网络协议·http·产品运营