Unable to update imapsync (messes up repo list)

tveenker

Verified User
Joined
Mar 5, 2023
Messages
21
Hi,

I recently upgraded my system from CentOS 7 to AlmaLinux 8.10. I had some trouble (partly DA related ) but with help of this forum (https://forum.directadmin.com/threads/uninstall-proftd-and-exim-before-leapp-upgrade.71845/) I got it done.

Now CustomBuild lists imapsync as updateble. However when I try to update the update fails.
# ./build imapsync
Error: Unable to find a match: perl-Encode-IMAPUTF7 perl-Unicode-String
##################################################################################################################################### 100.0%
Found /usr/local/directadmin/custombuild/imapsync-2.229.tar.gz
Extracting ...
Done.
Configuring imapsync-2.229...
Installing imapsync-2.229...
imapsync 2.229 installed
It starts with an error and somehow managed to think it worked and reports the application installed, but in CustomBuild/Updates imapsync remains listed.

But the really weird and very undesirable side effect is that attempting this update re-enables the old CentOS 7 epel repo!

Before the ./build imapsync command:
# dnf repolist
repo id repo name
appstream AlmaLinux 8 - AppStream
baseos AlmaLinux 8 - BaseOS
elevate ELevate
extras AlmaLinux 8 - Extras
powertools AlmaLinux 8 - PowerTools

After the ./build imapsync command:
# dnf repolist
repo id repo name
appstream AlmaLinux 8 - AppStream
baseos AlmaLinux 8 - BaseOS
elevate ELevate
epel Extra Packages for Enterprise Linux 7 - x86_64
extras AlmaLinux 8 - Extras
powertools AlmaLinux 8 - PowerTools

This is really bad. Why does it happen? And how do I make the update succeed and not mess up my repolist?

I don't need imapsync, so being able to uninstall it would also suffice for me.

Thanks, Theo
 
I don't need imapsync, so being able to uninstall it would also suffice for me.
It's odd because in Alma 8 the epel release looks like this on my server:
epel Extra Packages for Enterprise Linux 8 - x86_64

So maybe it has to do with the elevating process. Since it seems to be build from external source, it might be required to uninstall first and then install again.
I would suggest anyway to remove that old epel repo and install the new one yourself if DA doesn't do it aftwards.

Anyway, first uninstall the current imapsync, if all is well, it should be possible like this from any directory:
Code:
da build set imapsync 0
da build update
da build list_removals
da remove_items
First line I'm nog 100% sure but you could also set imapsync in custombuild to disabled manually.

After this, remove that old repo again and see if you can install the new version for Alma 8, you need it for other things, DA always installs it.
 
da build set imapsync 0
Unfortunately that command doesn't work:
# da build set imapsync 0
imapsync is not a valid option.

Where would I be able to disable it manually? Except in /usr/local/directadmin/custombuild/versions.txt it isn't listed anywhere.

Regarding the repos I have this in /etc/yum.repos.d/:
-rw-r--r-- 1 root root 943 May 22 16:49 almalinux-ha.repo
-rw-r--r-- 1 root root 905 May 22 16:49 almalinux-nfv.repo
-rw-r--r-- 1 root root 885 May 22 16:49 almalinux-plus.repo
-rw-r--r-- 1 root root 963 Sep 8 09:41 almalinux-powertools.repo
-rw-r--r-- 1 root root 2666 May 22 16:49 almalinux.repo
-rw-r--r-- 1 root root 1041 May 22 16:49 almalinux-resilientstorage.repo
-rw-r--r-- 1 root root 871 May 22 16:49 almalinux-rt.repo
-rw-r--r-- 1 root root 928 May 22 16:49 almalinux-saphana.repo
-rw-r--r-- 1 root root 873 May 22 16:49 almalinux-sap.repo
-rw-r--r-- 1 root root 1660 Aug 31 15:10 CentOS-Base.repo.rpmsave
-rw-r--r-- 1 root root 1308 Aug 31 15:10 CentOS-CR.repo.rpmsave
-rw-r--r-- 1 root root 313 Aug 31 15:10 CentOS-fasttrack.repo.rpmsave
-rw-r--r-- 1 root root 996 Sep 2 12:01 CentOS-SCLo-scl.repo
-rw-r--r-- 1 root root 970 Sep 2 12:01 CentOS-SCLo-scl-rh.repo
-rw-r--r-- 1 root root 614 Aug 31 15:10 CentOS-x86_64-kernel.repo.rpmsave
-rw-r--r-- 1 root root 379 Mar 17 2023 ELevate.repo
-rw-r--r-- 1 root root 1680 Jun 27 21:06 epel-modular.repo
-rw-r--r-- 1 root root 1355 Sep 8 09:42 epel.repo
-rw-r--r-- 1 root root 1332 Jun 27 21:06 epel.repo.rpmnew
-rw-r--r-- 1 root root 0 Sep 18 2019 epel.repo.rpmsave
-rw-r--r-- 1 root root 1779 Jun 27 21:06 epel-testing-modular.repo
-rw-r--r-- 1 root root 1454 Aug 31 15:10 epel-testing.repo
-rw-r--r-- 1 root root 1431 Jun 27 21:06 epel-testing.repo.rpmnew
-rw-r--r-- 1 root root 0 Sep 18 2019 epel-testing.repo.rpmsave

The CentOS*.repo, epel.repo and epel.testing.repo are the CentOS 7 things. It seems that epel.repo.rpmnew and epel-testing.repo.rpmnew are the Alma versions of epel.repo resp. epel.testing.repo. To me it looks a bit as if the rpmnew things where meant to replace old repos, but the actual replacement never happened.

Could I just say:
dnf repository-packages epel remove
rm /etc/yum.repos.d/epel.repo
And the same thing for epel-testing.repo and CentOS*.repo?
 
Last edited:
look like leapp-upgrade not success 100%, so you need to cleanup all thing relate to centos7 by your self.
 
I think I'm there. Here's what I did to resolve the odd repo list:
# dnf repository-packages centos-sclo-rh remove
# dnf repository-packages centos-sclo-sclo remove

# cd /etc/yum.repos.d
# rm CentOS-* epel.repo epel-testing.repo
# mv epel.repo.rpmnew epel.repo
# mv epel-testing.repo.rpmnew epel-testing.repo
# rm epel-testing.repo.rpmsave epel.repo.rpmsave

# dnf update

# dnf repolist
repo id repo name
appstream AlmaLinux 8 - AppStream
baseos AlmaLinux 8 - BaseOS
elevate ELevate
epel Extra Packages for Enterprise Linux 8 - x86_64
extras AlmaLinux 8 - Extras
powertools AlmaLinux 8 - PowerTools
Not sure if the elevate repo should be disabled or not.

And now da build imapsync also succeeds! Finally.
 
Where would I be able to disable it manually?
I don't use it, so if it's not in the /usr/local/directadmin/custombuild/options.conf then it's probably installed by default.

But you fixed it by changing the repo's as suggested, so problem solved anyway. ;)
 
Back
Top