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
相关推荐
xmode33 分钟前
centos7.9安装ffmpeg6.1和NASM、Yasm、x264、x265、fdk-aac、lame、opus解码器
ffmpeg·centos
星辰云-6 小时前
# Linux Centos系统硬盘分区扩容
linux·运维·centos·磁盘扩容
kfepiza9 小时前
CentOS-7的"ifupdown"与Debian的"ifupdown"对比 笔记250706
centos
(:满天星:)20 小时前
第31篇:块设备与字符设备管理深度解析(基于OpenEuler 24.03)
linux·运维·服务器·网络·centos
ldj20201 天前
2025 Centos 安装PostgreSQL
linux·postgresql·centos
大锦终1 天前
【Linux】常用基本指令
linux·运维·服务器·centos
一位摩羯座DBA2 天前
Redhat&Centos挂载镜像
linux·运维·centos
学习3人组2 天前
CentOS配置网络
linux·网络·centos
即将头秃的程序媛2 天前
centos 7.9安装tomcat,并实现开机自启
linux·运维·centos
chanalbert2 天前
CentOS系统新手指导手册
linux·运维·centos