前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >centos6 报错yum [Errno 14] PYCURL ERROR 22

centos6 报错yum [Errno 14] PYCURL ERROR 22

作者头像
卡伊德
发布2022-09-13 14:57:11
1.3K0
发布2022-09-13 14:57:11
举报
文章被收录于专栏:caidblogcaidblog

1.1 问题描述

在更新git的时候,需要安装zlib,但是我的系统是centos6.5的,在使用

yum install zlib

命令的时候,发现报错了,后来通过网上查找相关资料才知道,CentoS 6在2020年11月30日就停止维护了。

所以报了下面这个错误:

yum [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" 后来经过网上找帖子,最后终于得到了解决。

1.2 解决方法

  1. 首先修改文件:/etc/yum/pluginconf.d/fastestmirror.conf  将该文件中enable改为0.
  2. 执行命令,更新系统的yum源:

wget -O /etc/yum.repos.d/CentOS-Base.repo http://allen-hz-bucket.oss-cn-hangzhou.aliyuncs.com/centos/Centos-6-Vault-Official.repo

wget -O /etc/yum.repos.d/CentOS-Base.repo http://allen-hz-bucket.oss-cn-hangzhou.aliyuncs.com/centos/Centos-6-Vault-Aliyun.repo

3. 清除缓存

yum clean metadata

完美解决。

2.1 问题描述

在安装vue-aplayer时,执行以下命令:

npm install @moefe/vue-aplayer --save

报了错误,报错信息如下:

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@4.14.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2021-02-20T16_15_28_823Z-debug.log

这个问题其实解决起来比较简单,具体过程如下。

2.2 解决方法

在执行命令的时候,在命令后面添加参数:--unsafe-perm --save-dev

即就是:

npm install @moefe/vue-aplayer --save --unsafe-perm --save-dev

同样,问题完美解决。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2021-02-21 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 1.1 问题描述
  • 1.2 解决方法
  • 2.1 问题描述
  • 2.2 解决方法
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档