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
相关推荐
YCY^v^3 小时前
centos 7 开启80,443端口,怎么弄?
linux·运维·centos
水瓶_bxt12 小时前
Centos安装HAProxy搭建Mysql高可用集群负载均衡
mysql·centos·负载均衡
小码过河.14 小时前
CentOS 搭建 Docker 私有镜像仓库
linux·docker·centos
贾斯汀玛尔斯15 小时前
ubuntu/centos系统ping 不通域名的解决方案
linux·ubuntu·centos
半梦半醒*17 小时前
Linux网络管理
linux·运维·网络·centos·运维开发
@Ryan Ding2 天前
Ansible自动化运维工具详解
linux·运维·centos
土豆丶杨3 天前
linxu CentOS 配置nginx
linux·nginx·centos
失因4 天前
CentOS 7 Linux 基础知识点汇总
linux·运维·python·centos
豆是浪个5 天前
Linux(Centos 7.6)命令详解:jobs
linux·运维·centos
南通SEO5 天前
CentOS 7安装 FFmpeg问题可以按照以下步骤进行安装
linux·ffmpeg·centos