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
相关推荐
wjf630006 小时前
CentOS 7 系统上安装 SQLite
linux·运维·centos
软件聚导航6 小时前
在centOS Linux系统搭建自动化构建工具Jenkins
linux·centos·自动化
noravinsc9 小时前
install of jenkins-2.501-1.1.noarch conflicts with file
centos·jenkins
noravinsc12 小时前
centos升级 java
java·python·centos
笨死de猪12 小时前
centos 换阿里云yum
linux·阿里云·centos
姜太小白1 天前
【Linux】centos配置可用的yum源
linux·运维·centos
IT 古月方源1 天前
linux centos 忘记root密码拯救
linux·运维·centos
为什么要做囚徒1 天前
Centos离线安装perl
linux·运维·centos·perl
wjf630001 天前
在 CentOS 7 上安装 PHP 7.3
linux·centos·php