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
相关推荐
小鹿学程序2 小时前
虚拟机之间配置免密登录(Centos)
大数据·linux·运维·centos
Maple_land15 小时前
编译器的“隐形约定”与本地变量:解锁Linux变量体系的关键密码
linux·运维·服务器·c++·centos
我爱钱因此会努力17 小时前
初始化服务器
linux·运维·服务器·tcp/ip·centos
技术liul18 小时前
Centos 7 :VMware Tools 启动脚本未能在虚拟机中成功运行
linux·运维·centos
Maple_land1 天前
内建命令揭秘与环境变量全景:Linux变量体系的完整闭环
linux·运维·服务器·c++·centos
运维帮手大橙子1 天前
CentOS 7 上部署Jenkins
linux·centos·jenkins
半梦半醒*1 天前
ELK2——logstash
linux·运维·elk·elasticsearch·centos·1024程序员节
java_logo1 天前
Docker 部署 CentOS 全流程指南
linux·运维·人工智能·docker·容器·centos
半梦半醒*1 天前
ELK3——kibana
linux·运维·elasticsearch·centos·gitlab
想不明白的过度思考者1 天前
MySQL 8.0.x 全平台安装指南:Windows、CentOS、Ubuntu 详细步骤与问题解决
windows·mysql·centos