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编译安装Python3.11完整教程
linux·笔记·学习·centos·python3.11
笨笨饿2 天前
#111_关于FreeRTOS面试的一些题目
linux·ubuntu·面试·职场和发展·centos·rtos
一路向北finish5 天前
《CentOS 7 搭建 Hadoop 3.3.6 分布式集群:NFS 共享方案完整实操》
linux·运维·hadoop·分布式·centos
量子炒饭大师10 天前
MySQL 5.7 在 CentOS 7 环境安装:从清理 MariaDB 到初始化与完善配置
数据库·mysql·centos·mariadb
a未来永远是个未知数11 天前
centos离线安装ntpcent
linux·运维·centos
☆凡尘清心☆12 天前
CentOS Stream 9 源码编译搭建 Zabbix7.0.29 完整部署方案(部署成功)
linux·运维·centos
wsad053212 天前
CentOS 10 上使用 Docker Compose 部署 Discuz X5.0 论坛完整教程
linux·docker·centos·discuz
檀越剑指大厂15 天前
CentOS部署Landlord斗地主项目:源码编译并实现远程访问
linux·运维·centos
测试运维日常笔记16 天前
RHEL/CentOS 离线部署指南:配置本地 ISO 镜像作为 YUM 仓库
linux·运维·centos
梓沂16 天前
CentOS 7.9 静默安装 Oracle 11gR2 企业版全记录
linux·oracle·centos