Centos 7 latest

General support questions
Post Reply
SmorkA
Posts: 4
Joined: 2021/12/23 14:04:22

Centos 7 latest

Post by SmorkA » 2021/12/23 14:17:25

Hi,

I've just run a monthly update session on my CentOS 7 build and am having trouble with the latest openSSH components:

--> Running transaction check
---> Package openssh-clients.x86_64 0:7.4p1-21.el7 will be updated
---> Package openssh-clients.x86_64 0:7.4p1-22.el7_9 will be an update
--> Processing Dependency: openssh = 7.4p1-22.el7_9 for package: openssh-clients-7.4p1-22.el7_9.x86_64
--> Finished Dependency Resolution
Error: Package: openssh-clients-7.4p1-22el7_9.x86_64 (local)
Requires: openssh = 7.4p1-22.el7_9
Installed: openssh-7.4p1-21.el7.x86_64 (@anaconda)
openssh = 7.4p1-21.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

The system is off the internet but I have copied all the updated RPMs in the last month since the previous patching cycle into a local repo.
The CentOS 7 dvd is inserted and local.repo points to both the dvd and the new RPMs.
I am a bit stuck as I am not sure what files it is actually looking for. Tried reinstalling openssh via yum and updating: same issue.

Any help greatly appreciated.

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 7 latest

Post by TrevorH » 2021/12/23 18:35:33

You need to update all installed openssh* packages at the same time with the same command. That's likely to be openssh, openssh-server and openssh-clients. It looks like you missed at least one of them.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

SmorkA
Posts: 4
Joined: 2021/12/23 14:04:22

Re: Centos 7 latest

Post by SmorkA » 2021/12/24 13:03:05

Thanks for the reply TrevorH,
That was just the one component result I typed there. I cannot copy and paste from the system in question to here as it's air-gapped. I did actually try to apply client and server using the generic "yum update" command, which in the past has worked fine for all other components. It's something I do every month - download the previous month's RPMs, then create a repo, and run yum update against it.
For some reason it's not having much luck with openssh despite having copied all of the recent RPMs from CentOS 7 packages > updates. From what you say though, it may be the case that 'openssh' itself has no update out yet, but just the server and client elements which won't update until the former is updated.

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 7 latest

Post by TrevorH » 2021/12/24 14:02:08

No, all the updates are there.

Code: Select all

[root@centos7 ~]# yum list openssh\*
Loaded plugins: priorities
187 packages excluded due to repository priority protections
Installed Packages
openssh.x86_64                                       7.4p1-22.el7_9                                        @updates
openssh-clients.x86_64                               7.4p1-22.el7_9                                        @updates
openssh-server.x86_64                                7.4p1-22.el7_9                                        @updates
Available Packages
openssh-askpass.x86_64                               7.4p1-22.el7_9                                        updates 
openssh-cavs.x86_64                                  7.4p1-22.el7_9                                        updates 
openssh-keycat.x86_64                                7.4p1-22.el7_9                                        updates 
openssh-ldap.x86_64                                  7.4p1-22.el7_9                                        updates 
openssh-ldap-authkeys.noarch                         0.1.0~git20200205.aee4c46-2.el7                       epel    
openssh-server-sysvinit.x86_64                       7.4p1-22.el7_9                                        updates
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

SmorkA
Posts: 4
Joined: 2021/12/23 14:04:22

Re: Centos 7 latest

Post by SmorkA » 2021/12/29 12:28:48

Thanks TrevorH,

It seems like I've got a strange version installed:

yum list openssh\*
Loaded Plugins: fastestmirror
Loading mirror speeds from cached hostfile
Installed Packages
openssh.x86_64....................7.4pl-21.e17.......@anaconda
openssh-clients.x86_64...........7.4pl-21.e17.......@iso
openssh-server.x86_64............7.4pl-21.e17.......@iso
Available Packages
openssh-askpass.x86_64..........7.4pl-22.e17_9.....local
openssh-cavs.x86_64..............7.4pl-22.e17_9.....local
openssh-clients.x86_64..........7.4pl-22.e17_9......local
openssh-keycat.x86_64...........7.4pl-22.e17_9.....local
openssh-ldap.x86_64..............7.4pl-22.e17_9.....local
openssh-server.x86_64...........7.4pl-22.e17_9......local
openssh-server-sysvinit.x86_64 7.4pl-22.e17_9......local

When performing yum update, it looks like the update is expecting 7.4pl-21.e17_9 but I only have 7.4pl-21.e17

Any ideas how I can resolve this?
Kind regards

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 7 latest

Post by TrevorH » 2021/12/29 13:54:24

You do not have the 7.4pl-22.e17 copy of the openssh package itself. It needs to be upgraded at the same time and it's missing from your list. Since you say this is an offline system, perhaps you forgot to download it?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

SmorkA
Posts: 4
Joined: 2021/12/23 14:04:22

Re: Centos 7 latest

Post by SmorkA » 2021/12/29 14:17:02

Hi TrevorH,

Doh! You're not wrong! Apologies for wasting your time.

Thanks for the help.

Have a great new year!

Post Reply