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
相关推荐
三言老师11 分钟前
CentOS8 Firewalld 高级规则中级实操教程
linux·运维·服务器·网络·centos
wsad05321 天前
CentOS Stream 10 配置静态 IP 完整指南
linux·tcp/ip·centos
lingran__2 天前
Linux 基础常用指令万字详解(上)|文件目录命令,结合底层原理剖析
linux·运维·服务器·后端·centos·linux基础指令
梓沂2 天前
Oracle 11g 跨平台迁移实战:从 Windows 到 CentOS 的完整记录
windows·oracle·centos
心灵Haven3 天前
Centos7 + Mysql8.0
mysql·centos
三言老师3 天前
free查看内存与缓存状态实操
运维·服务器·网络·centos
略略略咯咯4 天前
centos更换镜像源
linux·运维·centos
☆凡尘清心☆6 天前
CentOS Stream 9 Redis 7.2.7 源码编译一键安装脚本
linux·运维·redis·centos
☆凡尘清心☆6 天前
CentOS Stream 9 编译安装 Redis 7.2.7 完整版详细步骤
linux·redis·centos
三言老师6 天前
awk条件筛选日志内容实操
linux·运维·服务器·centos