Epel repo on NethServer 7 ARM

,

NethServer Version: 7.8.2003 (Final)

I am running NethServer on a Raspberry Pi 3 B and I am wanting to install the standard epel repo. When I try to install it, I get the following:

# yum install epel-release
Loaded plugins: changelog, fastestmirror, nethserver_events, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Loading mirror speeds from cached hostfile
 * ce-base: mirror.freethought-internet.co.uk
 * ce-extras: mirror.freethought-internet.co.uk
 * ce-updates: mirror.freethought-internet.co.uk
 * centos-kernel: mirror.freethought-internet.co.uk
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-12 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================================================================================================================================================================================================
 Package                                                                 Arch                                                              Version                                                          Repository                                                       Size
==================================================================================================================================================================================================================================================================================
Installing:
 epel-release                                                            noarch                                                            7-12                                                             epel                                                             14 k

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

Total size: 14 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test


Transaction check error:
  file /etc/yum.repos.d/epel.repo from install of epel-release-7-12.noarch conflicts with file from package nethserver-arm-epel-7-1.ns7.armv7hl

Error Summary
-------------

So I do the following:

# yum repolist
Loaded plugins: changelog, fastestmirror, nethserver_events, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Loading mirror speeds from cached hostfile
 * ce-base: mirror.freethought-internet.co.uk
 * ce-extras: mirror.freethought-internet.co.uk
 * ce-updates: mirror.freethought-internet.co.uk
 * centos-kernel: mirror.freethought-internet.co.uk
repo id                                                                          repo name                                                                                                                status
ce-base/7/armhfp                                                                 CE-Base-7.8.2003                                                                                                          7,454
ce-extras/7/armhfp                                                               CE-Extras-7.8.2003                                                                                                          320
ce-sclo-rh/7/armhfp                                                              CE-SCLo-rh-7.8.2003                                                                                                           0
ce-sclo-sclo/7/armhfp                                                            CE-SCLo-sclo-7.8.2003                                                                                                         0
ce-updates/7/armhfp                                                              CE-Updates-7.8.2003                                                                                                         521
centos-kernel/7/armhfp                                                           CentOS LTS Kernels for armhfp                                                                                                19
epel                                                                             Epel rebuild for armhfp                                                                                                  18,156
nethserver-base/7/armhfp                                                         NethServer-7.8.2003 - Base                                                                                                  224
nethserver-updates/7/armhfp                                                      NethServer-7.8.2003 - Updates                                                                                                83
stephdl/7                                                                        Stephdl (Stephane de Labrusse) repository for nethserver 7 - armhfp                                                         389
repolist: 27,166

# yum -v repolist
Loading "changelog" plugin
Loading "fastestmirror" plugin
Loading "nethserver_events" plugin
Loading "product-id" plugin
Loading "search-disabled-repos" plugin
Loading "subscription-manager" plugin
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Config time: 0.802
Yum version: 3.4.3
Loading mirror speeds from cached hostfile
 * ce-base: mirror.freethought-internet.co.uk
 * ce-extras: mirror.freethought-internet.co.uk
 * ce-updates: mirror.freethought-internet.co.uk
 * centos-kernel: mirror.freethought-internet.co.uk
Setting up Package Sacks
pkgsack time: 0.062
Repo-id      : ce-base/7/armhfp
Repo-name    : CE-Base-7.8.2003
Repo-revision: 1587489401
Repo-updated : Tue Apr 21 18:17:03 2020
Repo-pkgs    : 7,454
Repo-size    : 6.7 G
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=ce-base&arch=armhfp&nsrelease=7.8.2003
Repo-baseurl : http://mirror.freethought-internet.co.uk/centos-altarch/7.8.2003/os/armhfp/ (9 more)
Repo-expire  : 21,600 second(s) (last: Thu Jun  4 07:56:01 2020)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/NethServer.repo

Repo-id      : ce-extras/7/armhfp
Repo-name    : CE-Extras-7.8.2003
Repo-revision: 1590005973
Repo-updated : Wed May 20 21:19:34 2020
Repo-pkgs    : 320
Repo-size    : 483 M
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=ce-extras&arch=armhfp&nsrelease=7.8.2003
Repo-baseurl : http://mirror.freethought-internet.co.uk/centos-altarch/7.8.2003/extras/armhfp/ (9 more)
Repo-expire  : 21,600 second(s) (last: Thu Jun  4 07:56:01 2020)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/NethServer.repo

Repo-id      : ce-sclo-rh/7/armhfp
Repo-name    : CE-SCLo-rh-7.8.2003
Repo-revision: 1586958451
Repo-updated : Wed Apr 15 14:47:31 2020
Repo-pkgs    : 0
Repo-size    : 0
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=ce-sclo-rh&arch=armhfp&nsrelease=7.8.2003
Repo-baseurl : http://mirror.nethserver.org/nethserver/7.8.2003/empty/armhfp/
Repo-expire  : 21,600 second(s) (last: Thu Jun  4 07:56:01 2020)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/NethServer.repo

Repo-id      : ce-sclo-sclo/7/armhfp
Repo-name    : CE-SCLo-sclo-7.8.2003
Repo-revision: 1586958451
Repo-updated : Wed Apr 15 14:47:31 2020
Repo-pkgs    : 0
Repo-size    : 0
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=ce-sclo-sclo&arch=armhfp&nsrelease=7.8.2003
Repo-baseurl : http://mirror.nethserver.org/nethserver/7.8.2003/empty/armhfp/
Repo-expire  : 21,600 second(s) (last: Thu Jun  4 07:56:01 2020)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/NethServer.repo

Repo-id      : ce-updates/7/armhfp
Repo-name    : CE-Updates-7.8.2003
Repo-revision: 1591219615
Repo-updated : Wed Jun  3 22:26:58 2020
Repo-pkgs    : 521
Repo-size    : 1.4 G
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=ce-updates&arch=armhfp&nsrelease=7.8.2003
Repo-baseurl : http://mirror.freethought-internet.co.uk/centos-altarch/7.8.2003/updates/armhfp/ (9 more)
Repo-expire  : 21,600 second(s) (last: Thu Jun  4 07:56:01 2020)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/NethServer.repo

Repo-id      : centos-kernel/7/armhfp
Repo-name    : CentOS LTS Kernels for armhfp
Repo-revision: 1590767931
Repo-updated : Fri May 29 16:58:52 2020
Repo-pkgs    : 19
Repo-size    : 190 M
Repo-mirrors : http://mirrorlist.centos.org/?release=7&arch=armhfp&repo=kernel-kernel-rpi2&infra=stock
Repo-baseurl : http://mirror.freethought-internet.co.uk/centos-altarch/7.8.2003/kernel/armhfp/kernel-rpi2/ (9 more)
Repo-expire  : 21,600 second(s) (last: Thu Jun  4 07:56:01 2020)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-armhfp-kernel.repo

Repo-id      : epel
Repo-name    : Epel rebuild for armhfp
Repo-revision: 1591209155
Repo-updated : Wed Jun  3 19:32:34 2020
Repo-pkgs    : 18,156
Repo-size    : 21 G
Repo-baseurl : https://armv7.dev.centos.org/repodir/epel-pass-1/
Repo-expire  : 21,600 second(s) (last: Thu Jun  4 07:56:02 2020)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/epel.repo

Repo-id      : nethserver-base/7/armhfp
Repo-name    : NethServer-7.8.2003 - Base
Repo-revision: 1588753414
Repo-updated : Wed May  6 09:23:38 2020
Repo-pkgs    : 224
Repo-size    : 1.0 G
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=base&arch=armhfp&nsrelease=7.8.2003
Repo-baseurl : http://mirror.nethserver.org/nethserver/7.8.2003/base/armhfp/
Repo-expire  : 21,600 second(s) (last: Thu Jun  4 07:56:02 2020)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/NethServer.repo

Repo-id      : nethserver-updates/7/armhfp
Repo-name    : NethServer-7.8.2003 - Updates
Repo-revision: 1591188221
Repo-updated : Wed Jun  3 13:43:43 2020
Repo-pkgs    : 83
Repo-size    : 405 M
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=updates&arch=armhfp&nsrelease=7.8.2003
Repo-baseurl : http://mirror.nethserver.org/nethserver/7.8.2003/updates/armhfp/
Repo-expire  : 21,600 second(s) (last: Thu Jun  4 07:56:03 2020)
  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 - armhfp
Repo-revision: 1591252381
Repo-updated : Thu Jun  4 07:33:06 2020
Repo-pkgs    : 183
Repo-size    : 157 M
Repo-baseurl : http://mirror.de-labrusse.fr/NethServer/7/
Repo-expire  : 21,600 second(s) (last: Thu Jun  4 07:56:03 2020)
  Filter     : read-only:present
Repo-excluded: 206
Repo-filename: /etc/yum.repos.d/stephdl.repo

repolist: 26,960

There is software which I want to install from the main epel, so what is the best way to make this work?

1 Like

Ha, @ CentOS they decded to release the armhfp-epel, that’s the good news.
The Problem however we (I) made a simple package(https://github.com/markVnl/nethserver-arm-epel) which writes the epel.repo configuration of the (until now officially unreleased) repository and provide epel-release to match X86_84.
I need some time to think of a good solution for this, this will be over the weekend.
As a workaround you may move the offending file out of the way and run the update again:
yum clean all
mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.ns
yum update
yum makecache
And check if a cache for the epel repository is created during the makecache proces…
Calling some help troops here for a definitive solution: (sorry @davidep your my goto adviser whin it come to repository management…)
How to automatically swap nethserver-arm epel.ns7.armhfp with epel-release-7-12.noarch ?

The package should not be there!!

After installing epel-release-7-12.noarch in point to repositoru=ies which don’t exist for armhfp

cat /etc/yum.repos.d/epel.repo
[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&infra=$infra&content=$contentdir
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

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

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

Will ping the (centos) arm-mailing list to figure this out…

1 Like

My idea is to update the nethserver-arm-epel which requires epel-release-7-12 and removes it’s own configuration file… :thinking:

Thanks @mark_nl, thanks for the help on this and I was guessing the solution may not be that immediately obvious.

I don’t have a good solution unfortunately - other than potentially moving it to its own configuration file as per your current thinking.

I’ll try the workaround for now.

It did not work over-here, strangething is: epel-release comes from the (armhfp) epel repository…
So if you don have a yum configuration for it, it does not find the package: this feels like a Catch22…

# yum install epel-release
Loaded plugins: fastestmirror

<<< Truncated >>>

Dependencies Resolved
================================================================================
 Package                Arch             Version           Repository      Size
================================================================================
Installing:
 epel-release           noarch           7-12              epel            14 k

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

Total download size: 14 k
Installed size: 24 k
Is this ok [y/d/N]: n

<<< Truncated >>>

# mv /etc/yum.repos.d/epel.repo  /etc/yum.repos.d/epel.ns
root@armhfp:~
# yum install epel-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.infonline.de
 * centos-kernel: mirror.infonline.de
 * extras: mirror.infonline.de
 * updates: mirror.infonline.de
No package epel-release available.
Error: Nothing to do

hmmm ???

You need to yum remove nethserver-arm-epel.armv7hl first in order to yum install epel-release.

Found that out the hard way

1 Like

It’s a upstream hichup not matching NS workflow,…

If possible revert the to the repo-settings of nethveserver-arm-epel,
You may edit /etc/yum.repos.d/epel.repo so it looks like this again:

# Directly to https://armv7.dev.centos.org/repodir/epel-pass-1/
[epel]
name=Epel rebuild for armhfp
baseurl=https://armv7.dev.centos.org/repodir/epel-pass-1/
gpgcheck=0
enablegroups=0
enabled=1
1 Like

Planning to do this:

1 Like

In nethserver-arm testing is a package with above proposal:

(if you did install the faulty epel-release remove this first an reinstall nethserver-arm-epel)

yum update --enablerepo=nethserver-testing nethserver-arm-epel

After installation of this test package the epel-release package should be ignored.


If possible acknowledge the result here:


EDIT:

As a workaround until upstream (CentOS) addresses the faulty url’s in epel-release-7.x ;
the above proposal is released in nethserver-arm-epel-7.2

After yum update pulled in nethserver-arm-epel-7.2 the error of the conflicting file (epel.repo) is mitigated.

We revisit the workaround after upstream has moved.


grtz Mark

2 Likes

Apologies for the late response, been a little busy with other things.

I have removed epel-release and nethserver-arm-epel-7-2.ns7.armv7hl is installed.

When I run the command yum install remi-release, I get the following:

# yum install remi-release
Loaded plugins: changelog, fastestmirror, nethserver_events, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Loading mirror speeds from cached hostfile
 * ce-base: mirrors.coreix.net
 * ce-extras: mirrors.coreix.net
 * ce-updates: mirrors.coreix.net
 * centos-kernel: mirrors.coreix.net
 * remi: mirror.netweaver.uk
Resolving Dependencies
--> Running transaction check
---> Package remi-release.noarch 0:7.7-2.el7.remi will be installed
--> Processing Dependency: epel-release = 7 for package: remi-release-7.7-2.el7.remi.noarch
--> Finished Dependency Resolution
Error: Package: remi-release-7.7-2.el7.remi.noarch (remi)
           Requires: epel-release = 7
           Installed: nethserver-arm-epel-7-2.ns7.armv7hl (@nethserver-updates)
               epel-release = 72.ns7
           Available: nethserver-arm-epel-7-1.ns7.armv7hl (nethserver-base)
               epel-release = 71.ns7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Not sure what is going on here…

AFAIK remi does not have arm repositories…