我有一个 Red Hat Enterprise Linux 8.2 作为 Hyper-V 中的虚拟机来宾操作系统。我已经安装了TeamViewer 15.5.3。
但是当我运行下面的更新命令时:
yum update --nobest --skip-broken
我收到这样的错误:
Updating Subscription Management repositories.
gitlab_gitlab-ee 134 B/s | 862 B 00:06
TeamViewer Internal (Dev Nightly Packages) - x86_64 0.0 B/s | 0 B 00:16
Errors during downloading metadata for repository 'tvinternal_dev':
- Curl error (6): Couldn't resolve host name for http://lnxrelease-02/yum/stable/main/binary-x86_64/repodata/repomd.xml [Could not resolve host: lnxrelease-02]
Error: Failed to download metadata for repo 'tvinternal_dev': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
看起来 team-viewerhttp://lnxrelease-02/yum/stable/main/binary-x86_64/repodata/repomd.xml
在 interal_dev 版本中设置了错误的存储库发布 URL。我不知道哪个是正确的。
所以我尝试tvinternal_dev
通过命令禁用存储库:
sudo subscription-manager repos --disable 'tvinternal_dev'
它说:
Error: 'tvinternal_dev' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
按照建议运行命令后subscription-manager repos --list
,我看不到存储库tvinternal_dev
。
我应该怎么做才能跳过/禁用存储库tvinternal_dev
以继续更新过程?否则,我有机会更正 TeamViewer 此类inreral_dev
存储库的发布 URl 吗?
我是 Linux 新手,任何建议都会很感激。预先感谢您的任何帮助。
答案1
我有同样的问题。我通过禁用 tvinternal_dev、tvinternal_it 和 teamviewer 来解决:
sudo dnf config-manager --set-disabled tvinternal_dev
sudo dnf config-manager --set-disabled tvinternal_it
sudo dnf config-manager --set-disabled teamviewer
然后我发出: sudo dnf update ,效果很好。我想我们必须重新安装 teamviewer。我希望它有帮助。
PS:也许您的命令的问题是您使用了“tvinternal_dev”(= 带单引号)。