centos8安装宝塔报错

centos8报错

grep: /etc/apt/sources.list: No such file or directory

cat: /etc/apt/sources.list: No such file or directory

cp: cannot stat '/etc/apt/sources.list': No such file or directory

下面命令依次执行

复制代码
sudo mkdir /etc/yum.repos.d/backup
sudo mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/backup


sudo curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

sudo curl -o /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-8.repo

sudo dnf clean all
sudo dnf makecache


grep "some_pattern" /etc/apt/sources.list

grep "some_pattern" /etc/yum.repos.d/*.repo

cat /etc/redhat-release  # 查看 CentOS 版本信息

lsb_release -a  # 如果安装了 lsb-release 包


cat /etc/os-release
相关推荐
2601_961875249 天前
决战申论100题2026|最新|范文
linux·容器·centos·debian·ssh·fabric·vagrant
wcy100869 天前
为 CentOS 7.6 (7.6.1810) 配置阿里云 Vault 源
linux·阿里云·centos
狮子再回头10 天前
relhat9.1 yum无法安装问题
linux·运维·centos
IT199510 天前
踩坑实录:CentOS 默认 Fail2Ban 挡不住高频并发攻击,漏洞修复一步到位
linux·运维·centos
摇滚侠10 天前
VMvare 安装 Linux CentOS 7
linux·运维·centos
java知路11 天前
centos euler离线下载docker镜像
linux·docker·centos
Lang-121012 天前
CentOS Linux服务器完整迁移方案
linux·服务器·centos
2601_9618454213 天前
法考真题及答案解析|历年真题|资料已整理
linux·windows·ubuntu·macos·centos·gnu
拦路雨g14 天前
VMware centos磁盘容量扩容
linux·运维·centos
keyipatience14 天前
27,28,29进程通信和匿名管道详解
linux·ubuntu·centos