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
相关推荐
云动课堂19 小时前
一键升级 OpenSSH 10到最新版:告别手工编译、兼容国产系统、批量部署无忧!
linux·服务器·centos
软件测试大叔19 小时前
CentOS 7.6 安装 nvtop 完整教程
linux·centos·性能监控
徐徐图之!1 天前
五、【阶段一运维基础 之 干货!!!】安装 Vmware 和 CentOS
linux·运维·centos
努力努力再努力wz1 天前
【Linux网络系列】:网络+网络编程(UDPsocket+TCPsocket)
java·linux·c语言·开发语言·数据结构·c++·centos
姬嘉晗-19期-河北工职大1 天前
在虚拟机的 Linux 系统(CentOS 7)中搭建一个「虚拟机本地网站」
linux·运维·centos
鸠摩智首席音效师1 天前
如何在 CentOS 上设置 Apache Worker MPM ?
linux·centos·apache
一点晖光1 天前
centos安装ffmpeg环境
linux·ffmpeg·centos
sky丶Mamba1 天前
CentOS Stream 9安装MySQL
android·mysql·centos
boy快快长大2 天前
下载Dokcer安装到另一台无网CentOS
linux·运维·centos
奇点爆破XC2 天前
centos进阶命令.Linux系统介绍(运维版)
linux·运维·centos