The Error message says RPM failed, so that tells me that we're talking about Fedora
Not so fast, TJ
rpm is used by many Distros, including RHEL (Red Hat Enterprise Linux), Fedora, centOS, openMandriva, Mageia, just to name a few.
The RHEL-based ones are the main ones to use dnf (since yum is being deprecated), but openSUSE uses zypper, Mageia urpmi, &c.
@quasar19 - don't put "Linux O/S", looks like OS for Operating System.
You are using openSUSE, question is whether you are using its point release, called openSUSE Leap, or its rolling release, called openSUSE Tumbleweed.
Does either of those ring a bell?
If you are using Tumbleweed, there is no need to upgrade, it is a rolling release.
If you are using Leap, then it could be a Repository problem, we can look at that later.
Are you performing these commands as regular user or Root?
If Root, you likely used
to
become root, and following that you will have a # included at the prompt.
The indication of a lock file as being a problem is often an indication that you are trying to perform an update/upgrade operation in Terminal at the same time as a GUI-based updater is trying to notify you of updates/upgrades and/or is running in the background. In your case, this could be YaST.
Have a read of this article
https://en.opensuse.org/SDB:System_upgrade
... see if it makes sense (ignore the stuff at 3. - if you do not know what btrfs is you are not using it)
I'll be back tomorrow Oz time with more
Cheers all
Wizard