[排错] 解决 openSUSE & SUSE 使用 zipper 命令时报错 “error: can’t create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (Resource temporarily unavailable)”

报错代码:

error: can't create transaction lock on /usr/lib/sysimage/rpm/.rpm.lock (Resource temporarily unavailable)

解决方法:

步骤一:删除 Zypper 的软件数据库

# rm -rf /var/lib/rpm/_db*

步骤二:重建 Zypper 的软件数据库

# rpm --rebuilddb

步骤三:刷新 Zypper 缓存

# zypper refresh

[内容] Linux 版本的查看

内容一:Linux 版本整体信息的查看

# cat /etc/*release*

内容二:Linux 版本某项具体信息的查看

2.1 查看此系统属于哪种 Linux

# lsb_release -i -s 2> /dev/null

2.2 查看此系统的本版

# lsb_release -r -s 2> /dev/null

2.3 查看此系统的内核版本

# uname -r 2> /dev/null

[CONTENT] The network connections required for system register

Content:

RHEL:

DomainPort NumberPort protocol
subscription.rhsm.redhat.com443TCP
cdn.redhat.com443TCP
RHEL Register Connections Requirement

SLES:

DomainPort NumberPort protocol
scc.suse.com80 or 443
TCP
updates.suse.com80 or 443
TCP
installer-updates.suse.com80 or 443TCP
SLES Register Connections Requirement

Reference:

https://access.redhat.com/solutions/65300

https://www.suse.com/support/kb/doc/?id=000021034#:~:text=%2A%20The%20current%20list%20of%20IPs,for%20scc.suse.com%20and%20registry.suse.com%20are%3A%2099.83.188.102