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 7 系统优化实战指南:从内核参数到服务精简
linux·运维·centos
wno7043 天前
CentOS下FTP服务搭建
linux·运维·centos
无足鸟ICT6 天前
【RHCA+】安装Tuned
linux·服务器·centos
David猪大卫15 天前
【Linux修炼】环境变量、进程地址空间
linux·c语言·经验分享·笔记·学习·ubuntu·centos
Dragon~Snow17 天前
Centos Stream10 安装 MySQL-9.7.2-linux-glibc2.28-x86_64.tar
linux·mysql·centos
温暖小土17 天前
在 CentOS 上安装 Redis Stack
linux·redis·centos
Linux界最忧郁之人18 天前
华为云ECS&IMS&AS实战|弹性云服务器、私有镜像、弹性伸缩完整实验
linux·运维·服务器·centos·华为云·openstack
源图客18 天前
解决CentOS操作系统网络异常问题
linux·运维·centos
寺中人19 天前
CentOS 7进程与任务管理
linux·运维·centos·服务器搭建与管理·linux运维命令·nohup screen
m0_7436975920 天前
CentOS Stream 9 综合实验:FTP、DNS 与 Tomcat 排障
centos·tomcat·firefox