Recent Update error - missing opendkim,zstd etc

NethServer Version: 7.5.1804

In my recent update to my email server I encountered the error below… Not able to apply updates…Not sure what to do …

Error: Package: nethserver-mail-server-2.3.0-1.ns7.noarch (nethserver-updates)
Requires: opendkim
Error: Package: nethserver-mail-filter-2.3.0-1.ns7.noarch (nethserver-updates)
Requires: zstd
Error: Package: rspamd-1.7.8-1.x86_64 (nethserver-updates)
Requires: libfann.so.2()(64bit)

1 Like

Do you have EPEL repo enabled?

Please attach the output of

 yum repolist -v

Here are what I got…
Setting up Package Sacks
pkgsack time: 0.022
Repo-id : base/7/x86_64
Repo-name : CentOS-7 - Base
Repo-revision: 1525378614
Repo-updated : Thu May 3 13:17:37 2018
Repo-pkgs : 9,911
Repo-size : 8.2 G
Repo-mirrors : http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock
Repo-baseurl : http://mirror.its.sfu.ca/mirror/CentOS/7.5.1804/os/x86_64/ (9
: more)
Repo-expire : 21,600 second(s) (last: Wed Oct 3 06:39:06 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

Repo-id : centos-sclo-rh/x86_64
Repo-name : CentOS-7 - SCLo rh
Repo-revision: 1537954611
Repo-updated : Wed Sep 26 02:39:05 2018
Repo-pkgs : 8,058
Repo-size : 7.2 G
Repo-baseurl : http://mirror.centos.org/centos/7/sclo/x86_64/rh/
Repo-expire : 21,600 second(s) (last: Wed Oct 3 06:39:06 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo

Repo-id : centos-sclo-sclo/x86_64
Repo-name : CentOS-7 - SCLo sclo
Repo-revision: 1538384702
Repo-updated : Mon Oct 1 02:05:07 2018
Repo-pkgs : 775
Repo-size : 241 M
Repo-baseurl : http://mirror.centos.org/centos/7/sclo/x86_64/sclo/
Repo-expire : 21,600 second(s) (last: Wed Oct 3 06:39:06 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-SCLo-scl.repo

Repo-id : extras/7/x86_64
Repo-name : CentOS-7 - Extras
Repo-revision: 1538491437
Repo-updated : Tue Oct 2 07:47:48 2018
Repo-pkgs : 432
Repo-size : 806 M
Repo-mirrors : http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock
Repo-baseurl : http://mirror.its.sfu.ca/mirror/CentOS/7.5.1804/extras/x86_64/ (9
: more)
Repo-expire : 21,600 second(s) (last: Wed Oct 3 06:39:06 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

Repo-id : nethforge/7/x86_64
Repo-name : NethForge 7
Repo-revision: 1536772166
Repo-updated : Wed Sep 12 10:09:27 2018
Repo-pkgs : 45
Repo-size : 148 M
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=nethforge&arch=x86_64&nsrelease=
Repo-baseurl : http://mirror.nethserver.org/nethserver/7.5.1804/nethforge/x86_64/
: (14 more)
Repo-expire : 21,600 second(s) (last: Wed Oct 3 06:39:07 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/NethForge.repo

Repo-id : nethserver-base/7/x86_64
Repo-name : NethServer-7 - Base
Repo-revision: 1528711431
Repo-updated : Mon Jun 11 03:03:55 2018
Repo-pkgs : 283
Repo-size : 1.0 G
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=base&arch=x86_64&nsrelease=
Repo-baseurl : http://mirror.nethserver.org/nethserver/7.5.1804/base/x86_64/ (14
: more)
Repo-expire : 21,600 second(s) (last: Wed Oct 3 06:39:07 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/NethServer.repo

Repo-id : nethserver-updates/7/x86_64
Repo-name : NethServer-7 - Updates
Repo-revision: 1538561035
Repo-updated : Wed Oct 3 03:04:08 2018
Repo-pkgs : 267
Repo-size : 683 M
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=updates&arch=x86_64&nsrelease=
Repo-baseurl : http://mirror.nethserver.org/nethserver/7.5.1804/updates/x86_64/
: (14 more)
Repo-expire : 21,600 second(s) (last: Wed Oct 3 06:39:07 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/NethServer.repo

Repo-id : stephdl/7
Repo-name : Stephdl (Stephane de Labrusse) repository for nethserver 7 -
: x86_64
Repo-revision: 1538573582
Repo-updated : Wed Oct 3 06:33:05 2018
Repo-pkgs : 124
Repo-size : 220 M
Repo-baseurl : http://mirror.de-labrusse.fr/NethServer/7/
Repo-expire : 21,600 second(s) (last: Wed Oct 3 06:39:07 2018)
Filter : read-only:present
Repo-excluded: 118
Repo-filename: /etc/yum.repos.d/stephdl.repo

Repo-id : updates/7/x86_64
Repo-name : CentOS-7 - Updates
Repo-revision: 1538146927
Repo-updated : Fri Sep 28 08:12:13 2018
Repo-pkgs : 1,540
Repo-size : 4.9 G
Repo-mirrors : http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates&infra=stock
Repo-baseurl : http://mirror.its.sfu.ca/mirror/CentOS/7.5.1804/updates/x86_64/
: (9 more)
Repo-expire : 21,600 second(s) (last: Wed Oct 3 06:39:07 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

repolist: 21,435

How do I check if I have EPEL repo enabled ? Thank you…

As EPEL is not listed, try

rm -fv /etc/yum.repos.d/epel*.repo
yum clean all
yum reinstall epel-release

after running the commands … and yum update… I’m getting this messages


One of the configured repositories failed (Unknown),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this:

 1. Contact the upstream for the repository and get them to fix the problem.

 2. Reconfigure the baseurl/etc. for the repository, to point to a working
    upstream. This is most often useful if you are using a newer
    distribution release than is supported by the repository (and the
    packages for the previous distribution release still work).

 3. Run the command with the repository temporarily disabled
        yum --disablerepo=<repoid> ...

 4. Disable the repository permanently, so yum won't use it by default. Yum
    will then just ignore the repository until you permanently enable it
    again or use --enablerepo for temporary usage:

        yum-config-manager --disable <repoid>
    or
        subscription-manager repos --disable=<repoid>

 5. Configure the failing repository to be skipped, if it is unavailable.
    Note that yum will try to contact the repo. when it runs most commands,
    so will have to try and fail each time (and thus. yum will be be much
    slower). If it is a very temporary problem though, this is often a nice
    compromise:

        yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

Please try to run

 yum clean all
 yum reinstall epel-release

Question: Did you enable the “Locked” policy in software center?

The Software center policy is in Unlocked status…

This after running ```
yum reinstall epel-release
I get same message as before . …
Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

What is in /etc/yum.repos.d/ ?

 ls -l /etc/yum.repos.d/*

Here are what I got…
-rw-r–r-- 1 root root 1664 Aug 13 07:34 /etc/yum.repos.d/CentOS-Base.repo
-rw-r–r-- 1 root root 1309 Aug 13 07:34 /etc/yum.repos.d/CentOS-CR.repo
-rw-r–r-- 1 root root 649 Aug 13 07:34 /etc/yum.repos.d/CentOS-Debuginfo.repo
-rw-r–r-- 1 root root 314 Aug 13 07:34 /etc/yum.repos.d/CentOS-fasttrack.repo
-rw-r–r-- 1 root root 630 Aug 13 07:34 /etc/yum.repos.d/CentOS-Media.repo
-rw-r–r--. 1 root root 916 May 23 2016 /etc/yum.repos.d/CentOS-SCLo-scl.repo
-rw-r–r--. 1 root root 892 May 23 2016 /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo
-rw-r–r-- 1 root root 1331 Aug 13 07:34 /etc/yum.repos.d/CentOS-Sources.repo
-rw-r–r-- 1 root root 4768 Aug 13 07:34 /etc/yum.repos.d/CentOS-Vault.repo
-rw-r–r-- 1 root root 951 Oct 2 2017 /etc/yum.repos.d/epel.repo
-rw-r–r-- 1 root root 1050 Oct 2 2017 /etc/yum.repos.d/epel-testing.repo
-rw-r–r-- 1 root root 671 May 31 08:46 /etc/yum.repos.d/NethForge.repo
-rw-r–r-- 1 root root 1075 Jun 8 06:37 /etc/yum.repos.d/NethServer.repo
-rw-r–r-- 1 root root 1160 Jun 8 06:37 /etc/yum.repos.d/NsReleaseLock.repo
-rw-r–r-- 1 root root 228 Aug 21 07:52 /etc/yum.repos.d/stephdl.repo

when checking the /etc/yum.repos.d/epel.repo file… I see this

[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

Try

 curl -v 'https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64'

Seems to be stuck…here’s what I got the screen at the moment…

  • About to connect() to mirrors.fedoraproject.org port 443 (#0)
  • Trying 8.43.85.67…
  • Connected to mirrors.fedoraproject.org (8.43.85.67) port 443 (#0)
  • Initializing NSS with certpath: sql:/etc/pki/nssdb
  • CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath: none
1 Like

Still seems to stuck… I have to use CTL-C to exit

I un-commented this line

#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
… and yum update… it seems to be trying to update and trying other mirror sites when failed to find the files… still failing to find opendkim, zstd files…

it seems my settings not able to find other mirror server if I restore original setting server to ‘https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64’

Also I’m getting ‘Cannot retrieve metalink for repository: epel/x86_64’ if I run from software center …

I wonder if all my problems are dued to installingthe “nethserver-testing” on this server I ran in early May this year… How do I clean all previous testing configuration ?

I see all this directories in my /var/lib/yum/repos/x86_64/7

drwxr-xr-x. 2 root root 6 Aug 29 2017 anaconda
drwxr-xr-x. 2 root root 6 Aug 29 2017 base
drwxr-xr-x 2 root root 6 May 18 08:45 base-debuginfo
drwxr-xr-x 2 root root 6 May 18 08:45 base-source
drwxr-xr-x 2 root root 6 May 18 08:45 C7.0.1406-base
drwxr-xr-x 2 root root 6 May 18 08:45 C7.0.1406-centosplus
drwxr-xr-x 2 root root 6 May 18 08:45 C7.0.1406-extras
drwxr-xr-x 2 root root 6 May 18 08:45 C7.0.1406-fasttrack
drwxr-xr-x 2 root root 6 May 18 08:45 C7.0.1406-updates
drwxr-xr-x 2 root root 6 May 18 08:45 C7.1.1503-base
drwxr-xr-x 2 root root 6 May 18 08:45 C7.1.1503-centosplus
drwxr-xr-x 2 root root 6 May 18 08:45 C7.1.1503-extras
drwxr-xr-x 2 root root 6 May 18 08:45 C7.1.1503-fasttrack
drwxr-xr-x 2 root root 6 May 18 08:45 C7.1.1503-updates
drwxr-xr-x 2 root root 6 May 18 08:45 C7.2.1511-base
drwxr-xr-x 2 root root 6 May 18 08:45 C7.2.1511-centosplus
drwxr-xr-x 2 root root 6 May 18 08:45 C7.2.1511-extras
drwxr-xr-x 2 root root 6 May 18 08:45 C7.2.1511-fasttrack
drwxr-xr-x 2 root root 6 May 18 08:45 C7.2.1511-updates
drwxr-xr-x 2 root root 6 May 18 08:45 C7.3.1611-base
drwxr-xr-x 2 root root 6 May 18 08:45 C7.3.1611-centosplus
drwxr-xr-x 2 root root 6 May 18 08:45 C7.3.1611-extras
drwxr-xr-x 2 root root 6 May 18 08:45 C7.3.1611-fasttrack
drwxr-xr-x 2 root root 6 May 18 08:45 C7.3.1611-updates
drwxr-xr-x 2 root root 6 May 18 08:45 C7.4.1708-base
drwxr-xr-x 2 root root 6 May 18 08:45 C7.4.1708-centosplus
drwxr-xr-x 2 root root 6 May 18 08:45 C7.4.1708-extras
drwxr-xr-x 2 root root 6 May 18 08:45 C7.4.1708-fasttrack
drwxr-xr-x 2 root root 6 May 18 08:45 C7.4.1708-updates
drwxr-xr-x 2 root root 6 May 18 08:45 c7-media
drwxr-xr-x 2 root root 6 May 18 08:45 centosplus
drwxr-xr-x 2 root root 6 May 18 08:45 centosplus-source
drwxr-xr-x. 2 root root 6 Aug 29 2017 centos-sclo-rh
drwxr-xr-x 2 root root 6 May 18 08:45 centos-sclo-rh-debuginfo
drwxr-xr-x 2 root root 6 May 18 08:45 centos-sclo-rh-source
drwxr-xr-x 2 root root 6 May 18 08:45 centos-sclo-rh-testing
drwxr-xr-x. 2 root root 6 Aug 29 2017 centos-sclo-sclo
drwxr-xr-x 2 root root 6 May 18 08:45 centos-sclo-sclo-debuginfo
drwxr-xr-x 2 root root 6 May 18 08:45 centos-sclo-sclo-source
drwxr-xr-x 2 root root 6 May 18 08:45 centos-sclo-sclo-testing
drwxr-xr-x 2 root root 6 May 18 08:45 cr
drwxr-xr-x. 2 root root 6 Aug 29 2017 epel
drwxr-xr-x 2 root root 6 May 18 08:45 epel-debuginfo
drwxr-xr-x 2 root root 6 May 18 08:45 epel-source
drwxr-xr-x 2 root root 6 May 18 08:45 epel-testing
drwxr-xr-x 2 root root 6 May 18 08:45 epel-testing-debuginfo
drwxr-xr-x 2 root root 6 May 18 08:45 epel-testing-source
drwxr-xr-x. 2 root root 6 Aug 29 2017 extras
drwxr-xr-x 2 root root 6 May 18 08:45 extras-source
drwxr-xr-x 2 root root 6 May 18 08:45 fasttrack
drwxr-xr-x. 2 root root 6 Aug 29 2017 nethforge
drwxr-xr-x 2 root root 6 May 18 08:45 nethforge-testing
drwxr-xr-x. 2 root root 6 Aug 29 2017 nethserver
drwxr-xr-x. 2 root root 6 Aug 29 2017 nethserver-base
drwxr-xr-x 2 root root 6 May 18 08:45 nethserver-testing
drwxr-xr-x. 2 root root 6 Aug 29 2017 nethserver-updates
drwxr-xr-x 2 root root 6 Aug 31 2017 stephdl
drwxr-xr-x. 2 root root 6 Aug 29 2017 updates
drwxr-xr-x 2 root root 6 May 18 08:45 updates-source