前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >TencentOS Server release 3.1 (Final)如何更换安装源?

TencentOS Server release 3.1 (Final)如何更换安装源?

原创
作者头像
堡塔运维-大炮
发布2023-01-16 15:47:19
1.1K0
发布2023-01-16 15:47:19
举报

今天刚买了台服务器,

然后执行了

代码语言:javascript
复制
yum update -y

提示了一坨代码

代码语言:javascript
复制
[root@VM-0-10-centos ~]# yum update -y
Last metadata expiration check: 2:14:25 ago on Mon 16 Jan 2023 01:21:21 PM CST.
Error: 
 Problem: cannot install both mysql-common-8.0.30-1.module+el8.6.0+352+98f9a3f3.x86_64 and mysql-common-8.0.26-1.module+el8.6.0+142+9a84cdf3.x86_64
  - package mysql-8.0.26-1.module+el8.6.0+142+9a84cdf3.x86_64 requires mysql-common(x86-64) = 8.0.26-1.module+el8.6.0+142+9a84cdf3, but none of the providers can be installed
  - cannot install the best update candidate for package mysql-common-8.0.26-1.module+el8.6.0+142+9a84cdf3.x86_64
  - problem with installed package mysql-8.0.26-1.module+el8.6.0+142+9a84cdf3.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

看着提示是有包冲突,然后又跳过这个包执行了

代码语言:javascript
复制
yum update --allowerasin -y

结果跑了大概不到1分钟吧,跳出来新的错误

代码语言:javascript
复制
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 mysql-common                              x86_64         8.0.30-1.module+el8.6.0+352+98f9a3f3            TencentOS-AppStream         136 k

Transaction Summary
============================================================================================================================================
Install   12 Packages
Upgrade  396 Packages
Skip       1 Package

Total download size: 758 M
Is this ok [y/N]: y
Downloading Packages:
[MIRROR] NetworkManager-initscripts-updown-1.40.0-2.tl3.noarch.rpm: Curl error (28): Timeout was reached for http://mirrors.tencentyun.com/tlinux/3.1/Updates/x86_64/RPMS/NetworkManager-initscripts-updown-1.40.0-2.tl3.noarch.rpm [Connection timed out after 30000 milliseconds]
[MIRROR] gcc-plugin-annobin-8.5.0-15.tl3.x86_64.rpm: Curl error (28): Timeout was reached for http://mirrors.tencentyun.com/tlinux/3.1/Updates/x86_64/RPMS/gcc-plugin-annobin-8.5.0-15.tl3.x86_64.rpm [Connection timed out after 30000 milliseconds]
[MIRROR] gcc-toolset-12-binutils-2.38-16.tl3.x86_64.rpm: Curl error (28): Timeout was reached for http://mirrors.tencentyun.com/tlinux/3.1/Updates/x86_64/RPMS/gcc-toolset-12-binutils-2.38-16.tl3.x86_64.rpm [Connection timed out after 30000 milliseconds]
[MIRROR] NetworkManager-initscripts-updown-1.40.0-2.tl3.noarch.rpm: Curl error (28): Timeout was reached for http://mirrors.tencentyun.com/tlinux/3.1/Updates/x86_64/RPMS/NetworkManager-initscripts-updown-1.40.0-2.tl3.noarch.rpm [Connection timed out after 30000 milliseconds]
[MIRROR] audit-3.0.7-2.tl3.2.x86_64.rpm: Curl error (28): Timeout was reached for http://mirrors.tencentyun.com/tlinux/3.1/TencentOS/x86_64/RPMS/audit-3.0.7-2.tl3.2.x86_64.rpm [Connection timed out after 30000 milliseconds]
[MIRROR] audit-libs-3.0.7-2.tl3.2.x86_64.rpm: Curl error (28): Timeout was reached for http://mirrors.tencentyun.com/tlinux/3.1/TencentOS/x86_64/RPMS/audit-libs-3.0.7-2.tl3.2.x86_64.rpm [Connection timed out after 30000 milliseconds]
[FAILED] NetworkManager-initscripts-updown-1.40.0-2.tl3.noarch.rpm: No more mirrors to try - All mirrors were already tried without success
(2-5/408): gcc-toolset-12-binutils-2.38-16.tl3.x86  0% [                                                  ] 1.1 GB/s | 140 kB     00:00 ETA
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: Error downloading packages:
  Cannot download RPMS/NetworkManager-initscripts-updown-1.40.0-2.tl3.noarch.rpm: All mirrors were tried

敢问腾讯云计算的大佬们,为啥腾讯云的服务器连不上腾讯云的安装源?希望能给出解决方案,谢谢了!

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
TencentOS Server
TencentOS Server 是腾讯云推出的 Linux 操作系统,它旨在为云上运行的应用程序提供稳定、安全和高性能的执行环境。它可以运行在腾讯云 CVM 全规格实例上,包括黑石物理服务器2.0。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com