Unable to upgrade using yum or dnf

Before you post: Your responses to these questions will help the community help you. Please complete this template if you’re asking a support question.
Don’t forget to select tags to help index your topic!

1. Describe your incident:

sudo dnf upgrade graylog
graylog 366 B/s | 406 B 00:01
graylog 916 kB/s | 938 B 00:00
graylog 396 B/s | 406 B 00:01
Errors during downloading metadata for repository ‘graylog’:

  • Status code: 404 for ://packages.graylog2.org/repo/el/stable/4.3/x86_64/repodata/repomd.xml.asc (IP: 54.91.6.89)
  • Status code: 404 for ://packages.graylog2.org/repo/el/stable/4.3/x86_64/repodata/repomd.xml.asc (IP: 54.196.16.164)
    Error: Failed to download metadata for repo ‘graylog’: GPG verification is enabled, but GPG signature is not available. This may be an error or the repository does not support GPG verification: Status code: 404 for ://packages.graylog2.org/repo/el/stable/4.3/x86_64/repodata/repomd.xml.asc (IP: 54.196.16.164)

2. Describe your environment:

  • OS Information: Rocky Linux release 9.0 (Blue Onyx)

  • Package Version: 4.3

  • Service logs, configurations, and environment variables:
    sudo cat /etc/yum.repos.d/graylog.repo

[graylog]

name=graylog

baseurl=https://packages.graylog2.org/repo/el/stable/4.3/$basearch/

gpgcheck=1

repo_gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-graylog

3. What steps have you already taken to try and solve the problem?
Have tried making edits to the repos file
have tried:
sudo dnf clean packages
sudo rpm --rebuilddb -v
sudo dnf update --refresh

4. How can the community help?

Helpful Posting Tips: Tips for Posting Questions that Get Answers [Hold down CTRL and link on link to open tips documents in a separate tab]

Hey @MK2022
Since this is red hat fork you should be able to use YUM

yum update
sudo rpm -Uvh https://packages.graylog2.org/repo/packages/graylog-4.3-repository_latest.rpm
sudo yum install graylog-server graylog-enterprise-plugins graylog-integrations-plugins graylog-enterprise-integrations-plugins

This is the documentation needed for installing here

Thank you for your suggestion. Unfortunately, this does not work, to wit:

sudo yum update
[sudo] password for @:
graylog 265 B/s | 406 B 00:01
graylog 916 kB/s | 938 B 00:00
graylog 377 B/s | 406 B 00:01
Errors during downloading metadata for repository ‘graylog’:

sudo rpm -Uvh ://packages.graylog2.org/repo/packages/graylog-4.3-repository_latest.rpm

Retrieving ://packages.graylog2.org/repo/packages/graylog-4.3-repository_latest.rpm

error: /var/tmp/rpm-tmp.FvFjmT: Header V4 RSA/SHA1 Signature, key ID b1606f22: BAD

error: /var/tmp/rpm-tmp.FvFjmT cannot be installed

sudo yum install graylog-server graylog-enterprise-plugins graylog-integrations-plugins graylog-enterprise-integrations-plugins
graylog 361 B/s | 406 B 00:01
graylog 916 kB/s | 938 B 00:00
graylog 387 B/s | 406 B 00:01
Errors during downloading metadata for repository ‘graylog’:

  • Status code: 404 for ://packages.graylog2.org/repo/el/stable/4.3/x86_64/repodata/repomd.xml.asc (IP: 54.91.6.89)
  • Status code: 404 for ://packages.graylog2.org/repo/el/stable/4.3/x86_64/repodata/repomd.xml.asc (IP: 54.196.16.164)
    Error: Failed to download metadata for repo ‘graylog’: GPG verification is enabled, but GPG signature is not available. This may be an error or the repository does not support GPG verification: Status code: 404 for ://packages.graylog2.org/repo/el/stable/4.3/x86_64/repodata/repomd.xml.asc (IP: 54.196.16.164)

Please let me know if there are any other commands to try.

Hey @MK2022

You have something funky going on with your system.
Try cleaning your repo for graylog, perhaps also do a root # yum clean all

Just make sure your old Graylog-Repo is gone.

Then try it again.

yum update

sudo rpm -Uvh https://packages.graylog2.org/repo/packages/graylog-4.3-repository_latest.rpm
sudo yum install graylog-server graylog-enterprise-plugins graylog-integrations-plugins graylog-enterprise-integrations-plugins

NOTE: by chance did you execute root # yum install epel-release?

@MK2022

Took some time to make it simple for ya.

Steps

  • list all your repos
root # yum repolist
  • Remove Graylog repo and ensure you put the correct full name. Below is an example.
root # yum remove graylog*
  • Check repo directory to ensure it clean.
root # ls  -al /etc/yum.repos.d/

NOTE: If you still see your Graylog repo then force remove it. Two ways to do this, use the full path or enter the repoistory and remove it from there.

root # rm -rf  /etc/yum.repos.d/graylog*
  • Even thou Graylog repo is/was deleted run.
root # yum clean all 

Then run the following.

root # yum install epel-release
root # yum update
root # sudo rpm -Uvh https://packages.graylog2.org/repo/packages/graylog-4.3-repository_latest.rpm
root # sudo yum install graylog-server graylog-enterprise-plugins graylog-integrations-plugins graylog-enterprise-integrations-plugins

Hope it helps.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.