

诡异 YUM 问题: 无法找到(安装卸载)一个特定的包
source link: https://www.v2ex.com/t/816495
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

CentOS 8.4 ,之前在 Nginx 官网,用编写 /etc/yum.repos.d/nginx.repo 的办法装上了 nginx stable 版本的 1.18 。
有新手在未通知我的情况下,给系统装了宝塔面板,然后我知道后,把宝塔面板给卸载了,然后噩梦就来了。
yum 安装其他包是正常的,唯独找不到 nginx 。为了确定问题在哪里,我进行了一系列测试
======
执行:yum install nginx
All matches were filtered out by exclude filtering for argument: nginx
Error: Unable to find a match: nginx
======
执行:yum remove nginx (我之前装的 nginx 还在系统上跑着,nginx 的命令还能用)
All matches were filtered out by exclude filtering for argument: nginx
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!
看到了吗?也找不到。于是我怀疑我的 /etc/yum.repos.d/ 路径下仓库配置文件被动过,于是全部删除,从正常机器上拷贝过来,然后 yum clean all ,yum makecache ,yum update 。全部执行后,问题造就。
======
执行命令: yum repolist all
nginx-stable nginx stable repo enabled
nginx 的仓库和其它正常机器上一模一样没问题
======
执行命令: yum list |grep nginx
好,现在区别来了,正常机器上有这两行
nginx.x86_64 1:1.20.1-1.el8.ngx @nginx-stable
nginx.x86_64 1:1.20.2-1.el8.ngx nginx-stable
而我的机器上缺这两行,其它的 nginx 模块都不缺。
======
执行命令: yum list installed |grep nginx
我的机器没有任何反馈,这表明 yum 认为自己未安装 nginx
现在,这个 Nginx 在我的机器上好像失踪了一般,无法被 yum 找到,但是之前被 yum 安装上去的那个 nginx 版本,还在正常的跑。我实在想不通这种现象如何产生的,我放狗翻遍国内国外社区,尝试了所有能找到的办法,除了把 yum 整个卸载重装以外的一切重置方法,我都试验过了,yum 还是找不到 Nginx ,但是安装其它的东西一切正常。
Recommend
-
143
很诡异的服务日志无法切割问题分析 ...
-
90
-
47
-
67
背景 一个服务突然所有机器开始频繁full gc。而服务本身没有任何改动和发布记录。 上线查看gc log日志,日志如下:
-
14
WPF 加载诡异的字体无法布局如果在系统里面存在诡异的字体,同时自己的 WPF 中有一个控件尝试使用这个字体放在界面中,那么将会在界面布局过程炸了,整个控件或者整个界面布局都无法继续 本文本来是由吕...
-
19
一个诡异的MySQL查询超时问题,居然隐藏着存在了两年的BUG 这一周线上碰到一个诡异的BUG...
-
10
一个线上 Maven 诡异问题排查过程 (查看原文) å. 前言 现在的大部分 Java 应用基本都是通过 Maven 进行组织的,不论是分布式应用...
-
5
V2EX › Node.js 一个诡异的问题 zhuyongqi9 · 8 小时 48 分钟前 · 236 次点击
-
8
windows上卸载DM并重新安装可能出现的问题 原创 Clinsor 2022-05-07 11:5...
-
8
Nicksxs's BlogWhat hurts more, the pain of hard work or the pain of regret?分享一次比较诡异的 Windows 下 U盘无法退出的经历
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK