AIX Open Source

 View Only
  • 1.  yum upgrade clamav

    Posted Thu August 01, 2024 06:42 PM
      |   view attached

    HI -

    A question about what yum is reporting as error when I do 

      yum upgrade clamav

    yum runs to completion but prints 2 errors about installed ppcs. it seems to be complaining that the installed version is being upgraded by ppc in the repo dir?
    For example - : libxml2-python-2.9.10-1.ppc (installed) requires libxml2 = 2.9.10-1 which will be upgraded to libxml2-2.10.4-1.ppc (clamav_103_main)
    does this mean that libxml2-python-2.9.10-1.ppc is blocking?

    probably the same as the second error for libstdc++-8-1.ppc (installed)

    so how can I resolve this? remove libstdc++-8-1.ppc (installed) and libxml2-python?
    or do i to upgrade them?

    Error: Package: libxml2-python-2.9.10-1.ppc (installed)
               Requires: libxml2 = 2.9.10-1
               Removing: libxml2-2.9.10-1.ppc (installed)
                   libxml2 = 2.9.10-1
               Updated By: libxml2-2.10.4-1.ppc (clamav_103_main)
                   libxml2 = 2.10.4-1
    Error: Package: 1:libstdc++-8-1.ppc (installed)
               Requires: libgcc = 1:8-1
               Removing: 1:libgcc-8-1.ppc (installed)
                   libgcc = 1:8-1
               Updated By: 1:libgcc-10-2.ppc (clamav_103_main)
                   libgcc = 1:10-2
               Available: libgcc-8.1.0-2.ppc (cloudinit)
                   libgcc = 8.1.0-2
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    /gpfs/software/ClamAV/clamav_103_repo>#  

    The suggested modifiers were not useful.

    P.S: I dont understand the "1:" part in the line  - Package: 1:libstdc++-8-1.ppc - is that part of the version?



    ------------------------------
    Brendan Walsh
    ------------------------------

    Attachment(s)



  • 2.  RE: yum upgrade clamav

    Posted Fri August 02, 2024 06:18 AM

    Hi Brendan,

    Can you try removing  libxml2-python-2.9.10-1 if it is not used by other packages ?

     libxml2-python-2.9.10-1 is based on python2 and it is old.

    Can you check if your repository is set with proper libgcc packages ?

    Please list the output of "yum list libgcc*"



    ------------------------------
    SANGAMESH
    ------------------------------



  • 3.  RE: yum upgrade clamav

    Posted Fri August 02, 2024 11:03 AM

    Hi Sangamesh

    /gpfs/software/ClamAV/clamav_103_repo># yum list "libgcc*"
    clamav_103_main                                                                                                                                                                           | 2.9 kB  00:00:00     
    clamav_103_repo                                                                                                                                                                           | 2.9 kB  00:00:00     
    cloudinit                                                                                                                                                                                 | 2.9 kB  00:00:00     
    Installed Packages
    libgcc.ppc                                                                                 1:8-1                                                                                   installed                     
    libgcc10.ppc                                                                               10.3.0-6                                                                                @/libgcc10-10.3.0-6.aix7.2.ppc
    libgcc8.ppc                                                                                8.3.0-4                                                                                 installed                     
    Available Packages
    libgcc.ppc                                                                                 1:10-2                                                                                  clamav_103_main               
    libgcc8.ppc                                                                                8.3.0-7                                                                                 clamav_103_main               
    /gpfs/software/ClamAV/clamav_103_repo># ls -l | grep libgc
    -rwxrwxrwx    1 root     system        14998 Aug 01 10:59 libgcc-10-2.aix7.2.ppc.rpm
    -rwxrwxrwx    1 root     system       812076 Aug 01 10:59 libgcc10-10.3.0-6.aix7.2.ppc.rpm
    -rwxrwxrwx    1 root     system       997108 Jul 24 10:33 libgcc8-8.3.0-6.aix7.2.ppc.rpm
    /gpfs/software/ClamAV/clamav_103_repo># date
    Fri Aug  2 10:54:25 EDT 2024
    /gpfs/software/ClamAV/clamav_103_repo># 

    I am not sure if libxml2-python-2.9.10-1 is used by other packages. I think i can use yum deplist libxml2-python-2.9.10-1?

    if it has sensible output i'll add it here.

    Thanks



    ------------------------------
    Brendan Walsh
    ------------------------------



  • 4.  RE: yum upgrade clamav

    Posted Mon August 05, 2024 03:16 AM

    Hi Brendan,

    Your repository is mix of old and new packages from AIX Toolbox.

    It is very difficult to maintain compatibility with mix of these packages.

    Here, in this case the default libgcc is based on gcc8 but the latest one which is based on gcc10.

    Why don't you move to DNF and also update your repository with latest toolbox rpm packages ?



    ------------------------------
    SANGAMESH
    ------------------------------



  • 5.  RE: yum upgrade clamav

    Posted Mon August 05, 2024 02:27 PM
      |   view attached

    Hi Sangamesh

     I see what you mean.  its an inherited mess, partly due to a fractured upgrade effort and partly to our closed environment, all code is scanned then copied in. NO internet access. I have suggested trying to get the entire AIX Toolbox as iso but security concerns have delayed that. It was a huge hassle just to upgrade to DNF, which broke createrepo. its a long story but in my current environment I am stuck with either dnf and no createrepo or yum3 with createrepo. you previously suggested appending all the ppc's on the command line - I couldn't get that to work at that time. I think I need createrepo because it seems to be easier. I thought that it would automagically handle dependencies - similar to IBMs installp. Maybe not things like conflicting dependencies.

    Anyway, this is the most recent result from 'yum upgrade clamav' after yum remove libxml2-python-2.910-1.ppc.

    /gpfs/software/ClamAV># yum upgrade clamav               
    Setting up Upgrade Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package clamav.ppc 0:0.102.2-1 will be updated
    ---> Package clamav.ppc 1:0.103.11-1 will be an update
    --> Processing Dependency: xz-libs >= 5.4.3 for package: 1:clamav-0.103.11-1.ppc

    --> Processing Dependency: libgcc = 1:8-1 for package: 1:libstdc++-8-1.ppc
    ---> Package libgcc.ppc 1:10-2 will be an update
    ---> Package p11-kit.ppc 0:0.23.22-1 will be updated
    ---> Package p11-kit.ppc 0:0.24.1-1 will be an update
    ---> Package pcre2.ppc 0:10.35-1 will be updated
    ---> Package pcre2.ppc 0:10.40-1 will be an update
    --> Finished Dependency Resolution
    Error: Package: 1:libstdc++-8-1.ppc (installed)
               Requires: libgcc = 1:8-1
               Removing: 1:libgcc-8-1.ppc (installed)
                   libgcc = 1:8-1
               Updated By: 1:libgcc-10-2.ppc (clamav_103_main)
                   libgcc = 1:10-2
               Available: libgcc-8.1.0-2.ppc (cloudinit)
                   libgcc = 8.1.0-2
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    /gpfs/software/ClamAV>#

    I think this is intending to remove  libgcc-8-1.ppc.

    Brendan



    ------------------------------
    Brendan Walsh
    ------------------------------

    Attachment(s)



  • 6.  RE: yum upgrade clamav

    Posted Tue August 20, 2024 08:19 AM

    I understand the no internet access portion of your issue.  If you do have a system that does have internet access you could try creating a local repo of the IBM repos on that system.  See the following link:  https://developer.ibm.com/tutorials/awb-configuring-dnf-create-local-repos-ibm-aix/



    ------------------------------
    Scott McKevitt
    ------------------------------



  • 7.  RE: yum upgrade clamav

    Posted Mon August 19, 2024 05:12 PM

    yeaah - thanks - not helpful.



    ------------------------------
    Brendan Walsh
    ------------------------------



  • 8.  RE: yum upgrade clamav

    Posted Fri August 02, 2024 01:51 PM

    Hi Sangamesh

     I did "yum remove libxml2-python-2.9.10-1.ppc" - it will also remove createrepo noarch 0.10.3.1

    if i do that can i reinstall createrepo by grabbing one of the libxml-python ppcs from AIX Toolbox?

    or if I got one before doing that can I upgrade createrepo or would that happed as part of doing the yum remove for libxml-python?



    ------------------------------
    Brendan Walsh
    ------------------------------