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
相关推荐
耗子会飞14 小时前
小白学习固定VM虚拟机的centos服务器的IP
运维·服务器·centos
总要冲动一次14 小时前
离线安装 percona-xtrabackup-24
linux·数据库·mysql·centos
深蓝轨迹16 小时前
彻底删除VMware虚拟机并清理残留,解决虚拟网卡消失问题
windows·ubuntu·centos
MaximusCoder1 天前
等保测评命令——Centos Linux
linux·运维·经验分享·python·安全·centos
九皇叔叔2 天前
CentOS 7.5/RHEL 7.x 配置 YUM 源(阿里云镜像+本地源双方案)
linux·阿里云·centos
会喷火才能叫火山2 天前
本地搭建AI相关步骤
linux·运维·ai·centos
九皇叔叔2 天前
【保姆级教程】CentOS 7.5/RHEL 7.x 编译安装 Redis 6.0.1
linux·redis·centos
林姜泽樾3 天前
Linux入门第十三章,chmod命令和权限控制信息
linux·运维·服务器·centos
成为你的宁宁3 天前
【Dockerfile 实战:基于 Ubuntu/CentOS 镜像构建 MySQL 8.4自定义镜像】
mysql·ubuntu·centos·dockerfile
maqiang_7203 天前
为什么centos+vmware虚机 用NAT 模式总连不上外网
linux·运维·centos