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
相关推荐
S1lent9o1 小时前
CentOS stream 中部署Zabbix RPM软件包公钥验证错误
linux·centos·zabbix
chirrupy_hamal17 小时前
VMware Workstation 保姆级 Linux(CentOS) 创建教程(附 iso)
linux·centos·虚拟机
YUELEI11817 小时前
Centos9 离线安装 MYSQL8
mysql·centos
EchoZeal2 天前
CentOS 7系统yum报错解决方案(CentOS 7官方EOL问题修复)
linux·运维·centos
半兽先生3 天前
CentOS 中安装 vim
linux·centos·vim
程序员阿灿4 天前
CentOS服务器能ping通却无法yum install:指定镜像源解决
linux·服务器·centos
一个小白5554 天前
Linux,redis群集模式,主从复制,读写分离
linux·运维·数据库·centos
四岁爱上了她4 天前
CentOS更换yum源
linux·运维·centos
野生派蒙4 天前
Linux:显示 -bash-4.2$ 问题(CentOS 7)
linux·运维·服务器·centos·bash
野生派蒙4 天前
Linux:安装 CentOS 7(完整教程)
linux·运维·服务器·centos