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 小时前
docker核心概念
linux·运维·服务器·docker·容器·centos·运维开发
qetfw7 小时前
CentOS 7 搭建 LDAP 目录服务
linux·运维·centos
DB哥讲数据库3 天前
MySQL 8.4 安装教程:超详细图文讲解(附mysql安装包)
linux·数据库·mysql·centos
qetfw3 天前
CentOS 7 配置 firewalld 防火墙
linux·运维·centos
AOwhisky4 天前
Linux(CentOS)系统管理入门笔记:第二期核心知识点自测与详解
linux·笔记·centos
二宝哥4 天前
VMware Workstation 实战:CentOS 7.9 安装、桥接网络配置与克隆管理详解
linux·centos·vmware
qetfw5 天前
CentOS 7 搭建 DNS 主从服务
linux·运维·centos·dns·bind
qetfw5 天前
CentOS 7 基础环境配置
linux·运维·centos
辉灰笔记5 天前
MySQL8 意外关机/误移data目录导致服务启动失败 PID报错/权限报错 修复文档
linux·数据库·mysql·centos
Tim_Van7 天前
在 CentOS 7 中安装 Chromium 的完整步骤
linux·运维·chrome·centos