yum安装tcpkill时出现No package dsniff available的解决方案

news/2024/7/6 4:22:50 标签: yum, install, dsniff, package, available

今天安装tcpkill的时候提示

[jiankunking@cmp24 ~]# yum -y install dsniff
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
base                                                                                                                                                                                          | 3.6 kB  00:00:00     
extras                                                                                                                                                                                        | 2.9 kB  00:00:00     
percona-release-noarch                                                                                                                                                                        | 1.5 kB  00:00:00     
percona-release-x86_64                                                                                                                                                                        | 2.9 kB  00:00:00     
prel-release-noarch                                                                                                                                                                           | 1.5 kB  00:00:00     
updates                                                                                                                                                                                       | 2.9 kB  00:00:00     
zabbix                                                                                                                                                                                        | 2.9 kB  00:00:00     
zabbix-non-supported                                                                                                                                                                          | 2.9 kB  00:00:00     
(1/4): extras/7/x86_64/primary_db                                                                                                                                                             | 250 kB  00:00:00     
(2/4): zabbix/x86_64/primary_db                                                                                                                                                               | 225 kB  00:00:00     
(3/4): updates/7/x86_64/primary_db                                                                                                                                                            |  22 MB  00:00:01     
(4/4): percona-release-x86_64/7/primary_db                                                                                                                                                    | 1.4 MB  00:00:02     
Determining fastest mirrors
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
No package dsniff available.
Error: Nothing to do

上网搜了一下解决方案

当使用yum搜索某些rpm包,找不到是因为CentOS是RedHat企业版编译过来的,去掉了所有关于版权问题的东西。安装EPEL后可以很好的解决这个问题。EPEL(Extra Packages for Enterprise Linux )即企业版Linux的扩展包,提供了很多可共Centos使用的组件,安装完这个以后基本常用的rpm都可以找到。

验证下可以

[jiankunking@cmp24 ~]# yum install -y epel-release
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================== Package                                                 Arch                                              Version                                           Repository                                         Size
=====================================================================================================================================================================================================================Installing:
 epel-release                                            noarch                                            7-11                                              extras                                             15 k

Transaction Summary
=====================================================================================================================================================================================================================Install  1 Package

Total download size: 15 k
Installed size: 24 k
Downloading packages:
epel-release-7-11.noarch.rpm                                                                                                                                                                  |  15 kB  00:00:01     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-11.noarch                                                                                                                                                                          1/1 
  Verifying  : epel-release-7-11.noarch                                                                                                                                                                          1/1 

Installed:
  epel-release.noarch 0:7-11                                                                                                                                                                                         

Complete!
[jiankunking@cmp24 ~]# yum -y install dsniff
Loaded plugins: fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
epel/x86_64/metalink                                                                                                                                                                          | 7.9 kB  00:00:00     
epel                                                                                                                                                                                          | 4.7 kB  00:00:00     
(1/3): epel/x86_64/group_gz                                                                                                                                                                   |  99 kB  00:00:00     
epel/x86_64/primary_db         FAILED                                                        1% [-                                                                                 ]  0.0 B/s |  99 kB  --:--:-- ETA 
https://ftp.yz.yamagata-u.ac.jp/pub/linux/fedora-projects/epel/7/x86_64/repodata/9e98594fb8b5a0b2cea2c2e98dbec3b34f6b239443307f7d1bee3d89e1b05c4a-primary.sqlite.bz2: [Errno 14] HTTPS Error 404 - Not Found-:-- ETA 
Trying other mirror.
To address this issue please refer to the below knowledge base article 

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/

(2/3): epel/x86_64/updateinfo                                                                                                                                                                 | 1.0 MB  00:00:00     
(3/3): epel/x86_64/primary_db                                                                                                                                                                 | 7.0 MB  00:00:00     
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: ftp.iij.ad.jp
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package dsniff.x86_64 0:2.4-0.33.b1.el7 will be installed
--> Processing Dependency: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) for package: dsniff-2.4-0.33.b1.el7.x86_64
--> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_0)(64bit) for package: dsniff-2.4-0.33.b1.el7.x86_64
--> Processing Dependency: libcrypto.so.1.1()(64bit) for package: dsniff-2.4-0.33.b1.el7.x86_64
--> Processing Dependency: libnet.so.1()(64bit) for package: dsniff-2.4-0.33.b1.el7.x86_64
--> Processing Dependency: libnids.so.1.24()(64bit) for package: dsniff-2.4-0.33.b1.el7.x86_64
--> Processing Dependency: libssl.so.1.1()(64bit) for package: dsniff-2.4-0.33.b1.el7.x86_64
--> Running transaction check
---> Package libnet.x86_64 0:1.1.6-7.el7 will be installed
---> Package libnids.x86_64 0:1.24-6.el7 will be installed
---> Package openssl11-libs.x86_64 1:1.1.1k-5.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================================================== Package                                                Arch                                           Version                                                    Repository                                    Size
=====================================================================================================================================================================================================================Installing:
 dsniff                                                 x86_64                                         2.4-0.33.b1.el7                                            epel                                         127 k
Installing for dependencies:
 libnet                                                 x86_64                                         1.1.6-7.el7                                                base                                          59 k
 libnids                                                x86_64                                         1.24-6.el7                                                 epel                                          39 k
 openssl11-libs                                         x86_64                                         1:1.1.1k-5.el7                                             epel                                         1.5 M

Transaction Summary
=====================================================================================================================================================================================================================Install  1 Package (+3 Dependent packages)

Total download size: 1.7 M
Installed size: 4.1 M
Downloading packages:
(1/4): libnet-1.1.6-7.el7.x86_64.rpm                                                                                                                                                          |  59 kB  00:00:00     
warning: /var/cache/yum/x86_64/7/epel/packages/dsniff-2.4-0.33.b1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Public key for dsniff-2.4-0.33.b1.el7.x86_64.rpm is not installed
(2/4): dsniff-2.4-0.33.b1.el7.x86_64.rpm                                                                                                                                                      | 127 kB  00:00:00     
(3/4): libnids-1.24-6.el7.x86_64.rpm                                                                                                                                                          |  39 kB  00:00:00     
(4/4): openssl11-libs-1.1.1k-5.el7.x86_64.rpm                                                                                                                                                 | 1.5 MB  00:00:00     
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total                                                                                                                                                                                4.6 MB/s | 1.7 MB  00:00:00     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
 Userid     : "Fedora EPEL (7) <epel@fedoraproject.org>"
 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Package    : epel-release-7-11.noarch (@extras)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libnet-1.1.6-7.el7.x86_64                                                                                                                                                                         1/4 
  Installing : libnids-1.24-6.el7.x86_64                                                                                                                                                                         2/4 
  Installing : 1:openssl11-libs-1.1.1k-5.el7.x86_64                                                                                                                                                              3/4 
  Installing : dsniff-2.4-0.33.b1.el7.x86_64                                                                                                                                                                     4/4 
  Verifying  : libnet-1.1.6-7.el7.x86_64                                                                                                                                                                         1/4 
  Verifying  : libnids-1.24-6.el7.x86_64                                                                                                                                                                         2/4 
  Verifying  : 1:openssl11-libs-1.1.1k-5.el7.x86_64                                                                                                                                                              3/4 
  Verifying  : dsniff-2.4-0.33.b1.el7.x86_64                                                                                                                                                                     4/4 

Installed:
  dsniff.x86_64 0:2.4-0.33.b1.el7                                                                                                                                                                                    

Dependency Installed:
  libnet.x86_64 0:1.1.6-7.el7                                        libnids.x86_64 0:1.24-6.el7                                        openssl11-libs.x86_64 1:1.1.1k-5.el7                                       

Complete!
[jiankunking@cmp24 ~]# 

http://www.niftyadmin.cn/n/4926400.html

相关文章

【golang】库源码文件

库源码文件是不能被直接运行的源码文件&#xff0c;它仅用于存放程序实体&#xff0c;这些程序实体可以被其他代码使用&#xff08;只要遵从Go语言规范的话&#xff09;。 这里的“其他代码”可以与被使用的程序实体在同一个源码文件内&#xff0c;也可以在其他源码文件&#x…

541. 反转字符串 II+557.反转字符串中的单词 3

一、541.题目 541. 反转字符串 II - 力扣&#xff08;LeetCode&#xff09; 二、代码 class Solution { public:void reverse_begin_end(string& s, int begin, int end) {while (begin < end){swap(s[begin], s[end]);begin;end--;} } string reverseStr(string s, i…

C++中vector、list和deque的选择:什么时候使用它们?

系列文章目录 文章目录 系列文章目录前言一、vector二、list三、deque总结 前言 在C中&#xff0c;vector、list和deque是STL&#xff08;标准模板库&#xff09;提供的三种常见的容器。每种容器都有其特点和适用场景。本文将详细介绍vector、list和deque的特点以及它们的适用…

Unity学习笔记--使用 C# 开发一个 LRU

目录 什么是 LRULRU 核心思想代码实现一&#xff1a;双向链表 哈希表分析代码实现二&#xff1a;OrderedDictionary分析项目案例预告结尾 什么是 LRU 在计算机系统中&#xff0c;LRU&#xff08;Least Recently Used&#xff0c;最近最少使用&#xff09;是一种缓存置换算法。…

Linux x86_64架构 动态替换 altinstructions

文章目录 前言一、alternative宏1.1 alternative宏1.2 ALTERNATIVE宏1.3 .pushsection和popsection1.4 OLDINSTR宏1.5 ALTINSTR_ENTRY宏1.6 ALTINSTR_REPLACEMENT宏 二、altinstructions节三、.altinstr_replacement 节四、内核模块重定位源码分析参考资料 前言 内核版本&…

工具推荐:Wireshark网络协议分析工具(对比tcpdump)

文章首发地址 Wireshark是一款开源的网络协议分析工具&#xff0c;可以捕获网络数据包并对其进行详细的分析和解释。下面是Wireshark的详细介绍&#xff1a; Wireshark 工作原理 Wireshark通过捕获网络接口上的数据包&#xff0c;将其转换为可读的格式&#xff0c;并在界面…

Stable Diffusion - 运动服 (Gymwear Leggings) 风格服装与背景的 LoRA 配置

欢迎关注我的CSDN&#xff1a;https://spike.blog.csdn.net/ 本文地址&#xff1a;https://spike.blog.csdn.net/article/details/132179050 图像由 DreamShaper 8 模型 leggings_better LoRA 模型联合生成。 测试模型&#xff1a;DreamShaper 8 运动裤 (Gymwear Leggings) 是…

爬虫012_字典高级操作_查询_修改_添加_删除和清空_遍历---python工作笔记031

然后来看字典高级,首先 打印某个元素 然后打印的时候注意,如果直接打印的值,在字典中没有就报错 这里要注意不能用点访问