Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation package net-snmp failed. #235

Open
fitzwar opened this issue Feb 24, 2022 · 2 comments
Open

Installation package net-snmp failed. #235

fitzwar opened this issue Feb 24, 2022 · 2 comments

Comments

@fitzwar
Copy link

fitzwar commented Feb 24, 2022

Hi,

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

@teddysun
Copy link
Owner

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.

@fitzwar
Copy link
Author

fitzwar commented Mar 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants