lamp icon indicating copy to clipboard operation
lamp copied to clipboard

Installation package net-snmp failed.

Open fitzwar opened this issue 3 years ago • 2 comments

Hi,

Currently running CentOS 8 Stream and install fails with the following error: 'Installation package net-snmp failed.'

fitzwar avatar Feb 24 '22 15:02 fitzwar

Name         : net-snmp
Epoch        : 1
Version      : 5.8
Release      : 22.el8
Architecture : x86_64
Size         : 872 k
Source       : net-snmp-5.8-22.el8.src.rpm
Repository   : @System
From repo    : appstream
Summary      : A collection of SNMP protocol tools and libraries
URL          : http://net-snmp.sourceforge.net/
License      : BSD
Description  : SNMP (Simple Network Management Protocol) is a protocol used for
             : network management. The NET-SNMP project includes various SNMP tools:
             : an extensible agent, an SNMP library, tools for requesting or setting
             : information from SNMP agents, tools for generating and handling SNMP
             : traps, a version of the netstat command which uses SNMP, and a Tk/Perl
             : mib browser. This package contains the snmpd and snmptrapd daemons,
             : documentation, etc.
             : 
             : You will probably also want to install the net-snmp-utils package,
             : which contains NET-SNMP utilities.

net-snmp is need to enabled Appstream repo. CentOS Linux 8 had reached the End Of Life (EOL) on December 31st, 2021. It means that CentOS 8 will no longer receive development resources from the official CentOS project. After Dec 31st, 2021, if you need to update your CentOS, you need to change the mirrors to vault.centos.org where they will be archived permanently. Alternatively, you may want to upgrade to CentOS Stream. How to fix “Failed to synchronize cache for repo appstream”?

dnf clean all
rm -rf /var/cache/dnf
cd /etc/yum.repos.d/
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
dnf update

That’s it.

teddysun avatar Feb 25 '22 00:02 teddysun

Applied this, it now installs net-snmp, but now we get an error lua-devel is not installing ?

fitzwar avatar Mar 03 '22 18:03 fitzwar