安装Jenkins,提示:stat: cannot stat ‘/var/cache/jenkins
2021-02-22 15:06
465 查看
Linux centos7安装Jenkins( jenkins-2.227-1.1.noarch.rpm)时遇到问题: 1. 出现问题1:安装jenkins一直失败,提示No such file or directory [helen@linuxprobe Jenkins]$ sudo rpm -ivh jenkins-2.227-1.1.noarch.rpm Preparing... ################################# [100%] stat: cannot stat ‘/var/cache/jenkins’: No such file or directory stat: cannot stat ‘/var/log/jenkins’: No such file or directory stat: cannot stat ‘/var/lib/jenkins’: No such file or directory error: %pre(jenkins-2.227-1.1.noarch) scriptlet failed, exit status 1 error: jenkins-2.227-1.1.noarch: install failed -->原因:之前已经有了/etc/sysconfig/jenkins 解决方法: 进入/etc/sysconfig,删除掉jenkins,重新安装. rm -rf jenkins 备注:sudo是因为不是root用户,无权限,所以使用sudo 如果是root用户,则不需要,直接rpm -ivh jenkins-2.227-1.1.noarch.rpm
相关文章推荐
- RedHat5.4安装软件时提示:cannot create transaction lock on /var/lib/rpm/_db.000
- ubuntu16.04安装kde桌面出错: /var/cache/apt/archives/kde-config-telepathy-accounts_4%3a15.12.3-0ubuntu1_amd64.deb
- VMware 安装 VMware tools时出现./vmware-install.pl: 5: ./vmware-install.pl: cannot create /var/log/vmware-install.log: Permission deni
- CentOS7用yum安装软件提示 cannot find a valid baseurl for repobase7x86_64
- plsql安装提示Warning: Some Oracle Net versions cannot...
- 曾经安装过MySQL数据库,已卸载,但仍无法重新安装MySQL,提示错误"Cannot create windows service for mysql.error:0"
- linux下安装git提示”无法打开锁文件 /var/lib/dpkg/lock - open (13: 权限不够)“
- 安装ADT的时候,提示“Cannot complete the install because one or more required items could not be
- 编译安装mmseg提示cannot find input file: src/Makefile.in错误
- 安装oracle提示cannot open display: :0.0
- 安装BIRT Chart Engine的时候,提示Cannot complete the install because one or more required items could not be
- Linux下安装Postgresql-9.0.x 提示:Cannot read termcap database;
- jenkins自动构建.net时提示“任务失败,因为未找到“AxImp.exe”,或未安装正确的 Microsoft Windows SDK“
- 安装Docker时错误提示 "could not change group /var/run/docker.sock to docker: group docker not found"的解决方案
- 《eclipse安装adt插件 提示的常见错误 - Cannot complete the install because one or more required items could not 》
- IDEA安装插件提示was not installed: Cannot download解决办法(IDEA内置的插件仓库被墙后的解决办法)
- 安装.NetFarmWork是提示出现:Setup cannot continue because the version of the .NET Framework is incompatible
- linux下面安装PHP时,提示:configure: error: Cannot find MySQL header files
- 安装完td后,无法下载插件,提示 提示:cannot register activex server
- 使用apt-get install安装软件时,提示could not get lock /var/lib/dpkg/lock